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 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 void OnSubscribeFromDocumentSuccess(int32_t request_id, | 67 void OnSubscribeFromDocumentSuccess(int32_t request_id, |
68 const GURL& endpoint, | 68 const GURL& endpoint, |
69 const PushSubscriptionOptions& options, | 69 const PushSubscriptionOptions& options, |
70 const std::vector<uint8_t>& p256dh, | 70 const std::vector<uint8_t>& p256dh, |
71 const std::vector<uint8_t>& auth); | 71 const std::vector<uint8_t>& auth); |
72 | 72 |
73 void OnSubscribeFromDocumentError(int32_t request_id, | 73 void OnSubscribeFromDocumentError(int32_t request_id, |
74 PushRegistrationStatus status); | 74 PushRegistrationStatus status); |
75 | 75 |
76 IDMap<blink::WebPushSubscriptionCallbacks, IDMapOwnPointer> | 76 IDMap<std::unique_ptr<blink::WebPushSubscriptionCallbacks>> |
77 subscription_callbacks_; | 77 subscription_callbacks_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); | 79 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace content | 82 } // namespace content |
83 | 83 |
84 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ | 84 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ |
OLD | NEW |