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

Side by Side Diff: google_apis/gcm/engine/connection_factory_impl.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "google_apis/gcm/engine/connection_factory_impl.h" 5 #include "google_apis/gcm/engine/connection_factory_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/metrics/sparse_histogram.h" 12 #include "base/metrics/sparse_histogram.h"
13 #include "base/profiler/scoped_tracker.h" 13 #include "base/profiler/scoped_tracker.h"
14 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "google_apis/gcm/engine/connection_handler_impl.h" 15 #include "google_apis/gcm/engine/connection_handler_impl.h"
16 #include "google_apis/gcm/monitoring/gcm_stats_recorder.h" 16 #include "google_apis/gcm/monitoring/gcm_stats_recorder.h"
17 #include "google_apis/gcm/protocol/mcs.pb.h" 17 #include "google_apis/gcm/protocol/mcs.pb.h"
18 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
19 #include "net/http/http_network_session.h" 19 #include "net/http/http_network_session.h"
20 #include "net/http/http_request_headers.h" 20 #include "net/http/http_request_headers.h"
21 #include "net/log/net_log.h"
22 #include "net/log/net_log_source_type.h" 21 #include "net/log/net_log_source_type.h"
23 #include "net/proxy/proxy_info.h" 22 #include "net/proxy/proxy_info.h"
24 #include "net/socket/client_socket_handle.h" 23 #include "net/socket/client_socket_handle.h"
25 #include "net/socket/client_socket_pool_manager.h" 24 #include "net/socket/client_socket_pool_manager.h"
26 #include "net/ssl/ssl_config_service.h" 25 #include "net/ssl/ssl_config_service.h"
27 26
28 namespace gcm { 27 namespace gcm {
29 28
30 namespace { 29 namespace {
31 30
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 573
575 void ConnectionFactoryImpl::RebuildNetworkSessionAuthCache() { 574 void ConnectionFactoryImpl::RebuildNetworkSessionAuthCache() {
576 if (!http_network_session_ || !http_network_session_->http_auth_cache()) 575 if (!http_network_session_ || !http_network_session_->http_auth_cache())
577 return; 576 return;
578 577
579 gcm_network_session_->http_auth_cache()->UpdateAllFrom( 578 gcm_network_session_->http_auth_cache()->UpdateAllFrom(
580 *http_network_session_->http_auth_cache()); 579 *http_network_session_->http_auth_cache());
581 } 580 }
582 581
583 } // namespace gcm 582 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698