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

Side by Side Diff: net/base/network_delegate.cc

Issue 2891133003: Reporting: Wire ReportingDelegate into ChromeNetworkDelegate (Closed)
Patch Set: 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 | « net/base/network_delegate.h ('k') | net/base/network_delegate_impl.h » ('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 (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 "net/base/network_delegate.h" 5 #include "net/base/network_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/profiler/scoped_tracker.h" 8 #include "base/profiler/scoped_tracker.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "net/base/load_flags.h" 10 #include "net/base/load_flags.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader( 179 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader(
180 const URLRequest& request, 180 const URLRequest& request,
181 const GURL& target_url, 181 const GURL& target_url,
182 const GURL& referrer_url) const { 182 const GURL& referrer_url) const {
183 DCHECK(CalledOnValidThread()); 183 DCHECK(CalledOnValidThread());
184 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( 184 return OnCancelURLRequestWithPolicyViolatingReferrerHeader(
185 request, target_url, referrer_url); 185 request, target_url, referrer_url);
186 } 186 }
187 187
188 bool NetworkDelegate::CanQueueReportingReport(const url::Origin& origin) const {
189 DCHECK(CalledOnValidThread());
190 return OnCanQueueReportingReport(origin);
191 }
192
193 bool NetworkDelegate::CanSendReportingReport(const url::Origin& origin) const {
194 DCHECK(CalledOnValidThread());
195 return OnCanSendReportingReport(origin);
196 }
197
198 bool NetworkDelegate::CanSetReportingClient(const url::Origin& origin,
199 const GURL& endpoint) const {
200 DCHECK(CalledOnValidThread());
201 return OnCanSetReportingClient(origin, endpoint);
202 }
203
204 bool NetworkDelegate::CanUseReportingClient(const url::Origin& origin,
205 const GURL& endpoint) const {
206 DCHECK(CalledOnValidThread());
207 return OnCanUseReportingClient(origin, endpoint);
208 }
209
188 void NetworkDelegate::OnResponseStarted(URLRequest* request, int net_error) { 210 void NetworkDelegate::OnResponseStarted(URLRequest* request, int net_error) {
189 OnResponseStarted(request); 211 OnResponseStarted(request);
190 } 212 }
191 213
192 // Deprecated 214 // Deprecated
193 void NetworkDelegate::OnResponseStarted(URLRequest* request) { 215 void NetworkDelegate::OnResponseStarted(URLRequest* request) {
194 NOTREACHED(); 216 NOTREACHED();
195 } 217 }
196 218
197 void NetworkDelegate::OnCompleted(URLRequest* request, 219 void NetworkDelegate::OnCompleted(URLRequest* request,
198 bool started, 220 bool started,
199 int net_error) { 221 int net_error) {
200 OnCompleted(request, started); 222 OnCompleted(request, started);
201 } 223 }
202 224
203 // Deprecated. 225 // Deprecated.
204 void NetworkDelegate::OnCompleted(URLRequest* request, bool started) { 226 void NetworkDelegate::OnCompleted(URLRequest* request, bool started) {
205 NOTREACHED(); 227 NOTREACHED();
206 } 228 }
207 229
208 } // namespace net 230 } // namespace net
OLDNEW
« no previous file with comments | « net/base/network_delegate.h ('k') | net/base/network_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698