| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/net/url_fetcher.h" |
| 10 #include "chrome/browser/tab_contents/infobar_delegate.h" | 11 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 11 #include "chrome/browser/url_fetcher.h" | |
| 12 #include "chrome/common/notification_registrar.h" | 12 #include "chrome/common/notification_registrar.h" |
| 13 #include "chrome/common/notification_service.h" | 13 #include "chrome/common/notification_service.h" |
| 14 | 14 |
| 15 class NavigationController; | 15 class NavigationController; |
| 16 | 16 |
| 17 // Attempts to get the HEAD of a host name and displays an info bar if the | 17 // Attempts to get the HEAD of a host name and displays an info bar if the |
| 18 // request was successful. This is used for single-word queries where we can't | 18 // request was successful. This is used for single-word queries where we can't |
| 19 // tell if the entry was a search or an intranet hostname. The autocomplete bar | 19 // tell if the entry was a search or an intranet hostname. The autocomplete bar |
| 20 // assumes it's a query and issues an AlternateNavURLFetcher to display a "did | 20 // assumes it's a query and issues an AlternateNavURLFetcher to display a "did |
| 21 // you mean" infobar suggesting a navigation. | 21 // you mean" infobar suggesting a navigation. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // The TabContents the InfoBarDelegate was added to. | 75 // The TabContents the InfoBarDelegate was added to. |
| 76 TabContents* infobar_contents_; | 76 TabContents* infobar_contents_; |
| 77 | 77 |
| 78 NotificationRegistrar registrar_; | 78 NotificationRegistrar registrar_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(AlternateNavURLFetcher); | 80 DISALLOW_COPY_AND_ASSIGN(AlternateNavURLFetcher); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif // CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_ | 83 #endif // CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_ |
| 84 | 84 |
| OLD | NEW |