| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 void RegisterFromWorker( | 35 void RegisterFromWorker( |
| 36 const GURL& requesting_origin, | 36 const GURL& requesting_origin, |
| 37 int64 service_worker_registration_id, | 37 int64 service_worker_registration_id, |
| 38 const std::string& sender_id, | 38 const std::string& sender_id, |
| 39 const PushMessagingService::RegisterCallback& callback) override; | 39 const PushMessagingService::RegisterCallback& callback) override; |
| 40 blink::WebPushPermissionStatus GetPermissionStatus( | 40 blink::WebPushPermissionStatus GetPermissionStatus( |
| 41 const GURL& requesting_origin, | 41 const GURL& requesting_origin, |
| 42 const GURL& embedding_origin) override; | 42 const GURL& embedding_origin) override; |
| 43 void Unregister(const GURL& requesting_origin, | 43 void Unregister(const GURL& requesting_origin, |
| 44 int64 service_worker_registration_id, | 44 int64 service_worker_registration_id, |
| 45 const std::string& sender_id, |
| 45 bool retry_on_failure, | 46 bool retry_on_failure, |
| 46 const UnregisterCallback& callback) override; | 47 const UnregisterCallback& callback) override; |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 // Map from origin to permission status. | 50 // Map from origin to permission status. |
| 50 std::map<GURL, blink::WebPushPermissionStatus> permission_map_; | 51 std::map<GURL, blink::WebPushPermissionStatus> permission_map_; |
| 51 | 52 |
| 52 DISALLOW_COPY_AND_ASSIGN(LayoutTestPushMessagingService); | 53 DISALLOW_COPY_AND_ASSIGN(LayoutTestPushMessagingService); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace content | 56 } // namespace content |
| 56 | 57 |
| 57 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PUSH_MESSAGING_SERVICE_
H_ | 58 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PUSH_MESSAGING_SERVICE_
H_ |
| OLD | NEW |