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

Unified Diff: chrome/browser/alternate_nav_url_fetcher.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/alternate_nav_url_fetcher.h
===================================================================
--- chrome/browser/alternate_nav_url_fetcher.h (revision 106929)
+++ chrome/browser/alternate_nav_url_fetcher.h (working copy)
@@ -9,13 +9,17 @@
#include <string>
#include "base/memory/scoped_ptr.h"
-#include "content/common/net/url_fetcher.h"
+#include "content/public/common/url_fetcher_delegate.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "googleurl/src/gurl.h"
class NavigationController;
+namespace net {
+class URLRequestStatus;
+}
+
// Attempts to get the HEAD of a host name and displays an info bar if the
// request was successful. This is used for single-word queries where we can't
// tell if the entry was a search or an intranet hostname. The autocomplete bar
@@ -33,7 +37,7 @@
// * The intranet fetch fails
// * None of the above apply, so we successfully show an infobar
class AlternateNavURLFetcher : public content::NotificationObserver,
- public URLFetcher::Delegate {
+ public content::URLFetcherDelegate {
public:
enum State {
NOT_STARTED,
@@ -53,13 +57,8 @@
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- // 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) OVERRIDE;
+ // content::URLFetcherDelegate
+ virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE;
// Sets |controller_| to the supplied pointer and begins fetching
// |alternate_nav_url_|.
« no previous file with comments | « no previous file | chrome/browser/alternate_nav_url_fetcher.cc » ('j') | chrome/browser/metrics/metrics_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698