| 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 #include "extensions/browser/test_extensions_browser_client.h" | 5 #include "extensions/browser/test_extensions_browser_client.h" |
| 6 | 6 |
| 7 #include "content/public/browser/browser_context.h" | 7 #include "content/public/browser/browser_context.h" |
| 8 #include "extensions/browser/app_sorting.h" | 8 #include "extensions/browser/app_sorting.h" |
| 9 #include "extensions/browser/extension_host_delegate.h" | 9 #include "extensions/browser/extension_host_delegate.h" |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 content::BrowserContext* context) const { | 76 content::BrowserContext* context) const { |
| 77 return false; | 77 return false; |
| 78 } | 78 } |
| 79 | 79 |
| 80 bool TestExtensionsBrowserClient::CanExtensionCrossIncognito( | 80 bool TestExtensionsBrowserClient::CanExtensionCrossIncognito( |
| 81 const extensions::Extension* extension, | 81 const extensions::Extension* extension, |
| 82 content::BrowserContext* context) const { | 82 content::BrowserContext* context) const { |
| 83 return false; | 83 return false; |
| 84 } | 84 } |
| 85 | 85 |
| 86 net::URLRequestJob* |
| 87 TestExtensionsBrowserClient::MaybeCreateResourceBundleRequestJob( |
| 88 net::URLRequest* request, |
| 89 net::NetworkDelegate* network_delegate, |
| 90 const base::FilePath& directory_path, |
| 91 const std::string& content_security_policy, |
| 92 bool send_cors_header) { |
| 93 return NULL; |
| 94 } |
| 95 |
| 96 bool TestExtensionsBrowserClient::AllowCrossRendererResourceLoad( |
| 97 net::URLRequest* request, |
| 98 bool is_incognito, |
| 99 const Extension* extension, |
| 100 InfoMap* extension_info_map) { |
| 101 return false; |
| 102 } |
| 103 |
| 86 PrefService* TestExtensionsBrowserClient::GetPrefServiceForContext( | 104 PrefService* TestExtensionsBrowserClient::GetPrefServiceForContext( |
| 87 BrowserContext* context) { | 105 BrowserContext* context) { |
| 88 return NULL; | 106 return NULL; |
| 89 } | 107 } |
| 90 | 108 |
| 91 void TestExtensionsBrowserClient::GetEarlyExtensionPrefsObservers( | 109 void TestExtensionsBrowserClient::GetEarlyExtensionPrefsObservers( |
| 92 content::BrowserContext* context, | 110 content::BrowserContext* context, |
| 93 std::vector<ExtensionPrefsObserver*>* observers) const {} | 111 std::vector<ExtensionPrefsObserver*>* observers) const {} |
| 94 | 112 |
| 95 bool TestExtensionsBrowserClient::DeferLoadingBackgroundHosts( | 113 bool TestExtensionsBrowserClient::DeferLoadingBackgroundHosts( |
| (...skipping 30 matching lines...) Expand all Loading... |
| 126 TestExtensionsBrowserClient::GetExtensionSystemFactory() { | 144 TestExtensionsBrowserClient::GetExtensionSystemFactory() { |
| 127 // Tests requiring an extension system should override this function. | 145 // Tests requiring an extension system should override this function. |
| 128 NOTREACHED(); | 146 NOTREACHED(); |
| 129 return NULL; | 147 return NULL; |
| 130 } | 148 } |
| 131 | 149 |
| 132 void TestExtensionsBrowserClient::RegisterExtensionFunctions( | 150 void TestExtensionsBrowserClient::RegisterExtensionFunctions( |
| 133 ExtensionFunctionRegistry* registry) const {} | 151 ExtensionFunctionRegistry* registry) const {} |
| 134 | 152 |
| 135 } // namespace extensions | 153 } // namespace extensions |
| OLD | NEW |