#ifndef APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
#define APPS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
#include "base/compiler_specific.h"
#include "extensions/browser/extensions_browser_client.h"
class PrefService;
namespace extensions {
class ExtensionsAPIClient;
class ShellExtensionsBrowserClient : public ExtensionsBrowserClient {
public:
explicit ShellExtensionsBrowserClient(content::BrowserContext* context);
virtual ~ShellExtensionsBrowserClient();
virtual bool IsShuttingDown() OVERRIDE;
virtual bool AreExtensionsDisabled(const base::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 bool IsGuestSession(content::BrowserContext* context) const OVERRIDE;
virtual bool IsExtensionIncognitoEnabled(
const std::string& extension_id,
content::BrowserContext* context) const OVERRIDE;
virtual bool CanExtensionCrossIncognito(
const extensions::Extension* extension,
content::BrowserContext* context) const OVERRIDE;
virtual PrefService* GetPrefServiceForContext(
content::BrowserContext* context) OVERRIDE;
virtual void GetEarlyExtensionPrefsObservers(
content::BrowserContext* context,
std::vector<ExtensionPrefsObserver*>* observers) const OVERRIDE;
virtual bool DeferLoadingBackgroundHosts(content::BrowserContext* context)
const OVERRIDE;
virtual bool IsBackgroundPageAllowed(content::BrowserContext* context)
const OVERRIDE;
virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate()
OVERRIDE;
virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE;
virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE;
virtual bool IsRunningInForcedAppMode() OVERRIDE;
virtual ApiActivityMonitor* GetApiActivityMonitor(
content::BrowserContext* context) OVERRIDE;
virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE;
virtual void RegisterExtensionFunctions(
ExtensionFunctionRegistry* registry) const OVERRIDE;
private:
content::BrowserContext* browser_context_;
scoped_ptr<ExtensionsAPIClient> api_client_;
scoped_ptr<PrefService> prefs_;
DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient);
};
}
#endif