| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 int render_view_id, | 232 int render_view_id, |
| 233 bool worker) { | 233 bool worker) { |
| 234 } | 234 } |
| 235 | 235 |
| 236 void MockContentBrowserClient::CancelDesktopNotification( | 236 void MockContentBrowserClient::CancelDesktopNotification( |
| 237 int render_process_id, | 237 int render_process_id, |
| 238 int render_view_id, | 238 int render_view_id, |
| 239 int notification_id) { | 239 int notification_id) { |
| 240 } | 240 } |
| 241 | 241 |
| 242 bool MockContentBrowserClient::CanCreateWindow( | 242 content::ContentBrowserClient::CanCreateWindowResult |
| 243 MockContentBrowserClient::CanCreateWindow( |
| 243 const GURL& opener_url, | 244 const GURL& opener_url, |
| 244 const GURL& source_origin, | 245 const GURL& source_origin, |
| 245 WindowContainerType container_type, | 246 WindowContainerType container_type, |
| 246 ResourceContext* context, | 247 ResourceContext* context, |
| 247 int render_process_id) { | 248 int render_process_id) { |
| 248 return true; | 249 return CAN_CREATE_WINDOW; |
| 249 } | 250 } |
| 250 | 251 |
| 251 std::string MockContentBrowserClient::GetWorkerProcessTitle( | 252 std::string MockContentBrowserClient::GetWorkerProcessTitle( |
| 252 const GURL& url, ResourceContext* context) { | 253 const GURL& url, ResourceContext* context) { |
| 253 return std::string(); | 254 return std::string(); |
| 254 } | 255 } |
| 255 | 256 |
| 256 void MockContentBrowserClient::ResourceDispatcherHostCreated() { | 257 void MockContentBrowserClient::ResourceDispatcherHostCreated() { |
| 257 } | 258 } |
| 258 | 259 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 #endif | 332 #endif |
| 332 | 333 |
| 333 #if defined(USE_NSS) | 334 #if defined(USE_NSS) |
| 334 crypto::CryptoModuleBlockingPasswordDelegate* | 335 crypto::CryptoModuleBlockingPasswordDelegate* |
| 335 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 336 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 336 return NULL; | 337 return NULL; |
| 337 } | 338 } |
| 338 #endif | 339 #endif |
| 339 | 340 |
| 340 } // namespace content | 341 } // namespace content |
| OLD | NEW |