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

Side by Side Diff: apps/shell/browser/shell_extension_system_factory.h

Issue 137753016: ExtensionSystem cleanup part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deps Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698