| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 } | 272 } |
| 273 | 273 |
| 274 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { | 274 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { |
| 275 return io_data_.GetMainRequestContextGetter(); | 275 return io_data_.GetMainRequestContextGetter(); |
| 276 } | 276 } |
| 277 | 277 |
| 278 net::URLRequestContextGetter* | 278 net::URLRequestContextGetter* |
| 279 OffTheRecordProfileImpl::GetRequestContextForRenderProcess( | 279 OffTheRecordProfileImpl::GetRequestContextForRenderProcess( |
| 280 int renderer_child_id) { | 280 int renderer_child_id) { |
| 281 if (GetExtensionService()) { | 281 if (GetExtensionService()) { |
| 282 const Extension* installed_app = GetExtensionService()-> | 282 const extensions::Extension* installed_app = GetExtensionService()-> |
| 283 GetInstalledAppForRenderer(renderer_child_id); | 283 GetInstalledAppForRenderer(renderer_child_id); |
| 284 if (installed_app != NULL && installed_app->is_storage_isolated()) { | 284 if (installed_app != NULL && installed_app->is_storage_isolated()) { |
| 285 return GetRequestContextForIsolatedApp(installed_app->id()); | 285 return GetRequestContextForIsolatedApp(installed_app->id()); |
| 286 } | 286 } |
| 287 } | 287 } |
| 288 return GetRequestContext(); | 288 return GetRequestContext(); |
| 289 } | 289 } |
| 290 | 290 |
| 291 net::URLRequestContextGetter* | 291 net::URLRequestContextGetter* |
| 292 OffTheRecordProfileImpl::GetRequestContextForMedia() { | 292 OffTheRecordProfileImpl::GetRequestContextForMedia() { |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 if (!profile) | 484 if (!profile) |
| 485 profile = new OffTheRecordProfileImpl(this); | 485 profile = new OffTheRecordProfileImpl(this); |
| 486 profile->Init(); | 486 profile->Init(); |
| 487 return profile; | 487 return profile; |
| 488 } | 488 } |
| 489 | 489 |
| 490 base::Callback<ChromeURLDataManagerBackend*(void)> | 490 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 491 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 491 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
| 492 return io_data_.GetChromeURLDataManagerBackendGetter(); | 492 return io_data_.GetChromeURLDataManagerBackendGetter(); |
| 493 } | 493 } |
| OLD | NEW |