| 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_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PUSH_MESSAGING_SERVICE_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PUSH_MESSAGING_SERVICE_H_ |
| 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PUSH_MESSAGING_SERVICE_H_ | 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PUSH_MESSAGING_SERVICE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 LayoutTestPushMessagingService(); | 24 LayoutTestPushMessagingService(); |
| 25 ~LayoutTestPushMessagingService() override; | 25 ~LayoutTestPushMessagingService() override; |
| 26 | 26 |
| 27 // PushMessagingService implementation: | 27 // PushMessagingService implementation: |
| 28 GURL GetEndpoint(bool standard_protocol) const override; | 28 GURL GetEndpoint(bool standard_protocol) const override; |
| 29 void SubscribeFromDocument(const GURL& requesting_origin, | 29 void SubscribeFromDocument(const GURL& requesting_origin, |
| 30 int64_t service_worker_registration_id, | 30 int64_t service_worker_registration_id, |
| 31 int renderer_id, | 31 int renderer_id, |
| 32 int render_frame_id, | 32 int render_frame_id, |
| 33 const PushSubscriptionOptions& options, | 33 const PushSubscriptionOptions& options, |
| 34 bool user_gesture, |
| 34 const RegisterCallback& callback) override; | 35 const RegisterCallback& callback) override; |
| 35 void SubscribeFromWorker(const GURL& requesting_origin, | 36 void SubscribeFromWorker(const GURL& requesting_origin, |
| 36 int64_t service_worker_registration_id, | 37 int64_t service_worker_registration_id, |
| 37 const PushSubscriptionOptions& options, | 38 const PushSubscriptionOptions& options, |
| 38 const RegisterCallback& callback) override; | 39 const RegisterCallback& callback) override; |
| 39 void GetSubscriptionInfo(const GURL& origin, | 40 void GetSubscriptionInfo(const GURL& origin, |
| 40 int64_t service_worker_registration_id, | 41 int64_t service_worker_registration_id, |
| 41 const std::string& sender_id, | 42 const std::string& sender_id, |
| 42 const std::string& subscription_id, | 43 const std::string& subscription_id, |
| 43 const SubscriptionInfoCallback& callback) override; | 44 const SubscriptionInfoCallback& callback) override; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 int64_t subscribed_service_worker_registration_; | 59 int64_t subscribed_service_worker_registration_; |
| 59 | 60 |
| 60 DISALLOW_COPY_AND_ASSIGN(LayoutTestPushMessagingService); | 61 DISALLOW_COPY_AND_ASSIGN(LayoutTestPushMessagingService); |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 } // namespace content | 64 } // namespace content |
| 64 | 65 |
| 65 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PUSH_MESSAGING_SERVICE_
H_ | 66 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PUSH_MESSAGING_SERVICE_
H_ |
| OLD | NEW |