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

Unified Diff: apps/shell/common/shell_extensions_client.h

Issue 412713002: Move apps/shell to extensions/shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 40% Created 6 years, 5 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/common/shell_content_client.cc ('k') | apps/shell/common/shell_extensions_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/common/shell_extensions_client.h
diff --git a/apps/shell/common/shell_extensions_client.h b/apps/shell/common/shell_extensions_client.h
deleted file mode 100644
index 0ebb3adb21ccff938579b4837678825c0a166fa9..0000000000000000000000000000000000000000
--- a/apps/shell/common/shell_extensions_client.h
+++ /dev/null
@@ -1,58 +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_COMMON_SHELL_EXTENSIONS_CLIENT_H_
-#define APPS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "extensions/common/extensions_client.h"
-#include "extensions/common/permissions/extensions_api_permissions.h"
-
-namespace apps {
-
-// The app_shell implementation of ExtensionsClient.
-class ShellExtensionsClient : public extensions::ExtensionsClient {
- public:
- ShellExtensionsClient();
- virtual ~ShellExtensionsClient();
-
- // extensions::ExtensionsClient overrides:
- virtual void Initialize() OVERRIDE;
- virtual const extensions::PermissionMessageProvider&
- GetPermissionMessageProvider() const OVERRIDE;
- virtual scoped_ptr<extensions::FeatureProvider> CreateFeatureProvider(
- const std::string& name) const OVERRIDE;
- virtual scoped_ptr<extensions::JSONFeatureProviderSource>
- CreateFeatureProviderSource(const std::string& name) const OVERRIDE;
- virtual void FilterHostPermissions(
- const extensions::URLPatternSet& hosts,
- extensions::URLPatternSet* new_hosts,
- std::set<extensions::PermissionMessage>* messages) const OVERRIDE;
- virtual void SetScriptingWhitelist(const ScriptingWhitelist& whitelist)
- OVERRIDE;
- virtual const ScriptingWhitelist& GetScriptingWhitelist() const OVERRIDE;
- virtual extensions::URLPatternSet GetPermittedChromeSchemeHosts(
- const extensions::Extension* extension,
- const extensions::APIPermissionSet& api_permissions) const OVERRIDE;
- virtual bool IsScriptableURL(const GURL& url, std::string* error) const
- OVERRIDE;
- virtual bool IsAPISchemaGenerated(const std::string& name) const OVERRIDE;
- virtual base::StringPiece GetAPISchema(const std::string& name) const
- OVERRIDE;
- virtual void RegisterAPISchemaResources(
- extensions::ExtensionAPI* api) const OVERRIDE;
- virtual bool ShouldSuppressFatalErrors() const OVERRIDE;
-
- private:
- const extensions::ExtensionsAPIPermissions extensions_api_permissions_;
-
- ScriptingWhitelist scripting_whitelist_;
-
- DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient);
-};
-
-} // namespace apps
-
-#endif // APPS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
« no previous file with comments | « apps/shell/common/shell_content_client.cc ('k') | apps/shell/common/shell_extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698