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

Side by Side Diff: components/keyed_service/content/browser_context_keyed_service_shutdown_notifier_factory.h

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_SHUTDOWN_ NOTIFIER_FACTORY_H_ 5 #ifndef COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_SHUTDOWN_ NOTIFIER_FACTORY_H_
6 #define COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_SHUTDOWN_ NOTIFIER_FACTORY_H_ 6 #define COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_SHUTDOWN_ NOTIFIER_FACTORY_H_
7 7
8 #include "base/macros.h"
8 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
9 #include "components/keyed_service/core/keyed_service_export.h" 10 #include "components/keyed_service/core/keyed_service_export.h"
10 11
11 class KeyedServiceShutdownNotifier; 12 class KeyedServiceShutdownNotifier;
12 13
13 // A base class for factories for KeyedServiceShutdownNotifier objects that are 14 // A base class for factories for KeyedServiceShutdownNotifier objects that are
14 // keyed on a BrowserContext. 15 // keyed on a BrowserContext.
15 // To use this class, create a singleton subclass and declare its dependencies 16 // To use this class, create a singleton subclass and declare its dependencies
16 // in the constructor. 17 // in the constructor.
17 class KEYED_SERVICE_EXPORT BrowserContextKeyedServiceShutdownNotifierFactory 18 class KEYED_SERVICE_EXPORT BrowserContextKeyedServiceShutdownNotifierFactory
18 : public BrowserContextKeyedServiceFactory { 19 : public BrowserContextKeyedServiceFactory {
19 public: 20 public:
20 KeyedServiceShutdownNotifier* Get(content::BrowserContext* context); 21 KeyedServiceShutdownNotifier* Get(content::BrowserContext* context);
21 22
22 protected: 23 protected:
23 explicit BrowserContextKeyedServiceShutdownNotifierFactory(const char* name); 24 explicit BrowserContextKeyedServiceShutdownNotifierFactory(const char* name);
24 ~BrowserContextKeyedServiceShutdownNotifierFactory() override; 25 ~BrowserContextKeyedServiceShutdownNotifierFactory() override;
25 26
26 private: 27 private:
27 KeyedService* BuildServiceInstanceFor( 28 KeyedService* BuildServiceInstanceFor(
28 content::BrowserContext* context) const override; 29 content::BrowserContext* context) const override;
29 content::BrowserContext* GetBrowserContextToUse( 30 content::BrowserContext* GetBrowserContextToUse(
30 content::BrowserContext* context) const override; 31 content::BrowserContext* context) const override;
31 32
32 DISALLOW_COPY_AND_ASSIGN(BrowserContextKeyedServiceShutdownNotifierFactory); 33 DISALLOW_COPY_AND_ASSIGN(BrowserContextKeyedServiceShutdownNotifierFactory);
33 }; 34 };
34 35
35 #endif // COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_SHUTDO WN_NOTIFIER_FACTORY_H_ 36 #endif // COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_SHUTDO WN_NOTIFIER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698