OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_FAVICON_CONTENT_CONTENT_FAVICON_DRIVER_H_ | 5 #ifndef COMPONENTS_FAVICON_CONTENT_CONTENT_FAVICON_DRIVER_H_ |
6 #define COMPONENTS_FAVICON_CONTENT_CONTENT_FAVICON_DRIVER_H_ | 6 #define COMPONENTS_FAVICON_CONTENT_CONTENT_FAVICON_DRIVER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/favicon/core/favicon_driver_impl.h" | 9 #include "components/favicon/core/favicon_driver_impl.h" |
| 10 #include "content/public/browser/reload_type.h" |
10 #include "content/public/browser/web_contents_observer.h" | 11 #include "content/public/browser/web_contents_observer.h" |
11 #include "content/public/browser/web_contents_user_data.h" | 12 #include "content/public/browser/web_contents_user_data.h" |
12 #include "url/gurl.h" | 13 #include "url/gurl.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 struct FaviconStatus; | 16 struct FaviconStatus; |
16 struct FaviconURL; | 17 struct FaviconURL; |
17 class WebContents; | 18 class WebContents; |
18 } | 19 } |
19 | 20 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 FaviconDriverObserver::NotificationIconType icon_type, | 66 FaviconDriverObserver::NotificationIconType icon_type, |
66 const GURL& icon_url, | 67 const GURL& icon_url, |
67 bool icon_url_changed, | 68 bool icon_url_changed, |
68 const gfx::Image& image) override; | 69 const gfx::Image& image) override; |
69 | 70 |
70 // content::WebContentsObserver implementation. | 71 // content::WebContentsObserver implementation. |
71 void DidUpdateFaviconURL( | 72 void DidUpdateFaviconURL( |
72 const std::vector<content::FaviconURL>& candidates) override; | 73 const std::vector<content::FaviconURL>& candidates) override; |
73 void DidStartNavigationToPendingEntry( | 74 void DidStartNavigationToPendingEntry( |
74 const GURL& url, | 75 const GURL& url, |
75 content::NavigationController::ReloadType reload_type) override; | 76 content::ReloadType reload_type) override; |
76 void DidNavigateMainFrame( | 77 void DidNavigateMainFrame( |
77 const content::LoadCommittedDetails& details, | 78 const content::LoadCommittedDetails& details, |
78 const content::FrameNavigateParams& params) override; | 79 const content::FrameNavigateParams& params) override; |
79 | 80 |
80 GURL bypass_cache_page_url_; | 81 GURL bypass_cache_page_url_; |
81 std::vector<content::FaviconURL> favicon_urls_; | 82 std::vector<content::FaviconURL> favicon_urls_; |
82 | 83 |
83 DISALLOW_COPY_AND_ASSIGN(ContentFaviconDriver); | 84 DISALLOW_COPY_AND_ASSIGN(ContentFaviconDriver); |
84 }; | 85 }; |
85 | 86 |
86 } // namespace favicon | 87 } // namespace favicon |
87 | 88 |
88 #endif // COMPONENTS_FAVICON_CONTENT_CONTENT_FAVICON_DRIVER_H_ | 89 #endif // COMPONENTS_FAVICON_CONTENT_CONTENT_FAVICON_DRIVER_H_ |
OLD | NEW |