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

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

Issue 503033002: Move ExtensionWarningService and ExtensionsWarningSet to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@3_web_view_internal
Patch Set: rebase Created 6 years, 3 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_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 virtual ~TestExtensionsClient();
17 17
18 private: 18 private:
19 virtual void Initialize() OVERRIDE; 19 virtual void Initialize() OVERRIDE;
20 virtual const PermissionMessageProvider& GetPermissionMessageProvider() const 20 virtual const PermissionMessageProvider& GetPermissionMessageProvider() const
21 OVERRIDE; 21 OVERRIDE;
22 virtual const std::string GetProductName() OVERRIDE;
22 virtual scoped_ptr<FeatureProvider> CreateFeatureProvider( 23 virtual scoped_ptr<FeatureProvider> CreateFeatureProvider(
23 const std::string& name) const OVERRIDE; 24 const std::string& name) const OVERRIDE;
24 virtual scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource( 25 virtual scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource(
25 const std::string& name) const OVERRIDE; 26 const std::string& name) const OVERRIDE;
26 virtual void FilterHostPermissions( 27 virtual void FilterHostPermissions(
27 const URLPatternSet& hosts, 28 const URLPatternSet& hosts,
28 URLPatternSet* new_hosts, 29 URLPatternSet* new_hosts,
29 std::set<PermissionMessage>* messages) const OVERRIDE; 30 std::set<PermissionMessage>* messages) const OVERRIDE;
30 virtual void SetScriptingWhitelist( 31 virtual void SetScriptingWhitelist(
31 const ScriptingWhitelist& whitelist) OVERRIDE; 32 const ScriptingWhitelist& whitelist) OVERRIDE;
(...skipping 14 matching lines...) Expand all
46 // 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
47 // added to this list. 48 // added to this list.
48 ScriptingWhitelist scripting_whitelist_; 49 ScriptingWhitelist scripting_whitelist_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); 51 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient);
51 }; 52 };
52 53
53 } // namespace extensions 54 } // namespace extensions
54 55
55 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ 56 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/shell/common/shell_extensions_client.cc ('k') | extensions/test/test_extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698