| 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.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/WebPushPermissionStatus.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 ServiceWorkerContext; | 18 class ServiceWorkerContext; |
| 19 | 19 |
| 20 // A push service-agnostic interface that the Push API uses for talking to | 20 // A push service-agnostic interface that the Push API uses for talking to |
| 21 // push messaging services like GCM. Must only be used on the UI thread. | 21 // push messaging services like GCM. Must only be used on the UI thread. |
| 22 class CONTENT_EXPORT PushMessagingService { | 22 class CONTENT_EXPORT PushMessagingService { |
| 23 public: | 23 public: |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // ever granted when the requesting origin matches the top level embedding | 83 // ever granted when the requesting origin matches the top level embedding |
| 84 // origin. | 84 // origin. |
| 85 virtual blink::WebPushPermissionStatus GetPermissionStatus( | 85 virtual blink::WebPushPermissionStatus GetPermissionStatus( |
| 86 const GURL& requesting_origin, | 86 const GURL& requesting_origin, |
| 87 const GURL& embedding_origin) = 0; | 87 const GURL& embedding_origin) = 0; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace content | 90 } // namespace content |
| 91 | 91 |
| 92 #endif // CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ | 92 #endif // CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ |
| OLD | NEW |