OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_handler_impl.h" | 5 #include "google_apis/gcm/engine/connection_handler_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "google/protobuf/io/coded_stream.h" | 11 #include "google/protobuf/io/coded_stream.h" |
12 #include "google/protobuf/io/zero_copy_stream_impl_lite.h" | 12 #include "google/protobuf/io/zero_copy_stream_impl_lite.h" |
13 #include "google_apis/gcm/base/mcs_util.h" | 13 #include "google_apis/gcm/base/mcs_util.h" |
14 #include "google_apis/gcm/base/socket_stream.h" | 14 #include "google_apis/gcm/base/socket_stream.h" |
15 #include "google_apis/gcm/protocol/mcs.pb.h" | 15 #include "google_apis/gcm/protocol/mcs.pb.h" |
16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
17 #include "net/socket/stream_socket.h" | 17 #include "net/socket/stream_socket.h" |
18 | 18 |
19 using namespace google::protobuf::io; | 19 using namespace google::protobuf::io; |
20 | 20 |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 message_tag_ = 0; | 491 message_tag_ = 0; |
492 message_size_ = 0; | 492 message_size_ = 0; |
493 size_packet_so_far_ = 0; | 493 size_packet_so_far_ = 0; |
494 payload_input_buffer_.clear(); | 494 payload_input_buffer_.clear(); |
495 input_stream_.reset(); | 495 input_stream_.reset(); |
496 output_stream_.reset(); | 496 output_stream_.reset(); |
497 weak_ptr_factory_.InvalidateWeakPtrs(); | 497 weak_ptr_factory_.InvalidateWeakPtrs(); |
498 } | 498 } |
499 | 499 |
500 } // namespace gcm | 500 } // namespace gcm |
OLD | NEW |