| 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_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_ | 5 #ifndef CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_ |
| 6 #define CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_ | 6 #define CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 const scoped_refptr<base::SingleThreadTaskRunner>& | 41 const scoped_refptr<base::SingleThreadTaskRunner>& |
| 42 main_thread_task_runner); | 42 main_thread_task_runner); |
| 43 | 43 |
| 44 // WorkerThread::Observer implementation. | 44 // WorkerThread::Observer implementation. |
| 45 void WillStopCurrentWorkerThread() override; | 45 void WillStopCurrentWorkerThread() override; |
| 46 | 46 |
| 47 // blink::WebPushProvider implementation. | 47 // blink::WebPushProvider implementation. |
| 48 void Subscribe( | 48 void Subscribe( |
| 49 blink::WebServiceWorkerRegistration* service_worker_registration, | 49 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 50 const blink::WebPushSubscriptionOptions& options, | 50 const blink::WebPushSubscriptionOptions& options, |
| 51 bool user_gesture, |
| 51 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks) override; | 52 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks) override; |
| 52 void Unsubscribe( | 53 void Unsubscribe( |
| 53 blink::WebServiceWorkerRegistration* service_worker_registration, | 54 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 54 std::unique_ptr<blink::WebPushUnsubscribeCallbacks> callbacks) override; | 55 std::unique_ptr<blink::WebPushUnsubscribeCallbacks> callbacks) override; |
| 55 void GetSubscription( | 56 void GetSubscription( |
| 56 blink::WebServiceWorkerRegistration* service_worker_registration, | 57 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 57 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks) override; | 58 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks) override; |
| 58 void GetPermissionStatus( | 59 void GetPermissionStatus( |
| 59 blink::WebServiceWorkerRegistration* service_worker_registration, | 60 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 60 const blink::WebPushSubscriptionOptions& options, | 61 const blink::WebPushSubscriptionOptions& options, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 blink::WebPushPermissionStatus status); | 96 blink::WebPushPermissionStatus status); |
| 96 | 97 |
| 97 mojom::PushMessagingPtr push_messaging_manager_; | 98 mojom::PushMessagingPtr push_messaging_manager_; |
| 98 | 99 |
| 99 DISALLOW_COPY_AND_ASSIGN(PushProvider); | 100 DISALLOW_COPY_AND_ASSIGN(PushProvider); |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace content | 103 } // namespace content |
| 103 | 104 |
| 104 #endif // CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_ | 105 #endif // CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_ |
| OLD | NEW |