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

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

Issue 2558553002: GCM: Add Android UMA, and UMA for deleted/collapsed messages (Closed)
Patch Set: UMA_HISTOGRAM_BOOLEAN("GCM.DataMessageReceived", true); Created 4 years 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_CLIENT_IMPL_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 void HandleIncomingMessage(const gcm::MCSMessage& message); 293 void HandleIncomingMessage(const gcm::MCSMessage& message);
294 294
295 // Fires OnMessageReceived event on the delegate of this class, based on the 295 // Fires OnMessageReceived event on the delegate of this class, based on the
296 // details in |data_message_stanza| and |message_data|. 296 // details in |data_message_stanza| and |message_data|.
297 void HandleIncomingDataMessage( 297 void HandleIncomingDataMessage(
298 const std::string& app_id, 298 const std::string& app_id,
299 bool was_subtype, 299 bool was_subtype,
300 const mcs_proto::DataMessageStanza& data_message_stanza, 300 const mcs_proto::DataMessageStanza& data_message_stanza,
301 MessageData& message_data); 301 MessageData& message_data);
302 302
303 // Fires OnMessagesDeleted event on the delegate of this class, based on the
304 // details in |data_message_stanza| and |message_data|.
305 void HandleIncomingDeletedMessages(
306 const std::string& app_id,
307 const mcs_proto::DataMessageStanza& data_message_stanza,
308 MessageData& message_data);
309
303 // Fires OnMessageSendError event on the delegate of this class, based on the 310 // Fires OnMessageSendError event on the delegate of this class, based on the
304 // details in |data_message_stanza| and |message_data|. 311 // details in |data_message_stanza| and |message_data|.
305 void HandleIncomingSendError( 312 void HandleIncomingSendError(
306 const std::string& app_id, 313 const std::string& app_id,
307 const mcs_proto::DataMessageStanza& data_message_stanza, 314 const mcs_proto::DataMessageStanza& data_message_stanza,
308 MessageData& message_data); 315 MessageData& message_data);
309 316
310 // Is there any standalone app being registered for GCM? 317 // Is there any standalone app being registered for GCM?
311 bool HasStandaloneRegisteredApp() const; 318 bool HasStandaloneRegisteredApp() const;
312 319
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 401
395 // Factory for creating references in callbacks. 402 // Factory for creating references in callbacks.
396 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; 403 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_;
397 404
398 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); 405 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl);
399 }; 406 };
400 407
401 } // namespace gcm 408 } // namespace gcm
402 409
403 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ 410 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/services/gcm/GcmUma.java ('k') | components/gcm_driver/gcm_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698