| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 } | 105 } |
| 106 | 106 |
| 107 net::URLRequestContextGetter* | 107 net::URLRequestContextGetter* |
| 108 TestBrowserContext::GetRequestContextForRenderProcess(int renderer_child_id) { | 108 TestBrowserContext::GetRequestContextForRenderProcess(int renderer_child_id) { |
| 109 return NULL; | 109 return NULL; |
| 110 } | 110 } |
| 111 | 111 |
| 112 | 112 |
| 113 net::URLRequestContextGetter* | 113 net::URLRequestContextGetter* |
| 114 TestBrowserContext::GetRequestContextForStoragePartition( | 114 TestBrowserContext::GetRequestContextForStoragePartition( |
| 115 const std::string& partition_id) { | 115 const FilePath& partition_path, |
| 116 bool in_memory) { |
| 116 return NULL; | 117 return NULL; |
| 117 } | 118 } |
| 118 | 119 |
| 119 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() { | 120 net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() { |
| 120 return NULL; | 121 return NULL; |
| 121 } | 122 } |
| 122 | 123 |
| 123 net::URLRequestContextGetter* | 124 net::URLRequestContextGetter* |
| 124 TestBrowserContext::GetMediaRequestContextForRenderProcess( | 125 TestBrowserContext::GetMediaRequestContextForRenderProcess( |
| 125 int renderer_child_id) { | 126 int renderer_child_id) { |
| 126 return NULL; | 127 return NULL; |
| 127 } | 128 } |
| 128 | 129 |
| 129 net::URLRequestContextGetter* | 130 net::URLRequestContextGetter* |
| 130 TestBrowserContext::GetMediaRequestContextForStoragePartition( | 131 TestBrowserContext::GetMediaRequestContextForStoragePartition( |
| 131 const std::string& partition_id) { | 132 const FilePath& partition_path, |
| 133 bool in_memory) { |
| 132 return NULL; | 134 return NULL; |
| 133 } | 135 } |
| 134 | 136 |
| 135 ResourceContext* TestBrowserContext::GetResourceContext() { | 137 ResourceContext* TestBrowserContext::GetResourceContext() { |
| 136 if (!resource_context_.get()) | 138 if (!resource_context_.get()) |
| 137 resource_context_.reset(new MockResourceContext()); | 139 resource_context_.reset(new MockResourceContext()); |
| 138 return resource_context_.get(); | 140 return resource_context_.get(); |
| 139 } | 141 } |
| 140 | 142 |
| 141 GeolocationPermissionContext* | 143 GeolocationPermissionContext* |
| 142 TestBrowserContext::GetGeolocationPermissionContext() { | 144 TestBrowserContext::GetGeolocationPermissionContext() { |
| 143 return NULL; | 145 return NULL; |
| 144 } | 146 } |
| 145 | 147 |
| 146 SpeechRecognitionPreferences* | 148 SpeechRecognitionPreferences* |
| 147 TestBrowserContext::GetSpeechRecognitionPreferences() { | 149 TestBrowserContext::GetSpeechRecognitionPreferences() { |
| 148 return NULL; | 150 return NULL; |
| 149 } | 151 } |
| 150 | 152 |
| 151 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { | 153 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { |
| 152 return special_storage_policy_.get(); | 154 return special_storage_policy_.get(); |
| 153 } | 155 } |
| 154 | 156 |
| 155 } // namespace content | 157 } // namespace content |
| OLD | NEW |