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

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

Issue 1908953003: Convert //extensions/{common,shell} from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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
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/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.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 std::unique_ptr<FeatureProvider> CreateFeatureProvider(
27 const std::string& name) const override; 27 const std::string& name) const override;
28 scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource( 28 std::unique_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource(
29 const std::string& name) const override; 29 const std::string& name) const override;
30 void FilterHostPermissions(const URLPatternSet& hosts, 30 void FilterHostPermissions(const URLPatternSet& hosts,
31 URLPatternSet* new_hosts, 31 URLPatternSet* new_hosts,
32 PermissionIDSet* permissions) const override; 32 PermissionIDSet* permissions) const override;
33 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override; 33 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override;
34 const ScriptingWhitelist& GetScriptingWhitelist() const override; 34 const ScriptingWhitelist& GetScriptingWhitelist() const override;
35 URLPatternSet GetPermittedChromeSchemeHosts( 35 URLPatternSet GetPermittedChromeSchemeHosts(
36 const Extension* extension, 36 const Extension* extension,
37 const APIPermissionSet& api_permissions) const override; 37 const APIPermissionSet& api_permissions) const override;
38 bool IsScriptableURL(const GURL& url, std::string* error) const override; 38 bool IsScriptableURL(const GURL& url, std::string* error) const override;
(...skipping 10 matching lines...) Expand all
49 const ExtensionsAPIPermissions extensions_api_permissions_; 49 const ExtensionsAPIPermissions extensions_api_permissions_;
50 50
51 ScriptingWhitelist scripting_whitelist_; 51 ScriptingWhitelist scripting_whitelist_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient); 53 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient);
54 }; 54 };
55 55
56 } // namespace extensions 56 } // namespace extensions
57 57
58 #endif // EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_ 58 #endif // EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_screen_unittest.cc ('k') | extensions/shell/common/shell_extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698