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

Side by Side Diff: chrome/browser/favicon/chrome_fallback_icon_client.h

Issue 996253002: [Fallback Icons] Refactor FallbackIconService to be a BrowserContext-level singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment fix; removing usage of Profile in factories. Created 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_FAVICON_CHROME_FALLBACK_ICON_CLIENT_H_
6 #define CHROME_BROWSER_FAVICON_CHROME_FALLBACK_ICON_CLIENT_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/macros.h"
12 #include "base/strings/string16.h"
13 #include "components/favicon/core/fallback_icon_client.h"
14
15 class GURL;
16
17 // ChromeFallbackIconClient implements the FallbackIconClient interface.
18 class ChromeFallbackIconClient : public FallbackIconClient {
19 public:
20 ChromeFallbackIconClient();
21 ~ChromeFallbackIconClient() override;
22
23 // FallbackIconClient implementation:
24 const std::vector<std::string>& GetFontNameList() const override;
25
26 base::string16 GetFallbackIconText(const GURL& url) const override;
27
28 private:
29 std::vector<std::string> font_list_;
30
31 DISALLOW_COPY_AND_ASSIGN(ChromeFallbackIconClient);
32 };
33
34 #endif // CHROME_BROWSER_FAVICON_CHROME_FALLBACK_ICON_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698