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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
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_COMMON_SHELL_EXTENSIONS_CLIENT_H_
6 #define APPS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "extensions/common/extensions_client.h"
11 #include "extensions/common/permissions/extensions_api_permissions.h"
12
13 namespace apps {
14
15 // The app_shell implementation of ExtensionsClient.
16 class ShellExtensionsClient : public extensions::ExtensionsClient {
17 public:
18 ShellExtensionsClient();
19 virtual ~ShellExtensionsClient();
20
21 // extensions::ExtensionsClient overrides:
22 virtual void Initialize() OVERRIDE;
23 virtual const extensions::PermissionMessageProvider&
24 GetPermissionMessageProvider() const OVERRIDE;
25 virtual scoped_ptr<extensions::FeatureProvider> CreateFeatureProvider(
26 const std::string& name) const OVERRIDE;
27 virtual scoped_ptr<extensions::JSONFeatureProviderSource>
28 CreateFeatureProviderSource(const std::string& name) const OVERRIDE;
29 virtual void FilterHostPermissions(
30 const extensions::URLPatternSet& hosts,
31 extensions::URLPatternSet* new_hosts,
32 std::set<extensions::PermissionMessage>* messages) const OVERRIDE;
33 virtual void SetScriptingWhitelist(const ScriptingWhitelist& whitelist)
34 OVERRIDE;
35 virtual const ScriptingWhitelist& GetScriptingWhitelist() const OVERRIDE;
36 virtual extensions::URLPatternSet GetPermittedChromeSchemeHosts(
37 const extensions::Extension* extension,
38 const extensions::APIPermissionSet& api_permissions) const OVERRIDE;
39 virtual bool IsScriptableURL(const GURL& url, std::string* error) const
40 OVERRIDE;
41 virtual bool IsAPISchemaGenerated(const std::string& name) const OVERRIDE;
42 virtual base::StringPiece GetAPISchema(const std::string& name) const
43 OVERRIDE;
44 virtual void RegisterAPISchemaResources(
45 extensions::ExtensionAPI* api) const OVERRIDE;
46 virtual bool ShouldSuppressFatalErrors() const OVERRIDE;
47
48 private:
49 const extensions::ExtensionsAPIPermissions extensions_api_permissions_;
50
51 ScriptingWhitelist scripting_whitelist_;
52
53 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient);
54 };
55
56 } // namespace apps
57
58 #endif // APPS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
OLDNEW
« 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