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

Side by Side Diff: extensions/shell/common/shell_extensions_client.h

Issue 1213623006: Extensions: Remove PermissionMessage (permission_message.h/cc) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kill_getmessages
Patch Set: fix app_shell build, rebase Created 5 years, 4 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
« no previous file with comments | « extensions/extensions.gypi ('k') | extensions/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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_ 5 #ifndef EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
6 #define EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_ 6 #define EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "extensions/common/extensions_client.h" 10 #include "extensions/common/extensions_client.h"
11 #include "extensions/common/permissions/extensions_api_permissions.h" 11 #include "extensions/common/permissions/extensions_api_permissions.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 // The app_shell implementation of ExtensionsClient. 15 // The app_shell implementation of ExtensionsClient.
16 class ShellExtensionsClient : public ExtensionsClient { 16 class ShellExtensionsClient : public ExtensionsClient {
17 public: 17 public:
18 ShellExtensionsClient(); 18 ShellExtensionsClient();
19 ~ShellExtensionsClient() override; 19 ~ShellExtensionsClient() override;
20 20
21 // ExtensionsClient overrides: 21 // ExtensionsClient overrides:
22 void Initialize() override; 22 void Initialize() override;
23 const PermissionMessageProvider& GetPermissionMessageProvider() 23 const PermissionMessageProvider& GetPermissionMessageProvider()
24 const override; 24 const override;
25 const std::string GetProductName() override; 25 const std::string GetProductName() override;
26 scoped_ptr<FeatureProvider> CreateFeatureProvider( 26 scoped_ptr<FeatureProvider> CreateFeatureProvider(
27 const std::string& name) const override; 27 const std::string& name) const override;
28 scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource( 28 scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource(
29 const std::string& name) const override; 29 const std::string& name) const override;
30 void FilterHostPermissions(
31 const URLPatternSet& hosts,
32 URLPatternSet* new_hosts,
33 std::set<PermissionMessage>* messages) const override;
34 void FilterHostPermissions(const URLPatternSet& hosts, 30 void FilterHostPermissions(const URLPatternSet& hosts,
35 URLPatternSet* new_hosts, 31 URLPatternSet* new_hosts,
36 PermissionIDSet* permissions) const override; 32 PermissionIDSet* permissions) const override;
37 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override; 33 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override;
38 const ScriptingWhitelist& GetScriptingWhitelist() const override; 34 const ScriptingWhitelist& GetScriptingWhitelist() const override;
39 URLPatternSet GetPermittedChromeSchemeHosts( 35 URLPatternSet GetPermittedChromeSchemeHosts(
40 const Extension* extension, 36 const Extension* extension,
41 const APIPermissionSet& api_permissions) const override; 37 const APIPermissionSet& api_permissions) const override;
42 bool IsScriptableURL(const GURL& url, std::string* error) const override; 38 bool IsScriptableURL(const GURL& url, std::string* error) const override;
43 bool IsAPISchemaGenerated(const std::string& name) const override; 39 bool IsAPISchemaGenerated(const std::string& name) const override;
44 base::StringPiece GetAPISchema(const std::string& name) const override; 40 base::StringPiece GetAPISchema(const std::string& name) const override;
45 void RegisterAPISchemaResources(ExtensionAPI* api) const override; 41 void RegisterAPISchemaResources(ExtensionAPI* api) const override;
46 bool ShouldSuppressFatalErrors() const override; 42 bool ShouldSuppressFatalErrors() const override;
47 void RecordDidSuppressFatalError() override; 43 void RecordDidSuppressFatalError() override;
48 std::string GetWebstoreBaseURL() const override; 44 std::string GetWebstoreBaseURL() const override;
49 std::string GetWebstoreUpdateURL() const override; 45 std::string GetWebstoreUpdateURL() const override;
50 bool IsBlacklistUpdateURL(const GURL& url) const override; 46 bool IsBlacklistUpdateURL(const GURL& url) const override;
51 47
52 private: 48 private:
53 const ExtensionsAPIPermissions extensions_api_permissions_; 49 const ExtensionsAPIPermissions extensions_api_permissions_;
54 50
55 ScriptingWhitelist scripting_whitelist_; 51 ScriptingWhitelist scripting_whitelist_;
56 52
57 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient); 53 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient);
58 }; 54 };
59 55
60 } // namespace extensions 56 } // namespace extensions
61 57
62 #endif // EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_ 58 #endif // EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/extensions.gypi ('k') | extensions/shell/common/shell_extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698