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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2217753004: Move the call to ResourceDispatcherHostCreated from the ctor of the ResourceDispatcherHostImpl clas… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « content/browser/browser_main_loop.cc ('k') | no next file » | 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/browser/loader/resource_dispatcher_host_impl.h" 7 #include "content/browser/loader/resource_dispatcher_host_impl.h"
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 kMaxOutstandingRequestsCostPerProcess), 510 kMaxOutstandingRequestsCostPerProcess),
511 filter_(nullptr), 511 filter_(nullptr),
512 delegate_(nullptr), 512 delegate_(nullptr),
513 loader_delegate_(nullptr), 513 loader_delegate_(nullptr),
514 allow_cross_origin_auth_prompt_(false), 514 allow_cross_origin_auth_prompt_(false),
515 cert_store_for_testing_(nullptr) { 515 cert_store_for_testing_(nullptr) {
516 DCHECK_CURRENTLY_ON(BrowserThread::UI); 516 DCHECK_CURRENTLY_ON(BrowserThread::UI);
517 DCHECK(!g_resource_dispatcher_host); 517 DCHECK(!g_resource_dispatcher_host);
518 g_resource_dispatcher_host = this; 518 g_resource_dispatcher_host = this;
519 519
520 GetContentClient()->browser()->ResourceDispatcherHostCreated();
521
522 ANNOTATE_BENIGN_RACE( 520 ANNOTATE_BENIGN_RACE(
523 &last_user_gesture_time_, 521 &last_user_gesture_time_,
524 "We don't care about the precise value, see http://crbug.com/92889"); 522 "We don't care about the precise value, see http://crbug.com/92889");
525 523
526 BrowserThread::PostTask(BrowserThread::IO, 524 BrowserThread::PostTask(BrowserThread::IO,
527 FROM_HERE, 525 FROM_HERE,
528 base::Bind(&ResourceDispatcherHostImpl::OnInit, 526 base::Bind(&ResourceDispatcherHostImpl::OnInit,
529 base::Unretained(this))); 527 base::Unretained(this)));
530 528
531 update_load_states_timer_.reset(new base::RepeatingTimer()); 529 update_load_states_timer_.reset(new base::RepeatingTimer());
(...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id); 2599 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id);
2602 response->head.security_info = SerializeSecurityInfo(ssl); 2600 response->head.security_info = SerializeSecurityInfo(ssl);
2603 } 2601 }
2604 2602
2605 CertStore* ResourceDispatcherHostImpl::GetCertStore() { 2603 CertStore* ResourceDispatcherHostImpl::GetCertStore() {
2606 return cert_store_for_testing_ ? cert_store_for_testing_ 2604 return cert_store_for_testing_ ? cert_store_for_testing_
2607 : CertStore::GetInstance(); 2605 : CertStore::GetInstance();
2608 } 2606 }
2609 2607
2610 } // namespace content 2608 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698