Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Side by Side Diff: content/browser/url_loader_factory_getter.cc

Issue 2902653002: Get main frame and subframe AppCache loads to work. (Closed)
Patch Set: Fix check Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/loader/navigation_url_loader_network_service.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
jam 2017/05/24 15:29:02 nit: i think the convention is that 0 is ID of bro
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
OLDNEW
« no previous file with comments | « content/browser/loader/navigation_url_loader_network_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698