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/browser/profiles/off_the_record_profile_impl.h" | 5 #include "chrome/browser/profiles/off_the_record_profile_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 } | 278 } |
279 | 279 |
280 net::URLRequestContextGetter* | 280 net::URLRequestContextGetter* |
281 OffTheRecordProfileImpl::GetMediaRequestContextForRenderProcess( | 281 OffTheRecordProfileImpl::GetMediaRequestContextForRenderProcess( |
282 int renderer_child_id) { | 282 int renderer_child_id) { |
283 // In OTR mode, media request context is the same as the original one. | 283 // In OTR mode, media request context is the same as the original one. |
284 return GetRequestContextForRenderProcess(renderer_child_id); | 284 return GetRequestContextForRenderProcess(renderer_child_id); |
285 } | 285 } |
286 | 286 |
287 net::URLRequestContextGetter* | 287 net::URLRequestContextGetter* |
| 288 OffTheRecordProfileImpl::GetMediaRequestContextForStoragePartition( |
| 289 const std::string& partition_id) { |
| 290 return GetRequestContextForIsolatedApp(partition_id); |
| 291 } |
| 292 |
| 293 net::URLRequestContextGetter* |
288 OffTheRecordProfileImpl::GetRequestContextForExtensions() { | 294 OffTheRecordProfileImpl::GetRequestContextForExtensions() { |
289 return io_data_.GetExtensionsRequestContextGetter(); | 295 return io_data_.GetExtensionsRequestContextGetter(); |
290 } | 296 } |
291 | 297 |
292 net::URLRequestContextGetter* | 298 net::URLRequestContextGetter* |
293 OffTheRecordProfileImpl::GetRequestContextForIsolatedApp( | 299 OffTheRecordProfileImpl::GetRequestContextForIsolatedApp( |
294 const std::string& app_id) { | 300 const std::string& app_id) { |
295 return io_data_.GetIsolatedAppRequestContextGetter(app_id); | 301 return io_data_.GetIsolatedAppRequestContextGetter(app_id); |
296 } | 302 } |
297 | 303 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 if (!profile) | 476 if (!profile) |
471 profile = new OffTheRecordProfileImpl(this); | 477 profile = new OffTheRecordProfileImpl(this); |
472 profile->Init(); | 478 profile->Init(); |
473 return profile; | 479 return profile; |
474 } | 480 } |
475 | 481 |
476 base::Callback<ChromeURLDataManagerBackend*(void)> | 482 base::Callback<ChromeURLDataManagerBackend*(void)> |
477 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 483 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
478 return io_data_.GetChromeURLDataManagerBackendGetter(); | 484 return io_data_.GetChromeURLDataManagerBackendGetter(); |
479 } | 485 } |
OLD | NEW |