| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_NOTIFICATIONS_BLINK_NOTIFICATION_SERVICE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_NOTIFICATIONS_BLINK_NOTIFICATION_SERVICE_IMPL_H_ |
| 7 |
| 8 #include "mojo/public/cpp/bindings/binding.h" |
| 9 #include "third_party/WebKit/public/platform/modules/notifications/notification_
service.mojom.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class BrowserContext; |
| 14 class PlatformNotificationContextImpl; |
| 15 |
| 16 class BlinkNotificationServiceImpl : public blink::mojom::NotificationService { |
| 17 public: |
| 18 BlinkNotificationServiceImpl( |
| 19 PlatformNotificationContextImpl* notification_context, |
| 20 mojo::InterfaceRequest<blink::mojom::NotificationService> request); |
| 21 ~BlinkNotificationServiceImpl() override; |
| 22 |
| 23 // blink::mojom::NotificationService implementation. |
| 24 void GetPermissionStatus( |
| 25 const mojo::String& origin, |
| 26 const GetPermissionStatusCallback& callback) override; |
| 27 void ShowPersistent( |
| 28 const mojo::String& origin, |
| 29 blink::mojom::NotificationPtr notification, |
| 30 blink::mojom::NotificationResourcesPtr notification_resources, |
| 31 const ShowPersistentCallback& callback) override; |
| 32 |
| 33 private: |
| 34 // The platform notification context owns this instance. |
| 35 PlatformNotificationContextImpl* notification_context_; |
| 36 |
| 37 mojo::Binding<blink::mojom::NotificationService> binding_; |
| 38 }; |
| 39 |
| 40 } // namespace content |
| 41 |
| 42 #endif // CONTENT_BROWSER_NOTIFICATIONS_BLINK_NOTIFICATION_SERVICE_IMPL_H_ |
| OLD | NEW |