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

Side by Side Diff: ios/net/request_tracker.mm

Issue 1043243003: Upstream most of ios/web/net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove accidentally-added clients Created 5 years, 8 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 | « ios/net/request_tracker.h ('k') | ios/web/browser_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "ios/net/request_tracker.h" 5 #include "ios/net/request_tracker.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "ios/net/clients/crn_forwarding_network_client.h" 8 #import "ios/net/clients/crn_forwarding_network_client.h"
9 #import "ios/net/clients/crn_forwarding_network_client_factory.h" 9 #import "ios/net/clients/crn_forwarding_network_client_factory.h"
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 base::ThreadChecker thread_checker_; 59 base::ThreadChecker thread_checker_;
60 60
61 static GlobalNetworkClientFactories* g_global_network_client_factories; 61 static GlobalNetworkClientFactories* g_global_network_client_factories;
62 }; 62 };
63 63
64 GlobalNetworkClientFactories* 64 GlobalNetworkClientFactories*
65 GlobalNetworkClientFactories::g_global_network_client_factories = nullptr; 65 GlobalNetworkClientFactories::g_global_network_client_factories = nullptr;
66 66
67 } // namespace 67 } // namespace
68 68
69 RequestTracker::RequestTrackerFactory::~RequestTrackerFactory() {
70 }
71
69 // static 72 // static
70 void RequestTracker::SetRequestTrackerFactory(RequestTrackerFactory* factory) { 73 void RequestTracker::SetRequestTrackerFactory(RequestTrackerFactory* factory) {
71 g_request_tracker_factory = factory; 74 g_request_tracker_factory = factory;
72 } 75 }
73 76
74 // static 77 // static
75 bool RequestTracker::GetRequestTracker(NSURLRequest* request, 78 bool RequestTracker::GetRequestTracker(NSURLRequest* request,
76 base::WeakPtr<RequestTracker>* tracker) { 79 base::WeakPtr<RequestTracker>* tracker) {
77 DCHECK(request); 80 DCHECK(request);
78 DCHECK(tracker); 81 DCHECK(tracker);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 DCHECK(thread_checker_.CalledOnValidThread()); 214 DCHECK(thread_checker_.CalledOnValidThread());
212 return cache_mode_; 215 return cache_mode_;
213 } 216 }
214 217
215 void RequestTracker::SetCacheMode(RequestTracker::CacheMode mode) { 218 void RequestTracker::SetCacheMode(RequestTracker::CacheMode mode) {
216 DCHECK(thread_checker_.CalledOnValidThread()); 219 DCHECK(thread_checker_.CalledOnValidThread());
217 cache_mode_ = mode; 220 cache_mode_ = mode;
218 } 221 }
219 222
220 } // namespace net 223 } // namespace net
OLDNEW
« no previous file with comments | « ios/net/request_tracker.h ('k') | ios/web/browser_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698