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

Side by Side Diff: extensions/test/test_extensions_client.h

Issue 664933004: Standardize usage of virtual/override/final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/test/result_catcher.h ('k') | extensions/test/test_permission_message_provider.h » ('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_TEST_TEST_EXTENSIONS_CLIENT_H_ 5 #ifndef EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_
6 #define EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ 6 #define EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/common/extensions_client.h" 9 #include "extensions/common/extensions_client.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 class TestExtensionsClient : public ExtensionsClient { 13 class TestExtensionsClient : public ExtensionsClient {
14 public: 14 public:
15 TestExtensionsClient(); 15 TestExtensionsClient();
16 virtual ~TestExtensionsClient(); 16 ~TestExtensionsClient() override;
17 17
18 private: 18 private:
19 virtual void Initialize() override; 19 void Initialize() override;
20 virtual const PermissionMessageProvider& GetPermissionMessageProvider() const 20 const PermissionMessageProvider& GetPermissionMessageProvider()
21 override; 21 const override;
22 virtual const std::string GetProductName() override; 22 const std::string GetProductName() override;
23 virtual scoped_ptr<FeatureProvider> CreateFeatureProvider( 23 scoped_ptr<FeatureProvider> CreateFeatureProvider(
24 const std::string& name) const override; 24 const std::string& name) const override;
25 virtual scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource( 25 scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource(
26 const std::string& name) const override; 26 const std::string& name) const override;
27 virtual void FilterHostPermissions( 27 void FilterHostPermissions(
28 const URLPatternSet& hosts, 28 const URLPatternSet& hosts,
29 URLPatternSet* new_hosts, 29 URLPatternSet* new_hosts,
30 std::set<PermissionMessage>* messages) const override; 30 std::set<PermissionMessage>* messages) const override;
31 virtual void SetScriptingWhitelist( 31 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override;
32 const ScriptingWhitelist& whitelist) override; 32 const ScriptingWhitelist& GetScriptingWhitelist() const override;
33 virtual const ScriptingWhitelist& GetScriptingWhitelist() const override; 33 URLPatternSet GetPermittedChromeSchemeHosts(
34 virtual URLPatternSet GetPermittedChromeSchemeHosts(
35 const Extension* extension, 34 const Extension* extension,
36 const APIPermissionSet& api_permissions) const override; 35 const APIPermissionSet& api_permissions) const override;
37 virtual bool IsScriptableURL(const GURL& url, 36 bool IsScriptableURL(const GURL& url, std::string* error) const override;
38 std::string* error) const override; 37 bool IsAPISchemaGenerated(const std::string& name) const override;
39 virtual bool IsAPISchemaGenerated(const std::string& name) const override; 38 base::StringPiece GetAPISchema(const std::string& name) const override;
40 virtual base::StringPiece GetAPISchema( 39 void RegisterAPISchemaResources(ExtensionAPI* api) const override;
41 const std::string& name) const override; 40 bool ShouldSuppressFatalErrors() const override;
42 virtual void RegisterAPISchemaResources(ExtensionAPI* api) const override; 41 std::string GetWebstoreBaseURL() const override;
43 virtual bool ShouldSuppressFatalErrors() const override; 42 std::string GetWebstoreUpdateURL() const override;
44 virtual std::string GetWebstoreBaseURL() const override; 43 bool IsBlacklistUpdateURL(const GURL& url) const override;
45 virtual std::string GetWebstoreUpdateURL() const override;
46 virtual bool IsBlacklistUpdateURL(const GURL& url) const override;
47 44
48 // A whitelist of extensions that can script anywhere. Do not add to this 45 // A whitelist of extensions that can script anywhere. Do not add to this
49 // list (except in tests) without consulting the Extensions team first. 46 // list (except in tests) without consulting the Extensions team first.
50 // Note: Component extensions have this right implicitly and do not need to be 47 // Note: Component extensions have this right implicitly and do not need to be
51 // added to this list. 48 // added to this list.
52 ScriptingWhitelist scripting_whitelist_; 49 ScriptingWhitelist scripting_whitelist_;
53 50
54 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); 51 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient);
55 }; 52 };
56 53
57 } // namespace extensions 54 } // namespace extensions
58 55
59 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ 56 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/test/result_catcher.h ('k') | extensions/test/test_permission_message_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698