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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 mojom::kNetworkServiceName, &network_service); | 518 mojom::kNetworkServiceName, &network_service); |
519 mojom::NetworkContextParamsPtr context_params = | 519 mojom::NetworkContextParamsPtr context_params = |
520 mojom::NetworkContextParams::New(); | 520 mojom::NetworkContextParams::New(); |
521 // TODO: fill this | 521 // TODO: fill this |
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 partition->url_loader_factory_getter_->Initialize(partition.get()); |
529 partition->network_context_->CreateURLLoaderFactory( | |
530 MakeRequest(&network_factory), 0); | |
531 partition->url_loader_factory_getter_->Initialize( | |
532 std::move(network_factory)); | |
533 } | 529 } |
534 | 530 |
535 return partition; | 531 return partition; |
536 } | 532 } |
537 | 533 |
538 base::FilePath StoragePartitionImpl::GetPath() { | 534 base::FilePath StoragePartitionImpl::GetPath() { |
539 return partition_path_; | 535 return partition_path_; |
540 } | 536 } |
541 | 537 |
542 net::URLRequestContextGetter* StoragePartitionImpl::GetURLRequestContext() { | 538 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; | 955 media_url_request_context_ = media_url_request_context; |
960 } | 956 } |
961 | 957 |
962 void StoragePartitionImpl::GetQuotaSettings( | 958 void StoragePartitionImpl::GetQuotaSettings( |
963 const storage::OptionalQuotaSettingsCallback& callback) { | 959 const storage::OptionalQuotaSettingsCallback& callback) { |
964 GetContentClient()->browser()->GetQuotaSettings(browser_context_, this, | 960 GetContentClient()->browser()->GetQuotaSettings(browser_context_, this, |
965 callback); | 961 callback); |
966 } | 962 } |
967 | 963 |
968 } // namespace content | 964 } // namespace content |
OLD | NEW |