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

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: Adding new file I missed previously. Created 3 years, 11 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 2014 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 namespace gcm {
9
10 // Enumeration to be used for describing the status of a GCM message.
11 enum GCMMessageStatus {
Peter Beverloo 2017/01/13 01:46:12 Can this be an "enum class"? That would allow us t
harkness 2017/01/19 13:20:42 Done.
12 // 0 reserved for unresolved.
13 GCM_UNRESOLVED = 0,
14 // 1 reserved for success.
15 GCM_SUCCESS = 1,
16
17 // 2 - 99 reserved for the GCM communication error types.
18 GCM_INVALID_SUBTYPE = 2,
19 GCM_ENCRYPTION_FAILURE = 3,
20 GCM_UNKNOWN_MESSAGE_TYPE = 4,
21 GCM_NO_APP_HANDLER = 5,
22 GCM_INVALID_MESSAGE_TAG = 6,
23 };
24
25 } // namespace gcm
26
27 #endif // COMPONENTS_GCM_DRIVER_GCM_MESSAGE_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698