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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 } | 259 } |
260 | 260 |
261 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { | 261 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { |
262 return io_data_.GetMainRequestContextGetter(); | 262 return io_data_.GetMainRequestContextGetter(); |
263 } | 263 } |
264 | 264 |
265 net::URLRequestContextGetter* | 265 net::URLRequestContextGetter* |
266 OffTheRecordProfileImpl::GetRequestContextForRenderProcess( | 266 OffTheRecordProfileImpl::GetRequestContextForRenderProcess( |
267 int renderer_child_id) { | 267 int renderer_child_id) { |
268 if (GetExtensionService()) { | 268 if (GetExtensionService()) { |
269 const Extension* installed_app = GetExtensionService()-> | 269 const extensions::Extension* installed_app = GetExtensionService()-> |
270 GetInstalledAppForRenderer(renderer_child_id); | 270 GetInstalledAppForRenderer(renderer_child_id); |
271 if (installed_app != NULL && installed_app->is_storage_isolated()) { | 271 if (installed_app != NULL && installed_app->is_storage_isolated()) { |
272 return GetRequestContextForIsolatedApp(installed_app->id()); | 272 return GetRequestContextForIsolatedApp(installed_app->id()); |
273 } | 273 } |
274 } | 274 } |
275 return GetRequestContext(); | 275 return GetRequestContext(); |
276 } | 276 } |
277 | 277 |
278 net::URLRequestContextGetter* | 278 net::URLRequestContextGetter* |
279 OffTheRecordProfileImpl::GetRequestContextForMedia() { | 279 OffTheRecordProfileImpl::GetRequestContextForMedia() { |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 if (!profile) | 471 if (!profile) |
472 profile = new OffTheRecordProfileImpl(this); | 472 profile = new OffTheRecordProfileImpl(this); |
473 profile->Init(); | 473 profile->Init(); |
474 return profile; | 474 return profile; |
475 } | 475 } |
476 | 476 |
477 base::Callback<ChromeURLDataManagerBackend*(void)> | 477 base::Callback<ChromeURLDataManagerBackend*(void)> |
478 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 478 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
479 return io_data_.GetChromeURLDataManagerBackendGetter(); | 479 return io_data_.GetChromeURLDataManagerBackendGetter(); |
480 } | 480 } |
OLD | NEW |