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

Unified Diff: content/public/common/push_subscription_options.h

Issue 1701313002: Partial implementation of subscription restrictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed broken file Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/push_subscription_options.h
diff --git a/content/public/common/push_subscription_options.h b/content/public/common/push_subscription_options.h
new file mode 100644
index 0000000000000000000000000000000000000000..e6eaef10392953aafad8d8075610ab1d6015f5db
--- /dev/null
+++ b/content/public/common/push_subscription_options.h
@@ -0,0 +1,36 @@
+// Copyright 2016 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_SUBSCRIPTION_OPTIONS_H_
+#define CONTENT_PUBLIC_COMMON_PUSH_SUBSCRIPTION_OPTIONS_H_
+
+#include <string>
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+// Structure to hold the options provided from the web app developer as
+// part of asking for a new push subscription.
+struct CONTENT_EXPORT PushSubscriptionOptions {
+ PushSubscriptionOptions() {}
+ ~PushSubscriptionOptions() {}
+
+ // Whether or not the app developer agrees to provide user visible
+ // notifications whenever they receive a push message.
+ bool user_visible_only = false;
+
+ // Whether the protocol for communicating with the GCM is using
+ // an ID for the app service or is using the app service's public key.
+ bool using_public_key = false;
+
+ // The unique identifier of the application service which is used to
+ // verify the push message before delivery. This could either be an ID
+ // assigned by the developer console or the app server's public key.
+ std::string sender_info;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_CONTENT_PUSH_SUBSCRIPTION_OPTIONS_H_

Powered by Google App Engine
This is Rietveld 408576698