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

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

Issue 2578583002: Provide a mechanism for the GCM driver to send message receipts to GCM.
Patch Set: Fix issue with rebase Created 3 years, 10 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
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 <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void DoRemoveInstanceIDData(const std::string& app_id); 148 void DoRemoveInstanceIDData(const std::string& app_id);
149 void DoGetInstanceIDData(const std::string& app_id); 149 void DoGetInstanceIDData(const std::string& app_id);
150 void DoGetToken(const std::string& app_id, 150 void DoGetToken(const std::string& app_id,
151 const std::string& authorized_entity, 151 const std::string& authorized_entity,
152 const std::string& scope, 152 const std::string& scope,
153 const std::map<std::string, std::string>& options); 153 const std::map<std::string, std::string>& options);
154 void DoDeleteToken(const std::string& app_id, 154 void DoDeleteToken(const std::string& app_id,
155 const std::string& authorized_entity, 155 const std::string& authorized_entity,
156 const std::string& scope); 156 const std::string& scope);
157 157
158 void DoSendMessageReceipt(
159 const MessageReceiptCallback& optional_receipt_callback,
160 GCMMessageStatus status);
161
158 // Callbacks posted from IO thread to UI thread. 162 // Callbacks posted from IO thread to UI thread.
159 void MessageReceived(const std::string& app_id, 163 void MessageReceived(const std::string& app_id,
160 const IncomingMessage& message); 164 const IncomingMessage& message,
165 const MessageReceiptCallback& optional_receipt_callback);
161 void MessagesDeleted(const std::string& app_id); 166 void MessagesDeleted(const std::string& app_id);
162 void MessageSendError(const std::string& app_id, 167 void MessageSendError(const std::string& app_id,
163 const GCMClient::SendErrorDetails& send_error_details); 168 const GCMClient::SendErrorDetails& send_error_details);
164 void SendAcknowledged(const std::string& app_id, 169 void SendAcknowledged(const std::string& app_id,
165 const std::string& message_id); 170 const std::string& message_id);
166 void GCMClientReady(const std::vector<AccountMapping>& account_mappings, 171 void GCMClientReady(const std::vector<AccountMapping>& account_mappings,
167 const base::Time& last_token_fetch_time); 172 const base::Time& last_token_fetch_time);
168 void OnConnected(const net::IPEndPoint& ip_endpoint); 173 void OnConnected(const net::IPEndPoint& ip_endpoint);
169 void OnDisconnected(); 174 void OnDisconnected();
170 void OnStoreReset(); 175 void OnStoreReset();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 241
237 // Used to pass a weak pointer to the IO worker. 242 // Used to pass a weak pointer to the IO worker.
238 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; 243 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_;
239 244
240 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); 245 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop);
241 }; 246 };
242 247
243 } // namespace gcm 248 } // namespace gcm
244 249
245 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ 250 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_driver_android.cc ('k') | components/gcm_driver/gcm_driver_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698