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

Side by Side Diff: extensions/browser/declarative_user_script_manager_factory.h

Issue 1066993002: Make DeclarativeUserScriptManager non-shared between profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make DeclarativeUserScriptManager be a KeyedService. Created 5 years, 8 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 EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_FACTORY_H_
6 #define EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_FACTORY_H_
7
8 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
9
10 template <typename Type>
11 struct DefaultSingletonTraits;
12
13 namespace extensions {
14 class DeclarativeUserScriptManager;
15
16 class DeclarativeUserScriptManagerFactory
17 : public BrowserContextKeyedServiceFactory {
18 public:
19 static DeclarativeUserScriptManager* GetForBrowserContext(
20 content::BrowserContext* browser_context);
21
22 static DeclarativeUserScriptManagerFactory* GetInstance();
23
24 private:
25 friend struct DefaultSingletonTraits<DeclarativeUserScriptManagerFactory>;
26
27 DeclarativeUserScriptManagerFactory();
28 ~DeclarativeUserScriptManagerFactory() override;
29
30 // BrowserContextKeyedServiceFactory:
31 KeyedService* BuildServiceInstanceFor(
32 content::BrowserContext* browser_context) const override;
33 bool ServiceIsCreatedWithBrowserContext() const override;
34 };
35
36 } // namespace extensions
37
38 #endif // EXTENSIONS_BROWSER_DECLARATIVE_USER_SCRIPT_MANAGER_FACTORY_H_
OLDNEW
« no previous file with comments | « extensions/browser/declarative_user_script_manager.h ('k') | extensions/browser/declarative_user_script_manager_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698