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

Side by Side Diff: content/public/common/push_messaging_status.h

Issue 219653002: Push API: send and receive IPC messages for registration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_PUSH_MESSAGING_STATUS_H_
6 #define CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_PUSH_MESSAGING_STATUS_H_
7
8 namespace content {
9
10 // Generic push messaging operation statuses.
Peter Beverloo 2014/04/01 14:53:18 nit: This comment doesn't add a lot of value.
Michael van Ouwerkerk 2014/04/02 14:25:15 Done.
11 enum PushMessagingStatus {
12 // Operation succeeded.
13 PUSH_MESSAGING_STATUS_OK,
14 // Invalid parameter.
15 PUSH_MESSAGING_STATUS_INVALID_PARAMETER,
16 // Profile not signed in.
Peter Beverloo 2014/04/01 14:53:18 Can you add a TODO for removing this value once we
Michael van Ouwerkerk 2014/04/02 14:25:15 Done.
17 PUSH_MESSAGING_STATUS_NOT_SIGNED_IN,
18 // Previous asynchronous operation is still pending. Certain operations, like
19 // register, are only allowed one at a time.
20 PUSH_MESSAGING_STATUS_OPERATION_PENDING,
21 // Network socket error.
22 PUSH_MESSAGING_STATUS_NETWORK_ERROR,
23 // Problem at the server.
24 PUSH_MESSAGING_STATUS_SERVER_ERROR,
25 // Exceeded the specified TTL during message sending.
26 PUSH_MESSAGING_STATUS_TTL_EXCEEDED,
27 // Other errors.
28 PUSH_MESSAGING_STATUS_UNKNOWN_ERROR,
29 };
30
31 const char* PushMessagingStatusToString(PushMessagingStatus status);
Peter Beverloo 2014/04/01 14:53:18 Do you expect this will be used outside of push_me
Michael van Ouwerkerk 2014/04/02 14:25:15 Done.
32
33 } // namespace content
34
35 #endif // CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_PUSH_MESSAGING_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698