| 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 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 ~TestExtensionsClient() override; | 24 ~TestExtensionsClient() override; |
| 25 | 25 |
| 26 void AddBrowserImagePathsFilter(BrowserImagePathsFilter* filter); | 26 void AddBrowserImagePathsFilter(BrowserImagePathsFilter* filter); |
| 27 void RemoveBrowserImagePathsFilter(BrowserImagePathsFilter* filter); | 27 void RemoveBrowserImagePathsFilter(BrowserImagePathsFilter* filter); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 void Initialize() override; | 30 void Initialize() override; |
| 31 const PermissionMessageProvider& GetPermissionMessageProvider() | 31 const PermissionMessageProvider& GetPermissionMessageProvider() |
| 32 const override; | 32 const override; |
| 33 const std::string GetProductName() override; | 33 const std::string GetProductName() override; |
| 34 scoped_ptr<FeatureProvider> CreateFeatureProvider( | 34 std::unique_ptr<FeatureProvider> CreateFeatureProvider( |
| 35 const std::string& name) const override; | 35 const std::string& name) const override; |
| 36 scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource( | 36 std::unique_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource( |
| 37 const std::string& name) const override; | 37 const std::string& name) const override; |
| 38 void FilterHostPermissions(const URLPatternSet& hosts, | 38 void FilterHostPermissions(const URLPatternSet& hosts, |
| 39 URLPatternSet* new_hosts, | 39 URLPatternSet* new_hosts, |
| 40 PermissionIDSet* permissions) const override; | 40 PermissionIDSet* permissions) const override; |
| 41 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override; | 41 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override; |
| 42 const ScriptingWhitelist& GetScriptingWhitelist() const override; | 42 const ScriptingWhitelist& GetScriptingWhitelist() const override; |
| 43 URLPatternSet GetPermittedChromeSchemeHosts( | 43 URLPatternSet GetPermittedChromeSchemeHosts( |
| 44 const Extension* extension, | 44 const Extension* extension, |
| 45 const APIPermissionSet& api_permissions) const override; | 45 const APIPermissionSet& api_permissions) const override; |
| 46 bool IsScriptableURL(const GURL& url, std::string* error) const override; | 46 bool IsScriptableURL(const GURL& url, std::string* error) const override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 62 ScriptingWhitelist scripting_whitelist_; | 62 ScriptingWhitelist scripting_whitelist_; |
| 63 | 63 |
| 64 std::set<BrowserImagePathsFilter*> browser_image_filters_; | 64 std::set<BrowserImagePathsFilter*> browser_image_filters_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); | 66 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace extensions | 69 } // namespace extensions |
| 70 | 70 |
| 71 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ | 71 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ |
| OLD | NEW |