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 "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 Loading... |
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 |
OLD | NEW |