Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: components/favicon/content/content_favicon_driver.h

Issue 2732653002: Add favicon integration tests for FaviconDriverImpl (Closed)
Patch Set: Added verification of color Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
37 const std::vector<content::FaviconURL>& favicon_urls() const { 37 const std::vector<content::FaviconURL>& favicon_urls() const {
38 return favicon_urls_; 38 return favicon_urls_;
39 } 39 }
40 40
41 // Saves the favicon for the last committed navigation entry to the thumbnail 41 // Saves the favicon for the last committed navigation entry to the thumbnail
42 // database. 42 // database.
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;
48 GURL GetActiveURL() override;
49 47
50 protected: 48 protected:
51 ContentFaviconDriver(content::WebContents* web_contents, 49 ContentFaviconDriver(content::WebContents* web_contents,
52 FaviconService* favicon_service, 50 FaviconService* favicon_service,
53 history::HistoryService* history_service, 51 history::HistoryService* history_service,
54 bookmarks::BookmarkModel* bookmark_model); 52 bookmarks::BookmarkModel* bookmark_model);
55 ~ContentFaviconDriver() override; 53 ~ContentFaviconDriver() override;
56 54
57 private: 55 private:
58 friend class content::WebContentsUserData<ContentFaviconDriver>; 56 friend class content::WebContentsUserData<ContentFaviconDriver>;
(...skipping 19 matching lines...) Expand all
78 76
79 GURL bypass_cache_page_url_; 77 GURL bypass_cache_page_url_;
80 std::vector<content::FaviconURL> favicon_urls_; 78 std::vector<content::FaviconURL> favicon_urls_;
81 79
82 DISALLOW_COPY_AND_ASSIGN(ContentFaviconDriver); 80 DISALLOW_COPY_AND_ASSIGN(ContentFaviconDriver);
83 }; 81 };
84 82
85 } // namespace favicon 83 } // namespace favicon
86 84
87 #endif // COMPONENTS_FAVICON_CONTENT_CONTENT_FAVICON_DRIVER_H_ 85 #endif // COMPONENTS_FAVICON_CONTENT_CONTENT_FAVICON_DRIVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | components/favicon/content/content_favicon_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698