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

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

Issue 2883053003: Delete unused chrome://fallback-icon/ handling (Closed)
Patch Set: Merge branch 'master' into searchbox3 Created 3 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 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_FACTORY_H_
6 #define CHROME_BROWSER_FAVICON_CHROME_FALLBACK_ICON_CLIENT_FACTORY_H_
7
8 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
9
10 namespace base {
11 template <typename T> struct DefaultSingletonTraits;
12 }
13
14 namespace content {
15 class BrowserContext;
16 }
17
18 namespace favicon {
19 class FallbackIconClient;
20 }
21
22 // Singleton that owns all ChromeFallbackIconClients and associates them with
23 // Profiles.
24 class ChromeFallbackIconClientFactory
25 : public BrowserContextKeyedServiceFactory {
26 public:
27 // Returns the instance of FallbackIconClient associated with this profile
28 // (creating one if none exists).
29 static favicon::FallbackIconClient* GetForBrowserContext(
30 content::BrowserContext* context);
31
32 // Returns an instance of the factory singleton.
33 static ChromeFallbackIconClientFactory* GetInstance();
34
35 private:
36 friend struct base::DefaultSingletonTraits<ChromeFallbackIconClientFactory>;
37
38 ChromeFallbackIconClientFactory();
39 ~ChromeFallbackIconClientFactory() override;
40
41 // BrowserContextKeyedServiceFactory:
42 KeyedService* BuildServiceInstanceFor(
43 content::BrowserContext* context) const override;
44 };
45
46 #endif // CHROME_BROWSER_FAVICON_CHROME_FALLBACK_ICON_CLIENT_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/favicon/chrome_fallback_icon_client.cc ('k') | chrome/browser/favicon/chrome_fallback_icon_client_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698