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

Side by Side Diff: apps/shell/shell_extensions_browser_client.h

Issue 151893002: Reorganize apps/shell into app, browser and common directories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (subdirs) 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
« no previous file with comments | « apps/shell/shell_extension_system.cc ('k') | apps/shell/shell_extensions_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 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_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
6 #define APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
7
8 #include "base/compiler_specific.h"
9 #include "extensions/browser/extensions_browser_client.h"
10
11 class PrefService;
12
13 namespace extensions {
14
15 // An ExtensionsBrowserClient that supports a single content::BrowserContent
16 // with no related incognito context.
17 class ShellExtensionsBrowserClient : public ExtensionsBrowserClient {
18 public:
19 // |context| is the single BrowserContext used for IsValidContext() below.
20 explicit ShellExtensionsBrowserClient(content::BrowserContext* context);
21 virtual ~ShellExtensionsBrowserClient();
22
23 // ExtensionsBrowserClient overrides:
24 virtual bool IsShuttingDown() OVERRIDE;
25 virtual bool AreExtensionsDisabled(const CommandLine& command_line,
26 content::BrowserContext* context) OVERRIDE;
27 virtual bool IsValidContext(content::BrowserContext* context) OVERRIDE;
28 virtual bool IsSameContext(content::BrowserContext* first,
29 content::BrowserContext* second) OVERRIDE;
30 virtual bool HasOffTheRecordContext(content::BrowserContext* context)
31 OVERRIDE;
32 virtual content::BrowserContext* GetOffTheRecordContext(
33 content::BrowserContext* context) OVERRIDE;
34 virtual content::BrowserContext* GetOriginalContext(
35 content::BrowserContext* context) OVERRIDE;
36 virtual PrefService* GetPrefServiceForContext(
37 content::BrowserContext* context) OVERRIDE;
38 virtual bool DeferLoadingBackgroundHosts(content::BrowserContext* context)
39 const OVERRIDE;
40 virtual bool IsBackgroundPageAllowed(content::BrowserContext* context)
41 const OVERRIDE;
42 virtual void OnExtensionHostCreated(content::WebContents* web_contents)
43 OVERRIDE;
44 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE;
45 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE;
46 virtual bool IsRunningInForcedAppMode() OVERRIDE;
47 virtual content::JavaScriptDialogManager* GetJavaScriptDialogManager()
48 OVERRIDE;
49 virtual std::vector<BrowserContextKeyedServiceFactory*>
50 GetExtensionSystemDependencies() OVERRIDE;
51 virtual ExtensionSystem* CreateExtensionSystem(
52 content::BrowserContext* context) OVERRIDE;
53
54 private:
55 // The single BrowserContext for app_shell. Not owned.
56 content::BrowserContext* browser_context_;
57
58 // The PrefService for |browser_context_|.
59 scoped_ptr<PrefService> prefs_;
60
61 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient);
62 };
63
64 } // namespace extensions
65
66 #endif // APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « apps/shell/shell_extension_system.cc ('k') | apps/shell/shell_extensions_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698