| 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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 net::URLRequestContextGetter* TestingProfile::GetRequestContextForMedia() { | 602 net::URLRequestContextGetter* TestingProfile::GetRequestContextForMedia() { |
| 603 return NULL; | 603 return NULL; |
| 604 } | 604 } |
| 605 | 605 |
| 606 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { | 606 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { |
| 607 if (!extensions_request_context_) | 607 if (!extensions_request_context_) |
| 608 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); | 608 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); |
| 609 return extensions_request_context_.get(); | 609 return extensions_request_context_.get(); |
| 610 } | 610 } |
| 611 | 611 |
| 612 net::SpdyConfigService* TestingProfile::GetSpdyConfigService() { |
| 613 return NULL; |
| 614 } |
| 615 |
| 612 net::SSLConfigService* TestingProfile::GetSSLConfigService() { | 616 net::SSLConfigService* TestingProfile::GetSSLConfigService() { |
| 613 return NULL; | 617 return NULL; |
| 614 } | 618 } |
| 615 | 619 |
| 616 UserStyleSheetWatcher* TestingProfile::GetUserStyleSheetWatcher() { | 620 UserStyleSheetWatcher* TestingProfile::GetUserStyleSheetWatcher() { |
| 617 return NULL; | 621 return NULL; |
| 618 } | 622 } |
| 619 | 623 |
| 620 net::URLRequestContextGetter* TestingProfile::GetRequestContextForIsolatedApp( | 624 net::URLRequestContextGetter* TestingProfile::GetRequestContextForIsolatedApp( |
| 621 const std::string& app_id) { | 625 const std::string& app_id) { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 797 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
| 794 return GetExtensionSpecialStoragePolicy(); | 798 return GetExtensionSpecialStoragePolicy(); |
| 795 } | 799 } |
| 796 | 800 |
| 797 void TestingProfile::DestroyWebDataService() { | 801 void TestingProfile::DestroyWebDataService() { |
| 798 if (!web_data_service_.get()) | 802 if (!web_data_service_.get()) |
| 799 return; | 803 return; |
| 800 | 804 |
| 801 web_data_service_->Shutdown(); | 805 web_data_service_->Shutdown(); |
| 802 } | 806 } |
| OLD | NEW |