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/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/load_flags.h" | 18 #include "net/base/load_flags.h" |
19 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
20 #include "net/http/http_network_session.h" | 20 #include "net/http/http_network_session.h" |
21 #include "net/http/http_request_headers.h" | 21 #include "net/http/http_request_headers.h" |
22 #include "net/log/net_log.h" | 22 #include "net/log/net_log.h" |
23 #include "net/proxy/proxy_info.h" | 23 #include "net/proxy/proxy_info.h" |
24 #include "net/socket/client_socket_handle.h" | 24 #include "net/socket/client_socket_handle.h" |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 | 578 |
579 void ConnectionFactoryImpl::RebuildNetworkSessionAuthCache() { | 579 void ConnectionFactoryImpl::RebuildNetworkSessionAuthCache() { |
580 if (!http_network_session_ || !http_network_session_->http_auth_cache()) | 580 if (!http_network_session_ || !http_network_session_->http_auth_cache()) |
581 return; | 581 return; |
582 | 582 |
583 gcm_network_session_->http_auth_cache()->UpdateAllFrom( | 583 gcm_network_session_->http_auth_cache()->UpdateAllFrom( |
584 *http_network_session_->http_auth_cache()); | 584 *http_network_session_->http_auth_cache()); |
585 } | 585 } |
586 | 586 |
587 } // namespace gcm | 587 } // namespace gcm |
OLD | NEW |