| 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 28 matching lines...) Expand all Loading... |
| 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; |
| 47 bool IsAPISchemaGenerated(const std::string& name) const override; | 47 bool IsAPISchemaGenerated(const std::string& name) const override; |
| 48 base::StringPiece GetAPISchema(const std::string& name) const override; | 48 base::StringPiece GetAPISchema(const std::string& name) const override; |
| 49 void RegisterAPISchemaResources(ExtensionAPI* api) const override; | |
| 50 bool ShouldSuppressFatalErrors() const override; | 49 bool ShouldSuppressFatalErrors() const override; |
| 51 void RecordDidSuppressFatalError() override; | 50 void RecordDidSuppressFatalError() override; |
| 52 std::string GetWebstoreBaseURL() const override; | 51 std::string GetWebstoreBaseURL() const override; |
| 53 std::string GetWebstoreUpdateURL() const override; | 52 std::string GetWebstoreUpdateURL() const override; |
| 54 bool IsBlacklistUpdateURL(const GURL& url) const override; | 53 bool IsBlacklistUpdateURL(const GURL& url) const override; |
| 55 std::set<base::FilePath> GetBrowserImagePaths( | 54 std::set<base::FilePath> GetBrowserImagePaths( |
| 56 const Extension* extension) override; | 55 const Extension* extension) override; |
| 57 | 56 |
| 58 // A whitelist of extensions that can script anywhere. Do not add to this | 57 // A whitelist of extensions that can script anywhere. Do not add to this |
| 59 // list (except in tests) without consulting the Extensions team first. | 58 // list (except in tests) without consulting the Extensions team first. |
| 60 // Note: Component extensions have this right implicitly and do not need to be | 59 // Note: Component extensions have this right implicitly and do not need to be |
| 61 // added to this list. | 60 // added to this list. |
| 62 ScriptingWhitelist scripting_whitelist_; | 61 ScriptingWhitelist scripting_whitelist_; |
| 63 | 62 |
| 64 std::set<BrowserImagePathsFilter*> browser_image_filters_; | 63 std::set<BrowserImagePathsFilter*> browser_image_filters_; |
| 65 | 64 |
| 66 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); | 65 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); |
| 67 }; | 66 }; |
| 68 | 67 |
| 69 } // namespace extensions | 68 } // namespace extensions |
| 70 | 69 |
| 71 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ | 70 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ |
| OLD | NEW |