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

Unified 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: Rebase and address review comments. Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/push_messaging_status.h
diff --git a/content/public/common/push_messaging_status.h b/content/public/common/push_messaging_status.h
new file mode 100644
index 0000000000000000000000000000000000000000..1bb3a6e3445c87945cf3b97dad3200dcfa8ad48b
--- /dev/null
+++ b/content/public/common/push_messaging_status.h
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_PUSH_MESSAGING_STATUS_H_
+#define CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_PUSH_MESSAGING_STATUS_H_
Peter Beverloo 2014/04/02 14:46:05 nit: double PUSH_MESSAGING doesn't reflect the act
Michael van Ouwerkerk 2014/04/02 15:49:30 Done.
+
+namespace content {
+
+enum PushMessagingStatus {
Peter Beverloo 2014/04/02 14:46:05 nit: maybe add a comment that this is based on the
Michael van Ouwerkerk 2014/04/02 15:49:30 Done.
+ // Operation succeeded.
+ PUSH_MESSAGING_STATUS_OK,
+ // Invalid parameter.
+ PUSH_MESSAGING_STATUS_INVALID_PARAMETER,
+ // Profile not signed in.
+ // TODO(mvanouwerkerk) Delete when this value is no longer used.
+ PUSH_MESSAGING_STATUS_NOT_SIGNED_IN,
+ // Previous asynchronous operation is still pending. Certain operations, like
+ // register, are only allowed one at a time.
+ PUSH_MESSAGING_STATUS_OPERATION_PENDING,
+ // Network socket error.
+ PUSH_MESSAGING_STATUS_NETWORK_ERROR,
+ // Problem at the server.
+ PUSH_MESSAGING_STATUS_SERVER_ERROR,
+ // Exceeded the specified TTL during message sending.
+ PUSH_MESSAGING_STATUS_TTL_EXCEEDED,
+ // Other errors.
+ PUSH_MESSAGING_STATUS_UNKNOWN_ERROR,
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_PUSH_MESSAGING_PUSH_MESSAGING_STATUS_H_

Powered by Google App Engine
This is Rietveld 408576698