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 "content/browser/storage_partition_impl_map.h" | 5 #include "content/browser/storage_partition_impl_map.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 base::Bind(&CacheStorageContextImpl::SetBlobParametersForCache, | 595 base::Bind(&CacheStorageContextImpl::SetBlobParametersForCache, |
596 partition->GetCacheStorageContext(), | 596 partition->GetCacheStorageContext(), |
597 base::RetainedRef(partition->GetURLRequestContext()), | 597 base::RetainedRef(partition->GetURLRequestContext()), |
598 base::RetainedRef( | 598 base::RetainedRef( |
599 ChromeBlobStorageContext::GetFor(browser_context_)))); | 599 ChromeBlobStorageContext::GetFor(browser_context_)))); |
600 | 600 |
601 BrowserThread::PostTask( | 601 BrowserThread::PostTask( |
602 BrowserThread::IO, FROM_HERE, | 602 BrowserThread::IO, FROM_HERE, |
603 base::Bind(&ServiceWorkerContextWrapper::InitializeResourceContext, | 603 base::Bind(&ServiceWorkerContextWrapper::InitializeResourceContext, |
604 partition->GetServiceWorkerContext(), | 604 partition->GetServiceWorkerContext(), |
605 browser_context_->GetResourceContext(), | 605 browser_context_->GetResourceContext())); |
606 base::RetainedRef(partition->GetURLRequestContext()))); | |
607 | 606 |
608 // We do not call InitializeURLRequestContext() for media contexts because, | 607 // We do not call InitializeURLRequestContext() for media contexts because, |
609 // other than the HTTP cache, the media contexts share the same backing | 608 // other than the HTTP cache, the media contexts share the same backing |
610 // objects as their associated "normal" request context. Thus, the previous | 609 // objects as their associated "normal" request context. Thus, the previous |
611 // call serves to initialize the media request context for this storage | 610 // call serves to initialize the media request context for this storage |
612 // partition as well. | 611 // partition as well. |
613 } | 612 } |
614 } | 613 } |
615 | 614 |
616 } // namespace content | 615 } // namespace content |
OLD | NEW |