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_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback_forward.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/public/common/push_messaging_status.h" | 12 #include "content/public/common/push_messaging_status.h" |
13 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushPermi
ssionStatus.h" | 13 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushPermi
ssionStatus.h" |
14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class BrowserContext; | 18 class BrowserContext; |
19 class ServiceWorkerContext; | 19 class ServiceWorkerContext; |
20 | 20 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 static void GetSenderId(BrowserContext* browser_context, | 93 static void GetSenderId(BrowserContext* browser_context, |
94 const GURL& origin, | 94 const GURL& origin, |
95 int64 service_worker_registration_id, | 95 int64 service_worker_registration_id, |
96 const StringCallback& callback); | 96 const StringCallback& callback); |
97 | 97 |
98 // Clear the push registration id stored in the service worker with the given | 98 // Clear the push registration id stored in the service worker with the given |
99 // |service_worker_registration_id| for the given |origin|. | 99 // |service_worker_registration_id| for the given |origin|. |
100 static void ClearPushRegistrationID(BrowserContext* browser_context, | 100 static void ClearPushRegistrationID(BrowserContext* browser_context, |
101 const GURL& origin, | 101 const GURL& origin, |
102 int64 service_worker_registration_id); | 102 int64 service_worker_registration_id, |
| 103 const base::Closure& callback); |
103 }; | 104 }; |
104 | 105 |
105 } // namespace content | 106 } // namespace content |
106 | 107 |
107 #endif // CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ | 108 #endif // CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ |
OLD | NEW |