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

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

Issue 2769703006: Reporting: Plumb into UrlRequest{HttpJob,Context}. (Closed)
Patch Set: Fix unittest failure. Created 3 years, 8 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 | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_context_storage.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_request_context.h" 5 #include "net/url_request/url_request_context.h"
6 6
7 #include <inttypes.h> 7 #include <inttypes.h>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/debug/alias.h" 10 #include "base/debug/alias.h"
(...skipping 29 matching lines...) Expand all
40 cookie_store_(nullptr), 40 cookie_store_(nullptr),
41 transport_security_state_(nullptr), 41 transport_security_state_(nullptr),
42 cert_transparency_verifier_(nullptr), 42 cert_transparency_verifier_(nullptr),
43 ct_policy_enforcer_(nullptr), 43 ct_policy_enforcer_(nullptr),
44 http_transaction_factory_(nullptr), 44 http_transaction_factory_(nullptr),
45 job_factory_(nullptr), 45 job_factory_(nullptr),
46 throttler_manager_(nullptr), 46 throttler_manager_(nullptr),
47 backoff_manager_(nullptr), 47 backoff_manager_(nullptr),
48 sdch_manager_(nullptr), 48 sdch_manager_(nullptr),
49 network_quality_estimator_(nullptr), 49 network_quality_estimator_(nullptr),
50 reporting_service_(nullptr),
50 url_requests_(new std::set<const URLRequest*>), 51 url_requests_(new std::set<const URLRequest*>),
51 enable_brotli_(false), 52 enable_brotli_(false),
52 check_cleartext_permitted_(false), 53 check_cleartext_permitted_(false),
53 name_(nullptr) { 54 name_(nullptr) {
54 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( 55 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
55 this, "URLRequestContext", base::ThreadTaskRunnerHandle::Get()); 56 this, "URLRequestContext", base::ThreadTaskRunnerHandle::Get());
56 } 57 }
57 58
58 URLRequestContext::~URLRequestContext() { 59 URLRequestContext::~URLRequestContext() {
59 AssertNoURLRequests(); 60 AssertNoURLRequests();
(...skipping 16 matching lines...) Expand all
76 set_transport_security_state(other->transport_security_state_); 77 set_transport_security_state(other->transport_security_state_);
77 set_cert_transparency_verifier(other->cert_transparency_verifier_); 78 set_cert_transparency_verifier(other->cert_transparency_verifier_);
78 set_ct_policy_enforcer(other->ct_policy_enforcer_); 79 set_ct_policy_enforcer(other->ct_policy_enforcer_);
79 set_http_transaction_factory(other->http_transaction_factory_); 80 set_http_transaction_factory(other->http_transaction_factory_);
80 set_job_factory(other->job_factory_); 81 set_job_factory(other->job_factory_);
81 set_throttler_manager(other->throttler_manager_); 82 set_throttler_manager(other->throttler_manager_);
82 set_backoff_manager(other->backoff_manager_); 83 set_backoff_manager(other->backoff_manager_);
83 set_sdch_manager(other->sdch_manager_); 84 set_sdch_manager(other->sdch_manager_);
84 set_http_user_agent_settings(other->http_user_agent_settings_); 85 set_http_user_agent_settings(other->http_user_agent_settings_);
85 set_network_quality_estimator(other->network_quality_estimator_); 86 set_network_quality_estimator(other->network_quality_estimator_);
87 set_reporting_service(other->reporting_service_);
86 set_enable_brotli(other->enable_brotli_); 88 set_enable_brotli(other->enable_brotli_);
87 set_check_cleartext_permitted(other->check_cleartext_permitted_); 89 set_check_cleartext_permitted(other->check_cleartext_permitted_);
88 } 90 }
89 91
90 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams( 92 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams(
91 ) const { 93 ) const {
92 HttpTransactionFactory* transaction_factory = http_transaction_factory(); 94 HttpTransactionFactory* transaction_factory = http_transaction_factory();
93 if (!transaction_factory) 95 if (!transaction_factory)
94 return nullptr; 96 return nullptr;
95 HttpNetworkSession* network_session = transaction_factory->GetSession(); 97 HttpNetworkSession* network_session = transaction_factory->GetSession();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 HttpCache* http_cache = transaction_factory->GetCache(); 163 HttpCache* http_cache = transaction_factory->GetCache();
162 if (http_cache) 164 if (http_cache)
163 http_cache->DumpMemoryStats(pmd, dump->absolute_name()); 165 http_cache->DumpMemoryStats(pmd, dump->absolute_name());
164 } 166 }
165 if (sdch_manager_) 167 if (sdch_manager_)
166 sdch_manager_->DumpMemoryStats(pmd, dump_name); 168 sdch_manager_->DumpMemoryStats(pmd, dump_name);
167 return true; 169 return true;
168 } 170 }
169 171
170 } // namespace net 172 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_context_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698