| 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_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_ | |
| OLD | NEW |