OLD | NEW |
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 Loading... |
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 |
OLD | NEW |