| 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/reload_type.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void SaveFavicon(); | 43 void SaveFavicon(); |
| 44 | 44 |
| 45 // FaviconDriver implementation. | 45 // FaviconDriver implementation. |
| 46 gfx::Image GetFavicon() const override; | 46 gfx::Image GetFavicon() const override; |
| 47 bool FaviconIsValid() const override; | 47 bool FaviconIsValid() const override; |
| 48 GURL GetActiveURL() override; | 48 GURL GetActiveURL() override; |
| 49 | 49 |
| 50 protected: | 50 protected: |
| 51 ContentFaviconDriver(content::WebContents* web_contents, | 51 ContentFaviconDriver(content::WebContents* web_contents, |
| 52 FaviconService* favicon_service, | 52 FaviconService* favicon_service, |
| 53 history::HistoryService* history_service); | 53 history::HistoryService* history_service, |
| 54 bookmarks::BookmarkModel* bookmark_model); |
| 54 ~ContentFaviconDriver() override; | 55 ~ContentFaviconDriver() override; |
| 55 | 56 |
| 56 private: | 57 private: |
| 57 friend class content::WebContentsUserData<ContentFaviconDriver>; | 58 friend class content::WebContentsUserData<ContentFaviconDriver>; |
| 58 | 59 |
| 59 // FaviconHandler::Delegate implementation. | 60 // FaviconHandler::Delegate implementation. |
| 60 int DownloadImage(const GURL& url, | 61 int DownloadImage(const GURL& url, |
| 61 int max_image_size, | 62 int max_image_size, |
| 62 ImageDownloadCallback callback) override; | 63 ImageDownloadCallback callback) override; |
| 63 bool IsOffTheRecord() override; | 64 bool IsOffTheRecord() override; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 77 | 78 |
| 78 GURL bypass_cache_page_url_; | 79 GURL bypass_cache_page_url_; |
| 79 std::vector<content::FaviconURL> favicon_urls_; | 80 std::vector<content::FaviconURL> favicon_urls_; |
| 80 | 81 |
| 81 DISALLOW_COPY_AND_ASSIGN(ContentFaviconDriver); | 82 DISALLOW_COPY_AND_ASSIGN(ContentFaviconDriver); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace favicon | 85 } // namespace favicon |
| 85 | 86 |
| 86 #endif // COMPONENTS_FAVICON_CONTENT_CONTENT_FAVICON_DRIVER_H_ | 87 #endif // COMPONENTS_FAVICON_CONTENT_CONTENT_FAVICON_DRIVER_H_ |
| OLD | NEW |