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

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: Making FallbackIconSource take FallbackIconService directly. 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 "components/favicon/core/browser/fallback_icon_client.h"
9
10 #include <string>
11 #include <vector>
12
13 #include "base/macros.h"
14
15 class GURL;
16 class Profile;
17
18 namespace favicon_base {
19 class FallbackIconService;
20 } // namespace favicon_base
21
22 // ChromeFallbackIconClient implements the the FallbackIconClient interface.
sdefresne 2015/03/17 09:41:52 nit: s/the the/the/
huangs 2015/03/23 03:28:34 Done.
23 class ChromeFallbackIconClient : public FallbackIconClient {
24 public:
25 explicit ChromeFallbackIconClient(Profile* profile);
sdefresne 2015/03/17 09:41:52 You don't use profile, so there is no need to pass
huangs 2015/03/23 03:28:34 Done.
26 ~ChromeFallbackIconClient() override;
27
28 // FallbackIconClient implementation:
29 const std::vector<std::string>& GetFontNameList() override;
30
31 private:
32 Profile* profile_;
33
34 std::vector<std::string> font_list_;
35
36 DISALLOW_COPY_AND_ASSIGN(ChromeFallbackIconClient);
37 };
38
39 #endif // CHROME_BROWSER_FAVICON_CHROME_FALLBACK_ICON_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698