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

Side by Side Diff: net/url_request/url_fetcher_core.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/ssl/threaded_ssl_private_key.cc ('k') | net/url_request/url_request.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/url_request/url_fetcher_core.h" 5 #include "net/url_request/url_fetcher_core.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 ReadResponse(); 430 ReadResponse();
431 } 431 }
432 432
433 void URLFetcherCore::OnCertificateRequested( 433 void URLFetcherCore::OnCertificateRequested(
434 URLRequest* request, 434 URLRequest* request,
435 SSLCertRequestInfo* cert_request_info) { 435 SSLCertRequestInfo* cert_request_info) {
436 DCHECK_EQ(request, request_.get()); 436 DCHECK_EQ(request, request_.get());
437 DCHECK(network_task_runner_->BelongsToCurrentThread()); 437 DCHECK(network_task_runner_->BelongsToCurrentThread());
438 438
439 if (g_ignore_certificate_requests) { 439 if (g_ignore_certificate_requests) {
440 request->ContinueWithCertificate(NULL); 440 request->ContinueWithCertificate(nullptr, nullptr);
441 } else { 441 } else {
442 request->Cancel(); 442 request->Cancel();
443 } 443 }
444 } 444 }
445 445
446 void URLFetcherCore::OnReadCompleted(URLRequest* request, 446 void URLFetcherCore::OnReadCompleted(URLRequest* request,
447 int bytes_read) { 447 int bytes_read) {
448 DCHECK(request == request_); 448 DCHECK(request == request_);
449 DCHECK(network_task_runner_->BelongsToCurrentThread()); 449 DCHECK(network_task_runner_->BelongsToCurrentThread());
450 450
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 } 949 }
950 950
951 void URLFetcherCore::AssertHasNoUploadData() const { 951 void URLFetcherCore::AssertHasNoUploadData() const {
952 DCHECK(!upload_content_set_); 952 DCHECK(!upload_content_set_);
953 DCHECK(upload_content_.empty()); 953 DCHECK(upload_content_.empty());
954 DCHECK(upload_file_path_.empty()); 954 DCHECK(upload_file_path_.empty());
955 DCHECK(upload_stream_factory_.is_null()); 955 DCHECK(upload_stream_factory_.is_null());
956 } 956 }
957 957
958 } // namespace net 958 } // namespace net
OLDNEW
« no previous file with comments | « net/ssl/threaded_ssl_private_key.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698