Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(859)

Side by Side Diff: content/browser/notifications/blink_notification_service_impl.h

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: resolves the promise Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698