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_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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 } | 624 } |
625 | 625 |
626 void TestingProfile::ResetRequestContext() { | 626 void TestingProfile::ResetRequestContext() { |
627 // Any objects holding live URLFetchers should be deleted before the request | 627 // Any objects holding live URLFetchers should be deleted before the request |
628 // context is shut down. | 628 // context is shut down. |
629 TemplateURLFetcherFactory::ShutdownForProfile(this); | 629 TemplateURLFetcherFactory::ShutdownForProfile(this); |
630 | 630 |
631 request_context_ = NULL; | 631 request_context_ = NULL; |
632 } | 632 } |
633 | 633 |
634 net::URLRequestContextGetter* TestingProfile::GetRequestContextForMedia() { | 634 net::URLRequestContextGetter* TestingProfile::GetMediaRequestContext() { |
635 return NULL; | 635 return NULL; |
636 } | 636 } |
637 | 637 |
| 638 net::URLRequestContextGetter* |
| 639 TestingProfile::GetMediaRequestContextForRenderProcess( |
| 640 int renderer_child_id) { |
| 641 return NULL; |
| 642 } |
| 643 |
638 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { | 644 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { |
639 if (!extensions_request_context_) | 645 if (!extensions_request_context_) |
640 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); | 646 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); |
641 return extensions_request_context_.get(); | 647 return extensions_request_context_.get(); |
642 } | 648 } |
643 | 649 |
644 net::SSLConfigService* TestingProfile::GetSSLConfigService() { | 650 net::SSLConfigService* TestingProfile::GetSSLConfigService() { |
645 return NULL; | 651 return NULL; |
646 } | 652 } |
647 | 653 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 build_called_ = true; | 811 build_called_ = true; |
806 return scoped_ptr<TestingProfile>(new TestingProfile( | 812 return scoped_ptr<TestingProfile>(new TestingProfile( |
807 path_, | 813 path_, |
808 delegate_, | 814 delegate_, |
809 extension_policy_, | 815 extension_policy_, |
810 pref_service_.Pass(), | 816 pref_service_.Pass(), |
811 user_cloud_policy_manager_.Pass())); | 817 user_cloud_policy_manager_.Pass())); |
812 } | 818 } |
813 | 819 |
814 | 820 |
OLD | NEW |