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

Unified Diff: chrome/browser/favicon/chrome_favicon_client.h

Issue 303453004: Move the FaviconClient implementation to ChromeFaviconClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes. Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/favicon/chrome_favicon_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/chrome_favicon_client.h
diff --git a/chrome/browser/favicon/chrome_favicon_client.h b/chrome/browser/favicon/chrome_favicon_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..582a34b70d03d886e0701c916f746c86c385819b
--- /dev/null
+++ b/chrome/browser/favicon/chrome_favicon_client.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_
+#define CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_
+
+#include "components/favicon/core/browser/favicon_client.h"
+
+#include "base/macros.h"
+
+class FaviconService;
+class GURL;
+class Profile;
+
+// ChromeFaviconClient implements the the FaviconClient interface.
+class ChromeFaviconClient : public FaviconClient {
+ public:
+ explicit ChromeFaviconClient(Profile* profile);
+ virtual ~ChromeFaviconClient();
+
+ // FaviconClient implementation:
+ virtual FaviconService* GetFaviconService() OVERRIDE;
+ virtual bool IsBookmarked(const GURL& url) OVERRIDE;
+
+ private:
+ Profile* profile_;
+ DISALLOW_COPY_AND_ASSIGN(ChromeFaviconClient);
+};
+
+#endif // CHROME_BROWSER_FAVICON_CHROME_FAVICON_CLIENT_H_
« no previous file with comments | « no previous file | chrome/browser/favicon/chrome_favicon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698