#include "base/basictypes.h"
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
#include "net/url_request/url_fetcher_delegate.h"
namespace feedback {
-typedef base::Callback<void(scoped_ptr<std::string>)> ReportDataCallback;
+typedef base::Callback<void(const std::string&)> ReportDataCallback;
// FeedbackUploaderDelegate is a simple http uploader for a feedback report. On
// succes or failure, it deletes itself, but on failure it also notifies the
// error callback specified when constructing the class instance.
class FeedbackUploaderDelegate : public net::URLFetcherDelegate {
public:
- FeedbackUploaderDelegate(scoped_ptr<std::string> post_body,
+ FeedbackUploaderDelegate(const std::string& post_body,
const base::Closure& success_callback,
const ReportDataCallback& error_callback);
virtual ~FeedbackUploaderDelegate();
// Overridden from net::URLFetcherDelegate.
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
- scoped_ptr<std::string> post_body_;
+ std::string post_body_;
base::Closure success_callback_;
ReportDataCallback error_callback_;