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

Side by Side Diff: components/gcm_driver/gcm_driver_desktop.h

Issue 442123003: [GCM] Adding the OnSendAcknowledgement event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing code review comments. Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void DoSend(const std::string& app_id, 101 void DoSend(const std::string& app_id,
102 const std::string& receiver_id, 102 const std::string& receiver_id,
103 const GCMClient::OutgoingMessage& message); 103 const GCMClient::OutgoingMessage& message);
104 104
105 // Callbacks posted from IO thread to UI thread. 105 // Callbacks posted from IO thread to UI thread.
106 void MessageReceived(const std::string& app_id, 106 void MessageReceived(const std::string& app_id,
107 const GCMClient::IncomingMessage& message); 107 const GCMClient::IncomingMessage& message);
108 void MessagesDeleted(const std::string& app_id); 108 void MessagesDeleted(const std::string& app_id);
109 void MessageSendError(const std::string& app_id, 109 void MessageSendError(const std::string& app_id,
110 const GCMClient::SendErrorDetails& send_error_details); 110 const GCMClient::SendErrorDetails& send_error_details);
111 void SendAcknowledged(const std::string& app_id,
112 const std::string& message_id);
111 void GCMClientReady(); 113 void GCMClientReady();
112 void OnConnected(const net::IPEndPoint& ip_endpoint); 114 void OnConnected(const net::IPEndPoint& ip_endpoint);
113 void OnDisconnected(); 115 void OnDisconnected();
114 116
115 void GetGCMStatisticsFinished(const GCMClient::GCMStatistics& stats); 117 void GetGCMStatisticsFinished(const GCMClient::GCMStatistics& stats);
116 118
117 // Flag to indicate whether the user is signed in to a GAIA account. 119 // Flag to indicate whether the user is signed in to a GAIA account.
118 // TODO(jianli): To be removed when sign-in enforcement is dropped. 120 // TODO(jianli): To be removed when sign-in enforcement is dropped.
119 bool signed_in_; 121 bool signed_in_;
120 122
(...skipping 22 matching lines...) Expand all
143 145
144 // Used to pass a weak pointer to the IO worker. 146 // Used to pass a weak pointer to the IO worker.
145 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; 147 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_;
146 148
147 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); 149 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop);
148 }; 150 };
149 151
150 } // namespace gcm 152 } // namespace gcm
151 153
152 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ 154 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_client_impl_unittest.cc ('k') | components/gcm_driver/gcm_driver_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698