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

Side by Side Diff: third_party/WebKit/public/platform/modules/push_messaging/WebPushSubscriptionOptions.h

Issue 2133673002: Push API: Implement and ship PushSubscription.options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add MODULES_EXPORT Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/public/platform/modules/push_messaging/WebPushSubscription.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebPushSubscriptionOptions_h 5 #ifndef WebPushSubscriptionOptions_h
6 #define WebPushSubscriptionOptions_h 6 #define WebPushSubscriptionOptions_h
7 7
8 #include "public/platform/WebString.h" 8 #include "public/platform/WebString.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 struct WebPushSubscriptionOptions { 12 struct WebPushSubscriptionOptions {
13 WebPushSubscriptionOptions() 13 WebPushSubscriptionOptions()
14 : userVisibleOnly(false) 14 : userVisibleOnly(false)
15 { 15 {
16 } 16 }
17 17
18 // Indicates that the subscription will only be used for push messages 18 // Indicates that the subscription will only be used for push messages
19 // that result in UI visible to the user. 19 // that result in UI visible to the user.
20 bool userVisibleOnly; 20 bool userVisibleOnly;
21 21
22 // P-256 public key, in uncompressed form, of the app server that can send 22 // P-256 public key, in uncompressed form, of the app server that can send
23 // push messages to this subscription. 23 // push messages to this subscription.
24 // TODO(johnme): Make this a WebVector<uint8_t>.
24 WebString applicationServerKey; 25 WebString applicationServerKey;
25 }; 26 };
26 27
27 } // namespace blink 28 } // namespace blink
28 29
29 #endif // WebPushSubscriptionOptions_h 30 #endif // WebPushSubscriptionOptions_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/modules/push_messaging/WebPushSubscription.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698