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

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

Issue 992353003: Decouple Cache Storage messaging from Service Worker/Embedded Worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 9 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/storage_partition_impl.cc ('k') | content/common/content_message_generator.h » ('j') | 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/files/file_enumerator.h" 9 #include "base/files/file_enumerator.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 base::Bind(&ChromeAppCacheService::InitializeOnIOThread, 578 base::Bind(&ChromeAppCacheService::InitializeOnIOThread,
579 partition->GetAppCacheService(), 579 partition->GetAppCacheService(),
580 in_memory ? base::FilePath() : 580 in_memory ? base::FilePath() :
581 partition->GetPath().Append(kAppCacheDirname), 581 partition->GetPath().Append(kAppCacheDirname),
582 browser_context_->GetResourceContext(), 582 browser_context_->GetResourceContext(),
583 make_scoped_refptr(partition->GetURLRequestContext()), 583 make_scoped_refptr(partition->GetURLRequestContext()),
584 make_scoped_refptr( 584 make_scoped_refptr(
585 browser_context_->GetSpecialStoragePolicy()))); 585 browser_context_->GetSpecialStoragePolicy())));
586 586
587 BrowserThread::PostTask( 587 BrowserThread::PostTask(
588 BrowserThread::IO, 588 BrowserThread::IO, FROM_HERE,
589 FROM_HERE, 589 base::Bind(&CacheStorageContextImpl::SetBlobParametersForCache,
590 base::Bind(&ServiceWorkerContextWrapper::SetBlobParametersForCache, 590 partition->GetCacheStorageContext(),
591 partition->GetServiceWorkerContext(),
592 make_scoped_refptr(partition->GetURLRequestContext()), 591 make_scoped_refptr(partition->GetURLRequestContext()),
593 make_scoped_refptr( 592 make_scoped_refptr(
594 ChromeBlobStorageContext::GetFor(browser_context_)))); 593 ChromeBlobStorageContext::GetFor(browser_context_))));
595 594
596 // We do not call InitializeURLRequestContext() for media contexts because, 595 // We do not call InitializeURLRequestContext() for media contexts because,
597 // other than the HTTP cache, the media contexts share the same backing 596 // other than the HTTP cache, the media contexts share the same backing
598 // objects as their associated "normal" request context. Thus, the previous 597 // objects as their associated "normal" request context. Thus, the previous
599 // call serves to initialize the media request context for this storage 598 // call serves to initialize the media request context for this storage
600 // partition as well. 599 // partition as well.
601 } 600 }
602 } 601 }
603 602
604 } // namespace content 603 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698