| 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 #include <vector> | 10 #include <vector> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 const Manifest& manifest, | 57 const Manifest& manifest, |
| 58 const ManifestDebugInfo&); | 58 const ManifestDebugInfo&); |
| 59 | 59 |
| 60 void DoSubscribe( | 60 void DoSubscribe( |
| 61 blink::WebServiceWorkerRegistration* service_worker_registration, | 61 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 62 const PushSubscriptionOptions& options, | 62 const PushSubscriptionOptions& options, |
| 63 blink::WebPushSubscriptionCallbacks* callbacks); | 63 blink::WebPushSubscriptionCallbacks* callbacks); |
| 64 | 64 |
| 65 void OnSubscribeFromDocumentSuccess(int32_t request_id, | 65 void OnSubscribeFromDocumentSuccess(int32_t request_id, |
| 66 const GURL& endpoint, | 66 const GURL& endpoint, |
| 67 const PushSubscriptionOptions& options, |
| 67 const std::vector<uint8_t>& p256dh, | 68 const std::vector<uint8_t>& p256dh, |
| 68 const std::vector<uint8_t>& auth); | 69 const std::vector<uint8_t>& auth); |
| 69 | 70 |
| 70 void OnSubscribeFromDocumentError(int32_t request_id, | 71 void OnSubscribeFromDocumentError(int32_t request_id, |
| 71 PushRegistrationStatus status); | 72 PushRegistrationStatus status); |
| 72 | 73 |
| 73 IDMap<blink::WebPushSubscriptionCallbacks, IDMapOwnPointer> | 74 IDMap<blink::WebPushSubscriptionCallbacks, IDMapOwnPointer> |
| 74 subscription_callbacks_; | 75 subscription_callbacks_; |
| 75 | 76 |
| 76 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); | 77 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace content | 80 } // namespace content |
| 80 | 81 |
| 81 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ | 82 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ |
| OLD | NEW |