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

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

Issue 1304143010: Plumbing SSLPrivateKey Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing unused function in Android. Created 5 years, 2 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
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // case the derived class should implement this! 225 // case the derived class should implement this!
226 NOTREACHED(); 226 NOTREACHED();
227 } 227 }
228 228
229 void URLRequestJob::CancelAuth() { 229 void URLRequestJob::CancelAuth() {
230 // This will only be called if NeedsAuth() returns true, in which 230 // This will only be called if NeedsAuth() returns true, in which
231 // case the derived class should implement this! 231 // case the derived class should implement this!
232 NOTREACHED(); 232 NOTREACHED();
233 } 233 }
234 234
235 void URLRequestJob::ContinueWithCertificate( 235 void URLRequestJob::ContinueWithCertificate(X509Certificate* client_cert,
236 X509Certificate* client_cert) { 236 SSLPrivateKey* client_private_key) {
237 // The derived class should implement this! 237 // The derived class should implement this!
238 NOTREACHED(); 238 NOTREACHED();
239 } 239 }
240 240
241 void URLRequestJob::ContinueDespiteLastError() { 241 void URLRequestJob::ContinueDespiteLastError() {
242 // Implementations should know how to recover from errors they generate. 242 // Implementations should know how to recover from errors they generate.
243 // If this code was reached, we are trying to recover from an error that 243 // If this code was reached, we are trying to recover from an error that
244 // we don't know how to recover from. 244 // we don't know how to recover from.
245 NOTREACHED(); 245 NOTREACHED();
246 } 246 }
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 int64_t total_received_bytes = GetTotalReceivedBytes(); 940 int64_t total_received_bytes = GetTotalReceivedBytes();
941 DCHECK_GE(total_received_bytes, last_notified_total_received_bytes_); 941 DCHECK_GE(total_received_bytes, last_notified_total_received_bytes_);
942 if (total_received_bytes > last_notified_total_received_bytes_) { 942 if (total_received_bytes > last_notified_total_received_bytes_) {
943 network_delegate_->NotifyNetworkBytesReceived( 943 network_delegate_->NotifyNetworkBytesReceived(
944 *request_, total_received_bytes - last_notified_total_received_bytes_); 944 *request_, total_received_bytes - last_notified_total_received_bytes_);
945 } 945 }
946 last_notified_total_received_bytes_ = total_received_bytes; 946 last_notified_total_received_bytes_ = total_received_bytes;
947 } 947 }
948 948
949 } // namespace net 949 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698