Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_CONTENT_PUSH_SUBSCRIPTION_OPTIONS_H_ | |
| 6 #define CONTENT_PUBLIC_COMMON_CONTENT_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 ContentPushSubscriptionOptions { | |
|
Peter Beverloo
2016/02/17 16:15:35
nit: no need to prefix with "Content", it's namesp
harkness
2016/02/18 10:45:14
Done.
| |
| 17 ContentPushSubscriptionOptions() {} | |
| 18 ~ContentPushSubscriptionOptions() {} | |
| 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; | |
|
Peter Beverloo
2016/02/17 16:15:35
Please make sure that we assign default values to
harkness
2016/02/18 10:45:15
Done.
| |
| 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; | |
|
Peter Beverloo
2016/02/17 16:15:35
Why is it significant for the browser process to k
harkness
2016/02/18 10:45:14
I was thinking that we would do verification also
Peter Beverloo
2016/02/18 11:39:43
Yes, but why is this flag significant for that? Th
| |
| 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_ | |
| OLD | NEW |