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

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

Issue 2578583002: Provide a mechanism for the GCM driver to send message receipts to GCM.
Patch Set: Formatting 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_GCM_DRIVER_GCM_MESSAGE_STATUS_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_MESSAGE_STATUS_H_
7
8 #include "base/callback.h"
9
10 namespace gcm {
11
12 // Enumeration to be used for describing the status of a GCM message.
13 enum class GCMMessageStatus {
14 // 0 reserved for unresolved.
15 GCM_UNRESOLVED = 0,
Peter Beverloo 2017/02/15 15:17:15 Should we DCHECK that this value will never be sen
harkness 2017/02/22 17:19:32 Good idea. Done.
16 // 1 reserved for success.
17 GCM_SUCCESS = 1,
18
19 // 2 - 99 reserved for the GCM communication error types.
20 GCM_INVALID_SUBTYPE = 2,
21 GCM_INVALID_SENDER_ID = 3,
22 GCM_NO_REGISTRATION = 4,
23 GCM_DECRYPTION_FAILURE = 5,
24 GCM_UNKNOWN_MESSAGE_TYPE = 6,
25 GCM_INVALID_APP = 7,
26 };
27
28 using MessageReceiptCallback = base::Callback<void(GCMMessageStatus)>;
29
30 } // namespace gcm
31
32 #endif // COMPONENTS_GCM_DRIVER_GCM_MESSAGE_STATUS_H_
OLDNEW
« components/gcm_driver/gcm_driver.h ('K') | « components/gcm_driver/gcm_driver_desktop_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698