| 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_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_CLIENT_H_ |
| 6 #define CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_CLIENT_H_ | 6 #define CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks, | 52 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks, |
| 53 const GURL& manifest_url, | 53 const GURL& manifest_url, |
| 54 const Manifest& manifest, | 54 const Manifest& manifest, |
| 55 const ManifestDebugInfo&); | 55 const ManifestDebugInfo&); |
| 56 | 56 |
| 57 void DoSubscribe( | 57 void DoSubscribe( |
| 58 blink::WebServiceWorkerRegistration* service_worker_registration, | 58 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 59 const PushSubscriptionOptions& options, | 59 const PushSubscriptionOptions& options, |
| 60 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks); | 60 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks); |
| 61 | 61 |
| 62 void SubscribeCallback( | 62 void DidSubscribe( |
| 63 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks, | 63 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks, |
| 64 content::PushRegistrationStatus status, | 64 content::PushRegistrationStatus status, |
| 65 const base::Optional<GURL>& endpoint, | 65 const base::Optional<GURL>& endpoint, |
| 66 const base::Optional<content::PushSubscriptionOptions>& options, | 66 const base::Optional<content::PushSubscriptionOptions>& options, |
| 67 const base::Optional<std::vector<uint8_t>>& p256dh, | 67 const base::Optional<std::vector<uint8_t>>& p256dh, |
| 68 const base::Optional<std::vector<uint8_t>>& auth); | 68 const base::Optional<std::vector<uint8_t>>& auth); |
| 69 | 69 |
| 70 mojom::PushMessagingPtr push_messaging_manager_; | 70 mojom::PushMessagingPtr push_messaging_manager_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(PushMessagingClient); | 72 DISALLOW_COPY_AND_ASSIGN(PushMessagingClient); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace content | 75 } // namespace content |
| 76 | 76 |
| 77 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_CLIENT_H_ | 77 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_CLIENT_H_ |
| OLD | NEW |