OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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 APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_FACTORY_H_ | |
6 #define APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_FACTORY_H_ | |
7 | |
8 #include "base/memory/singleton.h" | |
9 #include "extensions/browser/extension_system_provider.h" | |
10 | |
11 namespace extensions { | |
12 | |
13 // A factory that provides ShellExtensionSystem for app_shell. | |
14 class ShellExtensionSystemFactory : public ExtensionSystemProvider { | |
15 public: | |
16 virtual ExtensionSystem* GetForBrowserContext( | |
James Cook
2014/02/12 17:18:12
nit: comment which interface you are overriding
Yoyo Zhou
2014/02/12 23:32:10
Done.
| |
17 content::BrowserContext* context) OVERRIDE; | |
18 | |
19 static ShellExtensionSystemFactory* GetInstance(); | |
20 | |
21 private: | |
22 friend struct DefaultSingletonTraits<ShellExtensionSystemFactory>; | |
23 | |
24 ShellExtensionSystemFactory(); | |
25 virtual ~ShellExtensionSystemFactory(); | |
26 | |
27 // BrowserContextKeyedServiceFactory implementation: | |
28 virtual BrowserContextKeyedService* BuildServiceInstanceFor( | |
29 content::BrowserContext* context) const OVERRIDE; | |
30 virtual content::BrowserContext* GetBrowserContextToUse( | |
31 content::BrowserContext* context) const OVERRIDE; | |
32 }; | |
James Cook
2014/02/12 17:18:12
DISALLOW_COPY_AND_ASSIGN?
Yoyo Zhou
2014/02/12 23:32:10
Done.
| |
33 | |
34 } // namespace extensions | |
35 | |
36 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_FACTORY_H_ | |
OLD | NEW |