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

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: Fix module export build issue Created 4 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 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 // The unique identifier of the application service which is used to
25 // verify the push message before delivery. This could either be an ID
26 // assigned by the developer console or the app server's public key.
27 std::string sender_info;
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_PUBLIC_COMMON_CONTENT_PUSH_SUBSCRIPTION_OPTIONS_H_
OLDNEW
« no previous file with comments | « content/public/browser/push_messaging_service.h ('k') | content/renderer/push_messaging/push_messaging_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698