Update broken references to image assets
[chromium-blink-merge.git] / extensions / shell / common / shell_extensions_client.h
bloba173185cdbf3b73bd1c274a208b92e8a52e08d44
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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
6 #define EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
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"
13 namespace extensions {
15 // The app_shell implementation of ExtensionsClient.
16 class ShellExtensionsClient : public ExtensionsClient {
17 public:
18 ShellExtensionsClient();
19 ~ShellExtensionsClient() override;
21 // ExtensionsClient overrides:
22 void Initialize() override;
23 const PermissionMessageProvider& GetPermissionMessageProvider()
24 const override;
25 const std::string GetProductName() override;
26 scoped_ptr<FeatureProvider> CreateFeatureProvider(
27 const std::string& name) const override;
28 scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource(
29 const std::string& name) const override;
30 void FilterHostPermissions(const URLPatternSet& hosts,
31 URLPatternSet* new_hosts,
32 PermissionIDSet* permissions) const override;
33 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override;
34 const ScriptingWhitelist& GetScriptingWhitelist() const override;
35 URLPatternSet GetPermittedChromeSchemeHosts(
36 const Extension* extension,
37 const APIPermissionSet& api_permissions) const override;
38 bool IsScriptableURL(const GURL& url, std::string* error) const override;
39 bool IsAPISchemaGenerated(const std::string& name) const override;
40 base::StringPiece GetAPISchema(const std::string& name) const override;
41 void RegisterAPISchemaResources(ExtensionAPI* api) const override;
42 bool ShouldSuppressFatalErrors() const override;
43 void RecordDidSuppressFatalError() override;
44 std::string GetWebstoreBaseURL() const override;
45 std::string GetWebstoreUpdateURL() const override;
46 bool IsBlacklistUpdateURL(const GURL& url) const override;
48 private:
49 const ExtensionsAPIPermissions extensions_api_permissions_;
51 ScriptingWhitelist scripting_whitelist_;
53 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient);
56 } // namespace extensions
58 #endif // EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_