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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/shell_extensions_browser_client.h
diff --git a/apps/shell/shell_extensions_browser_client.h b/apps/shell/shell_extensions_browser_client.h
deleted file mode 100644
index 86781b5c8455b6e749f5d2de6f043a55814d94ff..0000000000000000000000000000000000000000
--- a/apps/shell/shell_extensions_browser_client.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
-#define APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
-
-#include "base/compiler_specific.h"
-#include "extensions/browser/extensions_browser_client.h"
-
-class PrefService;
-
-namespace extensions {
-
-// An ExtensionsBrowserClient that supports a single content::BrowserContent
-// with no related incognito context.
-class ShellExtensionsBrowserClient : public ExtensionsBrowserClient {
- public:
- // |context| is the single BrowserContext used for IsValidContext() below.
- explicit ShellExtensionsBrowserClient(content::BrowserContext* context);
- virtual ~ShellExtensionsBrowserClient();
-
- // ExtensionsBrowserClient overrides:
- virtual bool IsShuttingDown() OVERRIDE;
- virtual bool AreExtensionsDisabled(const CommandLine& command_line,
- content::BrowserContext* context) OVERRIDE;
- virtual bool IsValidContext(content::BrowserContext* context) OVERRIDE;
- virtual bool IsSameContext(content::BrowserContext* first,
- content::BrowserContext* second) OVERRIDE;
- virtual bool HasOffTheRecordContext(content::BrowserContext* context)
- OVERRIDE;
- virtual content::BrowserContext* GetOffTheRecordContext(
- content::BrowserContext* context) OVERRIDE;
- virtual content::BrowserContext* GetOriginalContext(
- content::BrowserContext* context) OVERRIDE;
- virtual PrefService* GetPrefServiceForContext(
- content::BrowserContext* context) OVERRIDE;
- virtual bool DeferLoadingBackgroundHosts(content::BrowserContext* context)
- const OVERRIDE;
- virtual bool IsBackgroundPageAllowed(content::BrowserContext* context)
- const OVERRIDE;
- virtual void OnExtensionHostCreated(content::WebContents* web_contents)
- OVERRIDE;
- virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE;
- virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE;
- virtual bool IsRunningInForcedAppMode() OVERRIDE;
- virtual content::JavaScriptDialogManager* GetJavaScriptDialogManager()
- OVERRIDE;
- virtual std::vector<BrowserContextKeyedServiceFactory*>
- GetExtensionSystemDependencies() OVERRIDE;
- virtual ExtensionSystem* CreateExtensionSystem(
- content::BrowserContext* context) OVERRIDE;
-
- private:
- // The single BrowserContext for app_shell. Not owned.
- content::BrowserContext* browser_context_;
-
- // The PrefService for |browser_context_|.
- scoped_ptr<PrefService> prefs_;
-
- DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient);
-};
-
-} // namespace extensions
-
-#endif // APPS_SHELL_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
« 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