| OLD | NEW |
| 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 PermissionsProvider& GetPermissionsProvider() const OVERRIDE; | |
| 21 virtual const PermissionMessageProvider& GetPermissionMessageProvider() const | 20 virtual const PermissionMessageProvider& GetPermissionMessageProvider() const |
| 22 OVERRIDE; | 21 OVERRIDE; |
| 23 virtual scoped_ptr<FeatureProvider> CreateFeatureProvider( | 22 virtual scoped_ptr<FeatureProvider> CreateFeatureProvider( |
| 24 const std::string& name) const OVERRIDE; | 23 const std::string& name) const OVERRIDE; |
| 25 virtual void FilterHostPermissions( | 24 virtual void FilterHostPermissions( |
| 26 const URLPatternSet& hosts, | 25 const URLPatternSet& hosts, |
| 27 URLPatternSet* new_hosts, | 26 URLPatternSet* new_hosts, |
| 28 std::set<PermissionMessage>* messages) const OVERRIDE; | 27 std::set<PermissionMessage>* messages) const OVERRIDE; |
| 29 virtual void SetScriptingWhitelist( | 28 virtual void SetScriptingWhitelist( |
| 30 const ScriptingWhitelist& whitelist) OVERRIDE; | 29 const ScriptingWhitelist& whitelist) OVERRIDE; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 44 // Note: Component extensions have this right implicitly and do not need to be | 43 // Note: Component extensions have this right implicitly and do not need to be |
| 45 // added to this list. | 44 // added to this list. |
| 46 ScriptingWhitelist scripting_whitelist_; | 45 ScriptingWhitelist scripting_whitelist_; |
| 47 | 46 |
| 48 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); | 47 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 } // namespace extensions | 50 } // namespace extensions |
| 52 | 51 |
| 53 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ | 52 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ |
| OLD | NEW |