| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/mock_content_browser_client.h" | 5 #include "content/browser/mock_content_browser_client.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "content/browser/webui/empty_web_ui_factory.h" | 9 #include "content/browser/webui/empty_web_ui_factory.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 void MockContentBrowserClient::WorkerProcessHostCreated( | 32 void MockContentBrowserClient::WorkerProcessHostCreated( |
| 33 WorkerProcessHost* host) { | 33 WorkerProcessHost* host) { |
| 34 } | 34 } |
| 35 | 35 |
| 36 WebUIFactory* MockContentBrowserClient::GetWebUIFactory() { | 36 WebUIFactory* MockContentBrowserClient::GetWebUIFactory() { |
| 37 // Return an empty factory so callsites don't have to check for NULL. | 37 // Return an empty factory so callsites don't have to check for NULL. |
| 38 return EmptyWebUIFactory::Get(); | 38 return EmptyWebUIFactory::Get(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 GURL MockContentBrowserClient::GetEffectiveURL(Profile* profile, | 41 GURL MockContentBrowserClient::GetEffectiveURL( |
| 42 const GURL& url) { | 42 content::BrowserContext* browser_context, const GURL& url) { |
| 43 return GURL(); | 43 return GURL(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 bool MockContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { | 46 bool MockContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { |
| 47 return false; | 47 return false; |
| 48 } | 48 } |
| 49 | 49 |
| 50 std::string MockContentBrowserClient::GetCanonicalEncodingNameByAliasName( | 50 std::string MockContentBrowserClient::GetCanonicalEncodingNameByAliasName( |
| 51 const std::string& alias_name) { | 51 const std::string& alias_name) { |
| 52 return std::string(); | 52 return std::string(); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 | 190 |
| 191 net::NetLog* MockContentBrowserClient::GetNetLog() { | 191 net::NetLog* MockContentBrowserClient::GetNetLog() { |
| 192 return NULL; | 192 return NULL; |
| 193 } | 193 } |
| 194 | 194 |
| 195 bool MockContentBrowserClient::IsFastShutdownPossible() { | 195 bool MockContentBrowserClient::IsFastShutdownPossible() { |
| 196 return true; | 196 return true; |
| 197 } | 197 } |
| 198 | 198 |
| 199 WebPreferences MockContentBrowserClient::GetWebkitPrefs(Profile* profile, | 199 WebPreferences MockContentBrowserClient::GetWebkitPrefs( |
| 200 bool is_web_ui) { | 200 content::BrowserContext* browser_context, |
| 201 bool is_web_ui) { |
| 201 return WebPreferences(); | 202 return WebPreferences(); |
| 202 } | 203 } |
| 203 | 204 |
| 204 void MockContentBrowserClient::UpdateInspectorSetting( | 205 void MockContentBrowserClient::UpdateInspectorSetting( |
| 205 RenderViewHost* rvh, const std::string& key, const std::string& value) { | 206 RenderViewHost* rvh, const std::string& key, const std::string& value) { |
| 206 } | 207 } |
| 207 | 208 |
| 208 void MockContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) { | 209 void MockContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) { |
| 209 } | 210 } |
| 210 | 211 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 237 #endif | 238 #endif |
| 238 | 239 |
| 239 #if defined(USE_NSS) | 240 #if defined(USE_NSS) |
| 240 crypto::CryptoModuleBlockingPasswordDelegate* | 241 crypto::CryptoModuleBlockingPasswordDelegate* |
| 241 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 242 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 242 return NULL; | 243 return NULL; |
| 243 } | 244 } |
| 244 #endif | 245 #endif |
| 245 | 246 |
| 246 } // namespace content | 247 } // namespace content |
| OLD | NEW |