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: net/ocsp/nss_ocsp.cc

Issue 1003953008: Remove prerender cookie store, part 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prerender-revert-cookie-store-3
Patch Set: Created 5 years, 9 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/ocsp/nss_ocsp.h" 5 #include "net/ocsp/nss_ocsp.h"
6 6
7 #include <certt.h> 7 #include <certt.h>
8 #include <certdb.h> 8 #include <certdb.h>
9 #include <ocsp.h> 9 #include <ocsp.h>
10 #include <nspr.h> 10 #include <nspr.h>
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 if (url_request_context == NULL) 398 if (url_request_context == NULL)
399 return; 399 return;
400 400
401 { 401 {
402 base::AutoLock autolock(lock_); 402 base::AutoLock autolock(lock_);
403 DCHECK(!io_loop_); 403 DCHECK(!io_loop_);
404 io_loop_ = base::MessageLoopForIO::current(); 404 io_loop_ = base::MessageLoopForIO::current();
405 g_ocsp_io_loop.Get().AddRequest(this); 405 g_ocsp_io_loop.Get().AddRequest(this);
406 } 406 }
407 407
408 request_ = url_request_context->CreateRequest( 408 request_ = url_request_context->CreateRequest(url_, DEFAULT_PRIORITY, this);
409 url_, DEFAULT_PRIORITY, this, NULL);
410 // To meet the privacy requirements of incognito mode. 409 // To meet the privacy requirements of incognito mode.
411 request_->SetLoadFlags(LOAD_DISABLE_CACHE | LOAD_DO_NOT_SAVE_COOKIES | 410 request_->SetLoadFlags(LOAD_DISABLE_CACHE | LOAD_DO_NOT_SAVE_COOKIES |
412 LOAD_DO_NOT_SEND_COOKIES); 411 LOAD_DO_NOT_SEND_COOKIES);
413 412
414 if (http_request_method_ == "POST") { 413 if (http_request_method_ == "POST") {
415 DCHECK(!upload_content_.empty()); 414 DCHECK(!upload_content_.empty());
416 DCHECK(!upload_content_type_.empty()); 415 DCHECK(!upload_content_type_.empty());
417 416
418 request_->set_method("POST"); 417 request_->set_method("POST");
419 extra_request_headers_.SetHeader( 418 extra_request_headers_.SetHeader(
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 void SetURLRequestContextForNSSHttpIO(URLRequestContext* request_context) { 977 void SetURLRequestContextForNSSHttpIO(URLRequestContext* request_context) {
979 pthread_mutex_lock(&g_request_context_lock); 978 pthread_mutex_lock(&g_request_context_lock);
980 if (request_context) { 979 if (request_context) {
981 DCHECK(!g_request_context); 980 DCHECK(!g_request_context);
982 } 981 }
983 g_request_context = request_context; 982 g_request_context = request_context;
984 pthread_mutex_unlock(&g_request_context_lock); 983 pthread_mutex_unlock(&g_request_context_lock);
985 } 984 }
986 985
987 } // namespace net 986 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698