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