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

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

Issue 2249213002: [OBSOLETE] Reporting: Initial implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years 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_context.h" 5 #include "net/url_request/url_request_context.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/debug/alias.h" 8 #include "base/debug/alias.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 17 matching lines...) Expand all
28 channel_id_service_(nullptr), 28 channel_id_service_(nullptr),
29 http_auth_handler_factory_(nullptr), 29 http_auth_handler_factory_(nullptr),
30 proxy_service_(nullptr), 30 proxy_service_(nullptr),
31 network_delegate_(nullptr), 31 network_delegate_(nullptr),
32 http_server_properties_(nullptr), 32 http_server_properties_(nullptr),
33 http_user_agent_settings_(nullptr), 33 http_user_agent_settings_(nullptr),
34 cookie_store_(nullptr), 34 cookie_store_(nullptr),
35 transport_security_state_(nullptr), 35 transport_security_state_(nullptr),
36 cert_transparency_verifier_(nullptr), 36 cert_transparency_verifier_(nullptr),
37 ct_policy_enforcer_(nullptr), 37 ct_policy_enforcer_(nullptr),
38 reporting_service_(nullptr),
38 http_transaction_factory_(nullptr), 39 http_transaction_factory_(nullptr),
39 job_factory_(nullptr), 40 job_factory_(nullptr),
40 throttler_manager_(nullptr), 41 throttler_manager_(nullptr),
41 backoff_manager_(nullptr), 42 backoff_manager_(nullptr),
42 sdch_manager_(nullptr), 43 sdch_manager_(nullptr),
43 network_quality_estimator_(nullptr), 44 network_quality_estimator_(nullptr),
44 url_requests_(new std::set<const URLRequest*>), 45 url_requests_(new std::set<const URLRequest*>),
45 enable_brotli_(false), 46 enable_brotli_(false),
46 check_cleartext_permitted_(false) { 47 check_cleartext_permitted_(false) {
47 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( 48 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
(...skipping 21 matching lines...) Expand all
69 set_transport_security_state(other->transport_security_state_); 70 set_transport_security_state(other->transport_security_state_);
70 set_cert_transparency_verifier(other->cert_transparency_verifier_); 71 set_cert_transparency_verifier(other->cert_transparency_verifier_);
71 set_ct_policy_enforcer(other->ct_policy_enforcer_); 72 set_ct_policy_enforcer(other->ct_policy_enforcer_);
72 set_http_transaction_factory(other->http_transaction_factory_); 73 set_http_transaction_factory(other->http_transaction_factory_);
73 set_job_factory(other->job_factory_); 74 set_job_factory(other->job_factory_);
74 set_throttler_manager(other->throttler_manager_); 75 set_throttler_manager(other->throttler_manager_);
75 set_backoff_manager(other->backoff_manager_); 76 set_backoff_manager(other->backoff_manager_);
76 set_sdch_manager(other->sdch_manager_); 77 set_sdch_manager(other->sdch_manager_);
77 set_http_user_agent_settings(other->http_user_agent_settings_); 78 set_http_user_agent_settings(other->http_user_agent_settings_);
78 set_network_quality_estimator(other->network_quality_estimator_); 79 set_network_quality_estimator(other->network_quality_estimator_);
80 set_reporting_service(other->reporting_service_);
79 set_enable_brotli(other->enable_brotli_); 81 set_enable_brotli(other->enable_brotli_);
80 set_check_cleartext_permitted(other->check_cleartext_permitted_); 82 set_check_cleartext_permitted(other->check_cleartext_permitted_);
81 } 83 }
82 84
83 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams( 85 const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams(
84 ) const { 86 ) const {
85 HttpTransactionFactory* transaction_factory = http_transaction_factory(); 87 HttpTransactionFactory* transaction_factory = http_transaction_factory();
86 if (!transaction_factory) 88 if (!transaction_factory)
87 return nullptr; 89 return nullptr;
88 HttpNetworkSession* network_session = transaction_factory->GetSession(); 90 HttpNetworkSession* network_session = transaction_factory->GetSession();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 if (transaction_factory) { 136 if (transaction_factory) {
135 HttpNetworkSession* network_session = transaction_factory->GetSession(); 137 HttpNetworkSession* network_session = transaction_factory->GetSession();
136 if (network_session) 138 if (network_session)
137 network_session->DumpMemoryStats(pmd, dump->absolute_name()); 139 network_session->DumpMemoryStats(pmd, dump->absolute_name());
138 } 140 }
139 SSLClientSocketImpl::DumpSSLClientSessionMemoryStats(pmd); 141 SSLClientSocketImpl::DumpSSLClientSessionMemoryStats(pmd);
140 return true; 142 return true;
141 } 143 }
142 144
143 } // namespace net 145 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698