Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1392)

Unified Diff: chrome/browser/plugin_download_helper.h

Issue 8373021: Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and remove unncessary forward declares Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/plugin_download_helper.h
===================================================================
--- chrome/browser/plugin_download_helper.h (revision 106929)
+++ chrome/browser/plugin_download_helper.h (working copy)
@@ -12,15 +12,19 @@
#if defined(OS_WIN)
#include "base/file_path.h"
#include "base/message_loop_proxy.h"
-#include "content/common/net/url_fetcher.h"
+#include "content/public/common/url_fetcher_delegate.h"
#include "net/base/file_stream.h"
#include "net/url_request/url_request.h"
#include "ui/gfx/native_widget_types.h"
+namespace net {
+class URLRequestContextGetter;
+}
+
// The PluginDownloadUrlHelper is used to handle one download URL request
// from the plugin. Each download request is handled by a new instance
// of this class.
-class PluginDownloadUrlHelper : public URLFetcher::Delegate {
+class PluginDownloadUrlHelper : public content::URLFetcherDelegate {
public:
// The delegate receives notification about the status of downloads
// initiated.
@@ -40,13 +44,7 @@
void InitiateDownload(net::URLRequestContextGetter* request_context,
base::MessageLoopProxy* file_thread_proxy);
- // URLFetcher::Delegate
- virtual void OnURLFetchComplete(const URLFetcher* source,
- const GURL& url,
- const net::URLRequestStatus& status,
- int response_code,
- const net::ResponseCookies& cookies,
- const std::string& data) {}
+ // content::URLFetcherDelegate
virtual void OnURLFetchComplete(const URLFetcher* source);
void OnDownloadCompleted(net::URLRequest* request);

Powered by Google App Engine
This is Rietveld 408576698