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

Side by Side Diff: chrome/browser/alternate_nav_url_fetcher.h

Issue 7006005: Move UrlFetcher to content. I originally thought that it's only used by chrome code, but turns o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/autocomplete/search_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_ 5 #ifndef CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_
6 #define CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_ 6 #define CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "chrome/browser/tab_contents/link_infobar_delegate.h" 12 #include "chrome/browser/tab_contents/link_infobar_delegate.h"
13 #include "chrome/common/net/url_fetcher.h"
14 #include "content/common/notification_observer.h" 13 #include "content/common/notification_observer.h"
15 #include "content/common/notification_registrar.h" 14 #include "content/common/notification_registrar.h"
15 #include "content/common/url_fetcher.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 17
18 class NavigationController; 18 class NavigationController;
19 19
20 // Attempts to get the HEAD of a host name and displays an info bar if the 20 // Attempts to get the HEAD of a host name and displays an info bar if the
21 // request was successful. This is used for single-word queries where we can't 21 // request was successful. This is used for single-word queries where we can't
22 // tell if the entry was a search or an intranet hostname. The autocomplete bar 22 // tell if the entry was a search or an intranet hostname. The autocomplete bar
23 // assumes it's a query and issues an AlternateNavURLFetcher to display a "did 23 // assumes it's a query and issues an AlternateNavURLFetcher to display a "did
24 // you mean" infobar suggesting a navigation. 24 // you mean" infobar suggesting a navigation.
25 // 25 //
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // The TabContents the InfoBarDelegate was added to. 85 // The TabContents the InfoBarDelegate was added to.
86 TabContents* infobar_contents_; 86 TabContents* infobar_contents_;
87 87
88 NotificationRegistrar registrar_; 88 NotificationRegistrar registrar_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(AlternateNavURLFetcher); 90 DISALLOW_COPY_AND_ASSIGN(AlternateNavURLFetcher);
91 }; 91 };
92 92
93 #endif // CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_ 93 #endif // CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698