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 "chrome/test/base/testing_profile.h" | 5 #include "chrome/test/base/testing_profile.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 TestingProfile::GetExtensionSpecialStoragePolicy() { | 453 TestingProfile::GetExtensionSpecialStoragePolicy() { |
454 if (!extension_special_storage_policy_.get()) | 454 if (!extension_special_storage_policy_.get()) |
455 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(NULL); | 455 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(NULL); |
456 return extension_special_storage_policy_.get(); | 456 return extension_special_storage_policy_.get(); |
457 } | 457 } |
458 | 458 |
459 SSLHostState* TestingProfile::GetSSLHostState() { | 459 SSLHostState* TestingProfile::GetSSLHostState() { |
460 return NULL; | 460 return NULL; |
461 } | 461 } |
462 | 462 |
463 net::TransportSecurityState* TestingProfile::GetTransportSecurityState() { | |
464 return NULL; | |
465 } | |
466 | |
467 FaviconService* TestingProfile::GetFaviconService(ServiceAccessType access) { | 463 FaviconService* TestingProfile::GetFaviconService(ServiceAccessType access) { |
468 return favicon_service_.get(); | 464 return favicon_service_.get(); |
469 } | 465 } |
470 | 466 |
471 HistoryService* TestingProfile::GetHistoryService(ServiceAccessType access) { | 467 HistoryService* TestingProfile::GetHistoryService(ServiceAccessType access) { |
472 return history_service_.get(); | 468 return history_service_.get(); |
473 } | 469 } |
474 | 470 |
475 HistoryService* TestingProfile::GetHistoryServiceWithoutCreating() { | 471 HistoryService* TestingProfile::GetHistoryServiceWithoutCreating() { |
476 return history_service_.get(); | 472 return history_service_.get(); |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 ChromeDownloadManagerDelegate* delegate) { | 783 ChromeDownloadManagerDelegate* delegate) { |
788 // Specially marked so errors from use will occur near to the site | 784 // Specially marked so errors from use will occur near to the site |
789 // of the error. | 785 // of the error. |
790 NOTIMPLEMENTED(); | 786 NOTIMPLEMENTED(); |
791 } | 787 } |
792 | 788 |
793 chrome_browser_net::Predictor* TestingProfile::GetNetworkPredictor() { | 789 chrome_browser_net::Predictor* TestingProfile::GetNetworkPredictor() { |
794 return NULL; | 790 return NULL; |
795 } | 791 } |
796 | 792 |
| 793 void TestingProfile::DeleteTransportSecurityStateSince(const base::Time& time) { |
| 794 NOTIMPLEMENTED(); |
| 795 } |
| 796 |
797 PrefService* TestingProfile::GetOffTheRecordPrefs() { | 797 PrefService* TestingProfile::GetOffTheRecordPrefs() { |
798 return NULL; | 798 return NULL; |
799 } | 799 } |
800 | 800 |
801 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 801 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
802 return GetExtensionSpecialStoragePolicy(); | 802 return GetExtensionSpecialStoragePolicy(); |
803 } | 803 } |
804 | 804 |
805 void TestingProfile::DestroyWebDataService() { | 805 void TestingProfile::DestroyWebDataService() { |
806 if (!web_data_service_.get()) | 806 if (!web_data_service_.get()) |
807 return; | 807 return; |
808 | 808 |
809 web_data_service_->Shutdown(); | 809 web_data_service_->Shutdown(); |
810 } | 810 } |
OLD | NEW |