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