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

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: 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
« no previous file with comments | « components/gcm_driver/gcm_driver_desktop_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
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_HANDLER = 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
« no previous file with comments | « 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