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; | |
19 class ShortcutsBackend; | 18 class ShortcutsBackend; |
20 | 19 |
21 namespace net { | 20 namespace net { |
22 class URLFetcher; | 21 class URLFetcher; |
23 class URLRequestStatus; | 22 class URLRequestStatus; |
24 } | 23 } |
25 | 24 |
26 // Monitors omnibox navigations in order to trigger behaviors that depend on | 25 // Monitors omnibox navigations in order to trigger behaviors that depend on |
27 // successful navigations. | 26 // successful navigations. |
28 // | 27 // |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 scoped_ptr<net::URLFetcher> fetcher_; | 98 scoped_ptr<net::URLFetcher> fetcher_; |
100 LoadState load_state_; | 99 LoadState load_state_; |
101 FetchState fetch_state_; | 100 FetchState fetch_state_; |
102 | 101 |
103 content::NotificationRegistrar registrar_; | 102 content::NotificationRegistrar registrar_; |
104 | 103 |
105 DISALLOW_COPY_AND_ASSIGN(OmniboxNavigationObserver); | 104 DISALLOW_COPY_AND_ASSIGN(OmniboxNavigationObserver); |
106 }; | 105 }; |
107 | 106 |
108 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_NAVIGATION_OBSERVER_H_ | 107 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_NAVIGATION_OBSERVER_H_ |
OLD | NEW |