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

Side by Side Diff: content/browser/storage_partition_impl_map.cc

Issue 459003002: Plumbs URLRequestContext and CacheBlobStorageContext down to cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cache1
Patch Set: nits Created 6 years, 4 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
« no previous file with comments | « content/browser/service_worker/service_worker_context_wrapper.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/browser/storage_partition_impl_map.h" 5 #include "content/browser/storage_partition_impl_map.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_enumerator.h" 10 #include "base/files/file_enumerator.h"
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 BrowserThread::IO, FROM_HERE, 573 BrowserThread::IO, FROM_HERE,
574 base::Bind(&ChromeAppCacheService::InitializeOnIOThread, 574 base::Bind(&ChromeAppCacheService::InitializeOnIOThread,
575 partition->GetAppCacheService(), 575 partition->GetAppCacheService(),
576 in_memory ? base::FilePath() : 576 in_memory ? base::FilePath() :
577 partition->GetPath().Append(kAppCacheDirname), 577 partition->GetPath().Append(kAppCacheDirname),
578 browser_context_->GetResourceContext(), 578 browser_context_->GetResourceContext(),
579 make_scoped_refptr(partition->GetURLRequestContext()), 579 make_scoped_refptr(partition->GetURLRequestContext()),
580 make_scoped_refptr( 580 make_scoped_refptr(
581 browser_context_->GetSpecialStoragePolicy()))); 581 browser_context_->GetSpecialStoragePolicy())));
582 582
583 BrowserThread::PostTask(
584 BrowserThread::IO,
585 FROM_HERE,
586 base::Bind(&ServiceWorkerContextWrapper::SetBlobParametersForCache,
587 partition->GetServiceWorkerContext(),
588 make_scoped_refptr(partition->GetURLRequestContext()),
589 make_scoped_refptr(
590 ChromeBlobStorageContext::GetFor(browser_context_))));
591
583 // We do not call InitializeURLRequestContext() for media contexts because, 592 // We do not call InitializeURLRequestContext() for media contexts because,
584 // other than the HTTP cache, the media contexts share the same backing 593 // other than the HTTP cache, the media contexts share the same backing
585 // objects as their associated "normal" request context. Thus, the previous 594 // objects as their associated "normal" request context. Thus, the previous
586 // call serves to initialize the media request context for this storage 595 // call serves to initialize the media request context for this storage
587 // partition as well. 596 // partition as well.
588 } 597 }
589 } 598 }
590 599
591 } // namespace content 600 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_context_wrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698