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

Side by Side Diff: content/renderer/notifications/notification_service_worker_client_impl.h

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: it works \o/ Created 4 years, 7 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_RENDERER_NOTIFICATIONS_NOTIFICATION_SERVICE_WORKER_CLIENT_IMPL_H _
6 #define CONTENT_RENDERER_NOTIFICATIONS_NOTIFICATION_SERVICE_WORKER_CLIENT_IMPL_H _
7
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "content/common/notification_service_worker_client.mojom-blink.h"
11 #include "mojo/public/cpp/bindings/interface_request.h"
12 #include "mojo/public/cpp/bindings/strong_binding.h"
13
14 namespace content {
15
16 // Notification client implementing the Mojo service responsible for invoking
17 // notification-specific events on a Service Worker.
18 class NotificationServiceWorkerClientImpl
19 : public NON_EXPORTED_BASE(mojom::blink::NotificationServiceWorkerClient) {
20 public:
21 static void Create(mojo::InterfaceRequest<
22 mojom::blink::NotificationServiceWorkerClient> request);
23
24 ~NotificationServiceWorkerClientImpl() override;
25
26 private:
27 explicit NotificationServiceWorkerClientImpl(
28 mojo::InterfaceRequest<mojom::blink::NotificationServiceWorkerClient>
29 request);
30
31 // mojom::blink::NotificationServiceWorkerClient implementation.
32 void Click(blink::mojom::blink::NotificationPtr notification,
33 int32_t action_index,
34 const ClickCallback& callback) override;
35 void Close(blink::mojom::blink::NotificationPtr notification,
36 const CloseCallback& callback) override;
37
38 mojo::StrongBinding<mojom::blink::NotificationServiceWorkerClient> binding_;
39
40 DISALLOW_COPY_AND_ASSIGN(NotificationServiceWorkerClientImpl);
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_RENDERER_NOTIFICATIONS_NOTIFICATION_SERVICE_WORKER_CLIENT_IMP L_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698