Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch unittest fix from michael Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698