| OLD | NEW | 
|---|
| 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" |  | 
| 9 |  | 
| 10 namespace blink { | 8 namespace blink { | 
| 11 | 9 | 
| 12 struct WebPushSubscriptionOptions { | 10 struct WebPushSubscriptionOptions { | 
| 13     WebPushSubscriptionOptions() | 11     WebPushSubscriptionOptions() | 
| 14         : userVisibleOnly(false) | 12         : userVisibleOnly(false) | 
| 15     { | 13     { | 
| 16     } | 14     } | 
| 17 | 15 | 
| 18     // Indicates that the subscription will only be used for push messages | 16     // Indicates that the subscription will only be used for push messages | 
| 19     // that result in UI visible to the user. | 17     // that result in UI visible to the user. | 
| 20     bool userVisibleOnly; | 18     bool userVisibleOnly; | 
| 21 |  | 
| 22     // P-256 public key, in uncompressed form, of the app server that can send |  | 
| 23     // push messages to this subscription. |  | 
| 24     WebString applicationServerKey; |  | 
| 25 }; | 19 }; | 
| 26 | 20 | 
| 27 } // namespace blink | 21 } // namespace blink | 
| 28 | 22 | 
| 29 #endif // WebPushSubscriptionOptions_h | 23 #endif // WebPushSubscriptionOptions_h | 
| OLD | NEW | 
|---|