| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ |
| 6 #define CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 const blink::WebPushSubscriptionOptions& options, | 44 const blink::WebPushSubscriptionOptions& options, |
| 45 blink::WebPushSubscriptionCallbacks* callbacks); | 45 blink::WebPushSubscriptionCallbacks* callbacks); |
| 46 | 46 |
| 47 void DoSubscribe( | 47 void DoSubscribe( |
| 48 blink::WebServiceWorkerRegistration* service_worker_registration, | 48 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 49 const blink::WebPushSubscriptionOptions& options, | 49 const blink::WebPushSubscriptionOptions& options, |
| 50 blink::WebPushSubscriptionCallbacks* callbacks, | 50 blink::WebPushSubscriptionCallbacks* callbacks, |
| 51 const Manifest& manifest); | 51 const Manifest& manifest); |
| 52 | 52 |
| 53 void OnSubscribeFromDocumentSuccess(int32_t request_id, | 53 void OnSubscribeFromDocumentSuccess(int32_t request_id, |
| 54 const GURL& endpoint); | 54 const GURL& endpoint, |
| 55 const std::vector<uint8_t>& curve25519dh); |
| 55 | 56 |
| 56 void OnSubscribeFromDocumentError(int32_t request_id, | 57 void OnSubscribeFromDocumentError(int32_t request_id, |
| 57 PushRegistrationStatus status); | 58 PushRegistrationStatus status); |
| 58 | 59 |
| 59 IDMap<blink::WebPushSubscriptionCallbacks, IDMapOwnPointer> | 60 IDMap<blink::WebPushSubscriptionCallbacks, IDMapOwnPointer> |
| 60 subscription_callbacks_; | 61 subscription_callbacks_; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); | 63 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace content | 66 } // namespace content |
| 66 | 67 |
| 67 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ | 68 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ |
| OLD | NEW |