| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const GCMClient::OutgoingMessage& message); | 122 const GCMClient::OutgoingMessage& message); |
| 123 | 123 |
| 124 // Callbacks posted from IO thread to UI thread. | 124 // Callbacks posted from IO thread to UI thread. |
| 125 void MessageReceived(const std::string& app_id, | 125 void MessageReceived(const std::string& app_id, |
| 126 const GCMClient::IncomingMessage& message); | 126 const GCMClient::IncomingMessage& message); |
| 127 void MessagesDeleted(const std::string& app_id); | 127 void MessagesDeleted(const std::string& app_id); |
| 128 void MessageSendError(const std::string& app_id, | 128 void MessageSendError(const std::string& app_id, |
| 129 const GCMClient::SendErrorDetails& send_error_details); | 129 const GCMClient::SendErrorDetails& send_error_details); |
| 130 void SendAcknowledged(const std::string& app_id, | 130 void SendAcknowledged(const std::string& app_id, |
| 131 const std::string& message_id); | 131 const std::string& message_id); |
| 132 void GCMClientReady(); | 132 void GCMClientReady( |
| 133 const std::vector<AccountMapping>& account_mappings); |
| 133 void OnConnected(const net::IPEndPoint& ip_endpoint); | 134 void OnConnected(const net::IPEndPoint& ip_endpoint); |
| 134 void OnDisconnected(); | 135 void OnDisconnected(); |
| 135 | 136 |
| 136 void GetGCMStatisticsFinished(const GCMClient::GCMStatistics& stats); | 137 void GetGCMStatisticsFinished(const GCMClient::GCMStatistics& stats); |
| 137 | 138 |
| 138 scoped_ptr<GCMChannelStatusSyncer> gcm_channel_status_syncer_; | 139 scoped_ptr<GCMChannelStatusSyncer> gcm_channel_status_syncer_; |
| 139 | 140 |
| 140 // Flag to indicate whether the user is signed in to a GAIA account. | 141 // Flag to indicate whether the user is signed in to a GAIA account. |
| 141 // TODO(jianli): To be removed when sign-in enforcement is dropped. | 142 // TODO(jianli): To be removed when sign-in enforcement is dropped. |
| 142 bool signed_in_; | 143 bool signed_in_; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 171 | 172 |
| 172 // Used to pass a weak pointer to the IO worker. | 173 // Used to pass a weak pointer to the IO worker. |
| 173 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; | 174 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; |
| 174 | 175 |
| 175 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); | 176 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 } // namespace gcm | 179 } // namespace gcm |
| 179 | 180 |
| 180 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ | 181 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
| OLD | NEW |