| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 int render_process_id, | 241 int render_process_id, |
| 242 int render_view_id, | 242 int render_view_id, |
| 243 int notification_id) { | 243 int notification_id) { |
| 244 } | 244 } |
| 245 | 245 |
| 246 bool MockContentBrowserClient::CanCreateWindow( | 246 bool MockContentBrowserClient::CanCreateWindow( |
| 247 const GURL& opener_url, | 247 const GURL& opener_url, |
| 248 const GURL& source_origin, | 248 const GURL& source_origin, |
| 249 WindowContainerType container_type, | 249 WindowContainerType container_type, |
| 250 ResourceContext* context, | 250 ResourceContext* context, |
| 251 int render_process_id) { | 251 int render_process_id, |
| 252 bool* no_javascript_access) { |
| 253 *no_javascript_access = false; |
| 252 return true; | 254 return true; |
| 253 } | 255 } |
| 254 | 256 |
| 255 std::string MockContentBrowserClient::GetWorkerProcessTitle( | 257 std::string MockContentBrowserClient::GetWorkerProcessTitle( |
| 256 const GURL& url, ResourceContext* context) { | 258 const GURL& url, ResourceContext* context) { |
| 257 return std::string(); | 259 return std::string(); |
| 258 } | 260 } |
| 259 | 261 |
| 260 void MockContentBrowserClient::ResourceDispatcherHostCreated() { | 262 void MockContentBrowserClient::ResourceDispatcherHostCreated() { |
| 261 } | 263 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 #endif | 337 #endif |
| 336 | 338 |
| 337 #if defined(USE_NSS) | 339 #if defined(USE_NSS) |
| 338 crypto::CryptoModuleBlockingPasswordDelegate* | 340 crypto::CryptoModuleBlockingPasswordDelegate* |
| 339 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 341 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 340 return NULL; | 342 return NULL; |
| 341 } | 343 } |
| 342 #endif | 344 #endif |
| 343 | 345 |
| 344 } // namespace content | 346 } // namespace content |
| OLD | NEW |