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

Side by Side Diff: net/url_request/url_request_job.cc

Issue 1422573008: Plumbing SSLPrivateKey (//net) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing un-needed forward decl. Created 5 years, 1 month 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/url_request/url_request_job.h ('k') | net/url_request/url_request_unittest.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 (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/url_request/url_request_job.h" 5 #include "net/url_request/url_request_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // case the derived class should implement this! 230 // case the derived class should implement this!
231 NOTREACHED(); 231 NOTREACHED();
232 } 232 }
233 233
234 void URLRequestJob::CancelAuth() { 234 void URLRequestJob::CancelAuth() {
235 // This will only be called if NeedsAuth() returns true, in which 235 // This will only be called if NeedsAuth() returns true, in which
236 // case the derived class should implement this! 236 // case the derived class should implement this!
237 NOTREACHED(); 237 NOTREACHED();
238 } 238 }
239 239
240 void URLRequestJob::ContinueWithCertificate( 240 void URLRequestJob::ContinueWithCertificate(X509Certificate* client_cert,
241 X509Certificate* client_cert) { 241 SSLPrivateKey* client_private_key) {
242 // The derived class should implement this! 242 // The derived class should implement this!
243 NOTREACHED(); 243 NOTREACHED();
244 } 244 }
245 245
246 void URLRequestJob::ContinueDespiteLastError() { 246 void URLRequestJob::ContinueDespiteLastError() {
247 // Implementations should know how to recover from errors they generate. 247 // Implementations should know how to recover from errors they generate.
248 // If this code was reached, we are trying to recover from an error that 248 // If this code was reached, we are trying to recover from an error that
249 // we don't know how to recover from. 249 // we don't know how to recover from.
250 NOTREACHED(); 250 NOTREACHED();
251 } 251 }
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 int64_t total_sent_bytes = GetTotalSentBytes(); 970 int64_t total_sent_bytes = GetTotalSentBytes();
971 DCHECK_GE(total_sent_bytes, last_notified_total_sent_bytes_); 971 DCHECK_GE(total_sent_bytes, last_notified_total_sent_bytes_);
972 if (total_sent_bytes > last_notified_total_sent_bytes_) { 972 if (total_sent_bytes > last_notified_total_sent_bytes_) {
973 network_delegate_->NotifyNetworkBytesSent( 973 network_delegate_->NotifyNetworkBytesSent(
974 request_, total_sent_bytes - last_notified_total_sent_bytes_); 974 request_, total_sent_bytes - last_notified_total_sent_bytes_);
975 } 975 }
976 last_notified_total_sent_bytes_ = total_sent_bytes; 976 last_notified_total_sent_bytes_ = total_sent_bytes;
977 } 977 }
978 978
979 } // namespace net 979 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_job.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698