| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/url_loader_factory_getter.h" | 5 #include "content/browser/url_loader_factory_getter.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "content/browser/appcache/appcache_url_loader_factory.h" | 8 #include "content/browser/appcache/appcache_url_loader_factory.h" |
| 9 #include "content/browser/storage_partition_impl.h" | 9 #include "content/browser/storage_partition_impl.h" |
| 10 #include "content/common/network_service.mojom.h" | 10 #include "content/common/network_service.mojom.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 } | 48 } |
| 49 | 49 |
| 50 URLLoaderFactoryGetter::~URLLoaderFactoryGetter() {} | 50 URLLoaderFactoryGetter::~URLLoaderFactoryGetter() {} |
| 51 | 51 |
| 52 void URLLoaderFactoryGetter::InitializeOnIOThread( | 52 void URLLoaderFactoryGetter::InitializeOnIOThread( |
| 53 mojom::URLLoaderFactoryPtrInfo network_factory, | 53 mojom::URLLoaderFactoryPtrInfo network_factory, |
| 54 scoped_refptr<ChromeAppCacheService> appcache_service) { | 54 scoped_refptr<ChromeAppCacheService> appcache_service) { |
| 55 network_factory_.Bind(std::move(network_factory)); | 55 network_factory_.Bind(std::move(network_factory)); |
| 56 | 56 |
| 57 AppCacheURLLoaderFactory::CreateURLLoaderFactory( | 57 AppCacheURLLoaderFactory::CreateURLLoaderFactory( |
| 58 mojo::MakeRequest(&appcache_factory_), appcache_service.get(), this); | 58 mojo::MakeRequest(&appcache_factory_), appcache_service.get(), this, -1); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void URLLoaderFactoryGetter::SetTestNetworkFactoryOnIOThread( | 61 void URLLoaderFactoryGetter::SetTestNetworkFactoryOnIOThread( |
| 62 mojom::URLLoaderFactoryPtrInfo test_factory) { | 62 mojom::URLLoaderFactoryPtrInfo test_factory) { |
| 63 test_factory_.Bind(std::move(test_factory)); | 63 test_factory_.Bind(std::move(test_factory)); |
| 64 } | 64 } |
| 65 | 65 |
| 66 } // namespace content | 66 } // namespace content |
| OLD | NEW |