OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_UI_OMNIBOX_OMNIBOX_NAVIGATION_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_NAVIGATION_OBSERVER_H_ |
6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_NAVIGATION_OBSERVER_H_ | 6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_NAVIGATION_OBSERVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "chrome/browser/autocomplete/autocomplete_match.h" | 12 #include "chrome/browser/autocomplete/autocomplete_match.h" |
13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
15 #include "content/public/browser/web_contents_observer.h" | 15 #include "content/public/browser/web_contents_observer.h" |
16 #include "net/url_request/url_fetcher_delegate.h" | 16 #include "net/url_request/url_fetcher_delegate.h" |
17 | 17 |
| 18 class Profile; |
18 class ShortcutsBackend; | 19 class ShortcutsBackend; |
19 | 20 |
20 namespace net { | 21 namespace net { |
21 class URLFetcher; | 22 class URLFetcher; |
22 class URLRequestStatus; | 23 class URLRequestStatus; |
23 } | 24 } |
24 | 25 |
25 // Monitors omnibox navigations in order to trigger behaviors that depend on | 26 // Monitors omnibox navigations in order to trigger behaviors that depend on |
26 // successful navigations. | 27 // successful navigations. |
27 // | 28 // |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 scoped_ptr<net::URLFetcher> fetcher_; | 99 scoped_ptr<net::URLFetcher> fetcher_; |
99 LoadState load_state_; | 100 LoadState load_state_; |
100 FetchState fetch_state_; | 101 FetchState fetch_state_; |
101 | 102 |
102 content::NotificationRegistrar registrar_; | 103 content::NotificationRegistrar registrar_; |
103 | 104 |
104 DISALLOW_COPY_AND_ASSIGN(OmniboxNavigationObserver); | 105 DISALLOW_COPY_AND_ASSIGN(OmniboxNavigationObserver); |
105 }; | 106 }; |
106 | 107 |
107 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_NAVIGATION_OBSERVER_H_ | 108 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_NAVIGATION_OBSERVER_H_ |
OLD | NEW |