| 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 20 matching lines...) Expand all Loading... |
| 31 const ScriptingWhitelist& whitelist) OVERRIDE; | 31 const ScriptingWhitelist& whitelist) OVERRIDE; |
| 32 virtual const ScriptingWhitelist& GetScriptingWhitelist() const OVERRIDE; | 32 virtual const ScriptingWhitelist& GetScriptingWhitelist() const OVERRIDE; |
| 33 virtual URLPatternSet GetPermittedChromeSchemeHosts( | 33 virtual URLPatternSet GetPermittedChromeSchemeHosts( |
| 34 const Extension* extension, | 34 const Extension* extension, |
| 35 const APIPermissionSet& api_permissions) const OVERRIDE; | 35 const APIPermissionSet& api_permissions) const OVERRIDE; |
| 36 virtual bool IsScriptableURL(const GURL& url, | 36 virtual bool IsScriptableURL(const GURL& url, |
| 37 std::string* error) const OVERRIDE; | 37 std::string* error) const OVERRIDE; |
| 38 virtual bool IsAPISchemaGenerated(const std::string& name) const OVERRIDE; | 38 virtual bool IsAPISchemaGenerated(const std::string& name) const OVERRIDE; |
| 39 virtual base::StringPiece GetAPISchema( | 39 virtual base::StringPiece GetAPISchema( |
| 40 const std::string& name) const OVERRIDE; | 40 const std::string& name) const OVERRIDE; |
| 41 virtual void RegisterAPISchemaResources(ExtensionAPI* api) const OVERRIDE; |
| 41 virtual bool ShouldSuppressFatalErrors() const OVERRIDE; | 42 virtual bool ShouldSuppressFatalErrors() const OVERRIDE; |
| 42 | 43 |
| 43 // A whitelist of extensions that can script anywhere. Do not add to this | 44 // A whitelist of extensions that can script anywhere. Do not add to this |
| 44 // list (except in tests) without consulting the Extensions team first. | 45 // list (except in tests) without consulting the Extensions team first. |
| 45 // Note: Component extensions have this right implicitly and do not need to be | 46 // Note: Component extensions have this right implicitly and do not need to be |
| 46 // added to this list. | 47 // added to this list. |
| 47 ScriptingWhitelist scripting_whitelist_; | 48 ScriptingWhitelist scripting_whitelist_; |
| 48 | 49 |
| 49 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); | 50 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 } // namespace extensions | 53 } // namespace extensions |
| 53 | 54 |
| 54 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ | 55 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ |
| OLD | NEW |