Chromium Code Reviews| 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.h" | 5 #include "content/browser/storage_partition_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 522 // context_params->cache_dir = | 522 // context_params->cache_dir = |
| 523 // context_params->cookie_path = | 523 // context_params->cookie_path = |
| 524 network_service->CreateNetworkContext( | 524 network_service->CreateNetworkContext( |
| 525 MakeRequest(&partition->network_context_), std::move(context_params)); | 525 MakeRequest(&partition->network_context_), std::move(context_params)); |
| 526 | 526 |
| 527 partition->url_loader_factory_getter_ = new URLLoaderFactoryGetter(); | 527 partition->url_loader_factory_getter_ = new URLLoaderFactoryGetter(); |
| 528 mojom::URLLoaderFactoryPtr network_factory; | 528 mojom::URLLoaderFactoryPtr network_factory; |
| 529 partition->network_context_->CreateURLLoaderFactory( | 529 partition->network_context_->CreateURLLoaderFactory( |
| 530 MakeRequest(&network_factory), 0); | 530 MakeRequest(&network_factory), 0); |
| 531 partition->url_loader_factory_getter_->Initialize( | 531 partition->url_loader_factory_getter_->Initialize( |
| 532 std::move(network_factory)); | 532 std::move(network_factory), partition->appcache_service_.get()); |
|
jam
2017/05/17 16:51:12
We're going to need a bunch of stuff out of Storag
ananta
2017/05/17 18:14:09
Done.
ananta
2017/05/17 18:14:09
Done.
| |
| 533 } | 533 } |
| 534 | 534 |
| 535 return partition; | 535 return partition; |
| 536 } | 536 } |
| 537 | 537 |
| 538 base::FilePath StoragePartitionImpl::GetPath() { | 538 base::FilePath StoragePartitionImpl::GetPath() { |
| 539 return partition_path_; | 539 return partition_path_; |
| 540 } | 540 } |
| 541 | 541 |
| 542 net::URLRequestContextGetter* StoragePartitionImpl::GetURLRequestContext() { | 542 net::URLRequestContextGetter* StoragePartitionImpl::GetURLRequestContext() { |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 959 media_url_request_context_ = media_url_request_context; | 959 media_url_request_context_ = media_url_request_context; |
| 960 } | 960 } |
| 961 | 961 |
| 962 void StoragePartitionImpl::GetQuotaSettings( | 962 void StoragePartitionImpl::GetQuotaSettings( |
| 963 const storage::OptionalQuotaSettingsCallback& callback) { | 963 const storage::OptionalQuotaSettingsCallback& callback) { |
| 964 GetContentClient()->browser()->GetQuotaSettings(browser_context_, this, | 964 GetContentClient()->browser()->GetQuotaSettings(browser_context_, this, |
| 965 callback); | 965 callback); |
| 966 } | 966 } |
| 967 | 967 |
| 968 } // namespace content | 968 } // namespace content |
| OLD | NEW |