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

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

Issue 99053008: Rename apps::AppShell* to apps::Shell* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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_content_client.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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 APPS_SHELL_APP_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
6 #define APPS_SHELL_APP_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "extensions/browser/extensions_browser_client.h" 9 #include "extensions/browser/extensions_browser_client.h"
10 10
11 class PrefService; 11 class PrefService;
12 12
13 namespace apps { 13 namespace apps {
14 14
15 // An ExtensionsBrowserClient that supports a single content::BrowserContent 15 // An ExtensionsBrowserClient that supports a single content::BrowserContent
16 // with no related incognito context. 16 // with no related incognito context.
17 class AppShellExtensionsBrowserClient 17 class ShellExtensionsBrowserClient
18 : public extensions::ExtensionsBrowserClient { 18 : public extensions::ExtensionsBrowserClient {
19 public: 19 public:
20 // |context| is the single BrowserContext used for IsValidContext() below. 20 // |context| is the single BrowserContext used for IsValidContext() below.
21 explicit AppShellExtensionsBrowserClient(content::BrowserContext* context); 21 explicit ShellExtensionsBrowserClient(content::BrowserContext* context);
22 virtual ~AppShellExtensionsBrowserClient(); 22 virtual ~ShellExtensionsBrowserClient();
23 23
24 // extensions::ExtensionsBrowserClient overrides: 24 // extensions::ExtensionsBrowserClient overrides:
25 virtual bool IsShuttingDown() OVERRIDE; 25 virtual bool IsShuttingDown() OVERRIDE;
26 virtual bool AreExtensionsDisabled(const CommandLine& command_line, 26 virtual bool AreExtensionsDisabled(const CommandLine& command_line,
27 content::BrowserContext* context) OVERRIDE; 27 content::BrowserContext* context) OVERRIDE;
28 virtual bool IsValidContext(content::BrowserContext* context) OVERRIDE; 28 virtual bool IsValidContext(content::BrowserContext* context) OVERRIDE;
29 virtual bool IsSameContext(content::BrowserContext* first, 29 virtual bool IsSameContext(content::BrowserContext* first,
30 content::BrowserContext* second) OVERRIDE; 30 content::BrowserContext* second) OVERRIDE;
31 virtual bool HasOffTheRecordContext(content::BrowserContext* context) 31 virtual bool HasOffTheRecordContext(content::BrowserContext* context)
32 OVERRIDE; 32 OVERRIDE;
33 virtual content::BrowserContext* GetOffTheRecordContext( 33 virtual content::BrowserContext* GetOffTheRecordContext(
34 content::BrowserContext* context) OVERRIDE; 34 content::BrowserContext* context) OVERRIDE;
35 virtual content::BrowserContext* GetOriginalContext( 35 virtual content::BrowserContext* GetOriginalContext(
36 content::BrowserContext* context) OVERRIDE; 36 content::BrowserContext* context) OVERRIDE;
37 virtual PrefService* GetPrefServiceForContext( 37 virtual PrefService* GetPrefServiceForContext(
38 content::BrowserContext* context) OVERRIDE; 38 content::BrowserContext* context) OVERRIDE;
39 virtual bool DeferLoadingBackgroundHosts(content::BrowserContext* context) 39 virtual bool DeferLoadingBackgroundHosts(content::BrowserContext* context)
40 const OVERRIDE; 40 const OVERRIDE;
41 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; 41 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE;
42 virtual scoped_ptr<extensions::AppSorting> CreateAppSorting() OVERRIDE; 42 virtual scoped_ptr<extensions::AppSorting> CreateAppSorting() OVERRIDE;
43 virtual bool IsRunningInForcedAppMode() OVERRIDE; 43 virtual bool IsRunningInForcedAppMode() OVERRIDE;
44 44
45 private: 45 private:
46 // The single BrowserContext for app_shell. Not owned. 46 // The single BrowserContext for app_shell. Not owned.
47 content::BrowserContext* browser_context_; 47 content::BrowserContext* browser_context_;
48 48
49 // The PrefService for |browser_context_|. 49 // The PrefService for |browser_context_|.
50 scoped_ptr<PrefService> prefs_; 50 scoped_ptr<PrefService> prefs_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(AppShellExtensionsBrowserClient); 52 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient);
53 }; 53 };
54 54
55 } // namespace apps 55 } // namespace apps
56 56
57 #endif // APPS_SHELL_APP_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ 57 #endif // APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « apps/shell/shell_content_client.cc ('k') | apps/shell/shell_extensions_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698