| 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/public/test/test_browser_context.h" | 5 #include "content/public/test/test_browser_context.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "content/public/test/mock_resource_context.h" | 8 #include "content/public/test/mock_resource_context.h" |
| 9 #include "net/url_request/url_request_context.h" | 9 #include "net/url_request/url_request_context.h" |
| 10 #include "net/url_request/url_request_context_getter.h" | 10 #include "net/url_request/url_request_context_getter.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() { | 119 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() { |
| 120 return NULL; | 120 return NULL; |
| 121 } | 121 } |
| 122 | 122 |
| 123 net::URLRequestContextGetter* | 123 net::URLRequestContextGetter* |
| 124 TestBrowserContext::GetMediaRequestContextForRenderProcess( | 124 TestBrowserContext::GetMediaRequestContextForRenderProcess( |
| 125 int renderer_child_id) { | 125 int renderer_child_id) { |
| 126 return NULL; | 126 return NULL; |
| 127 } | 127 } |
| 128 | 128 |
| 129 net::URLRequestContextGetter* |
| 130 TestBrowserContext::GetMediaRequestContextForStoragePartition( |
| 131 const std::string& partition_id) { |
| 132 return NULL; |
| 133 } |
| 134 |
| 129 ResourceContext* TestBrowserContext::GetResourceContext() { | 135 ResourceContext* TestBrowserContext::GetResourceContext() { |
| 130 if (!resource_context_.get()) | 136 if (!resource_context_.get()) |
| 131 resource_context_.reset(new MockResourceContext()); | 137 resource_context_.reset(new MockResourceContext()); |
| 132 return resource_context_.get(); | 138 return resource_context_.get(); |
| 133 } | 139 } |
| 134 | 140 |
| 135 GeolocationPermissionContext* | 141 GeolocationPermissionContext* |
| 136 TestBrowserContext::GetGeolocationPermissionContext() { | 142 TestBrowserContext::GetGeolocationPermissionContext() { |
| 137 return NULL; | 143 return NULL; |
| 138 } | 144 } |
| 139 | 145 |
| 140 SpeechRecognitionPreferences* | 146 SpeechRecognitionPreferences* |
| 141 TestBrowserContext::GetSpeechRecognitionPreferences() { | 147 TestBrowserContext::GetSpeechRecognitionPreferences() { |
| 142 return NULL; | 148 return NULL; |
| 143 } | 149 } |
| 144 | 150 |
| 145 bool TestBrowserContext::DidLastSessionExitCleanly() { | 151 bool TestBrowserContext::DidLastSessionExitCleanly() { |
| 146 return true; | 152 return true; |
| 147 } | 153 } |
| 148 | 154 |
| 149 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { | 155 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { |
| 150 return special_storage_policy_.get(); | 156 return special_storage_policy_.get(); |
| 151 } | 157 } |
| 152 | 158 |
| 153 } // namespace content | 159 } // namespace content |
| OLD | NEW |