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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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_SUBSCRIPTION_OPTIONS_H_
6 #define CONTENT_PUBLIC_COMMON_PUSH_SUBSCRIPTION_OPTIONS_H_
7
8 #include <string>
9
10 #include "content/common/content_export.h"
11
12 namespace content {
13
14 // Structure to hold the options provided from the web app developer as
15 // part of asking for a new push subscription.
16 struct CONTENT_EXPORT PushSubscriptionOptions {
17 PushSubscriptionOptions() {}
18 ~PushSubscriptionOptions() {}
19
20 // Whether or not the app developer agrees to provide user visible
21 // notifications whenever they receive a push message.
22 bool user_visible_only = false;
23
24 // Whether the protocol for communicating with the GCM is using
25 // an ID for the app service or is using the app service's public key.
26 bool using_public_key = false;
27
28 // The unique identifier of the application service which is used to
29 // verify the push message before delivery. This could either be an ID
30 // assigned by the developer console or the app server's public key.
31 std::string sender_info;
32 };
33
34 } // namespace content
35
36 #endif // CONTENT_PUBLIC_COMMON_CONTENT_PUSH_SUBSCRIPTION_OPTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698