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 "chrome/test/base/testing_browser_process.h" | 5 #include "chrome/test/base/testing_browser_process.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/time/default_clock.h" | 8 #include "base/time/default_clock.h" |
9 #include "base/time/default_tick_clock.h" | 9 #include "base/time/default_tick_clock.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 return tab_manager_.get(); | 375 return tab_manager_.get(); |
376 #else | 376 #else |
377 return nullptr; | 377 return nullptr; |
378 #endif | 378 #endif |
379 } | 379 } |
380 | 380 |
381 shell_integration::DefaultWebClientState | 381 shell_integration::DefaultWebClientState |
382 TestingBrowserProcess::CachedDefaultWebClientState() { | 382 TestingBrowserProcess::CachedDefaultWebClientState() { |
383 return shell_integration::UNKNOWN_DEFAULT; | 383 return shell_integration::UNKNOWN_DEFAULT; |
384 } | 384 } |
| 385 |
| 386 PhysicalWebDataSource* |
| 387 TestingBrowserProcess::GetPhysicalWebDataSource() { |
| 388 return nullptr; |
| 389 } |
| 390 |
385 void TestingBrowserProcess::SetSystemRequestContext( | 391 void TestingBrowserProcess::SetSystemRequestContext( |
386 net::URLRequestContextGetter* context_getter) { | 392 net::URLRequestContextGetter* context_getter) { |
387 system_request_context_ = context_getter; | 393 system_request_context_ = context_getter; |
388 } | 394 } |
389 | 395 |
390 void TestingBrowserProcess::SetNotificationUIManager( | 396 void TestingBrowserProcess::SetNotificationUIManager( |
391 std::unique_ptr<NotificationUIManager> notification_ui_manager) { | 397 std::unique_ptr<NotificationUIManager> notification_ui_manager) { |
392 notification_ui_manager_.swap(notification_ui_manager); | 398 notification_ui_manager_.swap(notification_ui_manager); |
393 } | 399 } |
394 | 400 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 453 |
448 /////////////////////////////////////////////////////////////////////////////// | 454 /////////////////////////////////////////////////////////////////////////////// |
449 | 455 |
450 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 456 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
451 TestingBrowserProcess::CreateInstance(); | 457 TestingBrowserProcess::CreateInstance(); |
452 } | 458 } |
453 | 459 |
454 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 460 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
455 TestingBrowserProcess::DeleteInstance(); | 461 TestingBrowserProcess::DeleteInstance(); |
456 } | 462 } |
OLD | NEW |