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 23 matching lines...) Expand all Loading... |
34 const RegisterCallback& callback) override; | 34 const RegisterCallback& callback) override; |
35 void SubscribeFromWorker(const GURL& requesting_origin, | 35 void SubscribeFromWorker(const GURL& requesting_origin, |
36 int64_t service_worker_registration_id, | 36 int64_t service_worker_registration_id, |
37 const PushSubscriptionOptions& options, | 37 const PushSubscriptionOptions& options, |
38 const RegisterCallback& callback) override; | 38 const RegisterCallback& callback) override; |
39 void GetSubscriptionInfo(const GURL& origin, | 39 void GetSubscriptionInfo(const GURL& origin, |
40 int64_t service_worker_registration_id, | 40 int64_t service_worker_registration_id, |
41 const std::string& sender_id, | 41 const std::string& sender_id, |
42 const std::string& subscription_id, | 42 const std::string& subscription_id, |
43 const SubscriptionInfoCallback& callback) override; | 43 const SubscriptionInfoCallback& callback) override; |
44 blink::WebPushPermissionStatus GetPermissionStatus(const GURL& origin, | 44 blink::WebPushPermissionStatus GetPermissionStatus( |
45 bool user_visible) | 45 const GURL& origin, |
46 override; | 46 bool user_visible) override; |
47 bool SupportNonVisibleMessages() override; | 47 bool SupportNonVisibleMessages() override; |
48 void Unsubscribe(PushUnregistrationReason reason, | 48 void Unsubscribe(PushUnregistrationReason reason, |
49 const GURL& requesting_origin, | 49 const GURL& requesting_origin, |
50 int64_t service_worker_registration_id, | 50 int64_t service_worker_registration_id, |
51 const std::string& sender_id, | 51 const std::string& sender_id, |
52 const UnregisterCallback& callback) override; | 52 const UnregisterCallback& callback) override; |
53 void DidDeleteServiceWorkerRegistration( | 53 void DidDeleteServiceWorkerRegistration( |
54 const GURL& origin, | 54 const GURL& origin, |
55 int64_t service_worker_registration_id) override; | 55 int64_t service_worker_registration_id) override; |
56 | 56 |
57 private: | 57 private: |
58 int64_t subscribed_service_worker_registration_; | 58 int64_t subscribed_service_worker_registration_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(LayoutTestPushMessagingService); | 60 DISALLOW_COPY_AND_ASSIGN(LayoutTestPushMessagingService); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace content | 63 } // namespace content |
64 | 64 |
65 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PUSH_MESSAGING_SERVICE_
H_ | 65 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PUSH_MESSAGING_SERVICE_
H_ |
OLD | NEW |