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

Side by Side Diff: mojo/services/html_viewer/webnotificationmanager_impl.h

Issue 1090953002: Small cleanups in the Mojo HTML viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MOJO_SERVICES_HTML_VIEWER_WEBNOTIFICATIONMANAGER_IMPL_H_ 5 #ifndef MOJO_SERVICES_HTML_VIEWER_WEBNOTIFICATIONMANAGER_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_WEBNOTIFICATIONMANAGER_IMPL_H_ 6 #define MOJO_SERVICES_HTML_VIEWER_WEBNOTIFICATIONMANAGER_IMPL_H_
7 7
8 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati onManager.h" 8 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati onManager.h"
9 9
10 namespace html_viewer { 10 namespace html_viewer {
11 11
12 // TODO(erg): This class is currently a stub; blink expects this object to 12 // TODO(erg): This class is currently a stub; blink expects this object to
13 // exist, and several websites will trigger notifications these days. 13 // exist, and several websites will trigger notifications these days.
14 class WebNotificationManagerImpl : public blink::WebNotificationManager { 14 class WebNotificationManagerImpl : public blink::WebNotificationManager {
15 public: 15 public:
16 WebNotificationManagerImpl(); 16 WebNotificationManagerImpl();
17 ~WebNotificationManagerImpl() override; 17 virtual ~WebNotificationManagerImpl();
18 18
19 // blink::WebNotificationManager methods: 19 // blink::WebNotificationManager methods:
20 void show(const blink::WebSerializedOrigin&, 20 virtual void show(const blink::WebSerializedOrigin&,
21 const blink::WebNotificationData&, 21 const blink::WebNotificationData&,
22 blink::WebNotificationDelegate*) override; 22 blink::WebNotificationDelegate*);
23 void showPersistent(const blink::WebSerializedOrigin&, 23 virtual void showPersistent(const blink::WebSerializedOrigin&,
24 const blink::WebNotificationData&, 24 const blink::WebNotificationData&,
25 blink::WebServiceWorkerRegistration*, 25 blink::WebServiceWorkerRegistration*,
26 blink::WebNotificationShowCallbacks*) override; 26 blink::WebNotificationShowCallbacks*);
27 void getNotifications(const blink::WebString& filterTag, 27 virtual void getNotifications(const blink::WebString& filterTag,
28 blink::WebServiceWorkerRegistration*, 28 blink::WebServiceWorkerRegistration*,
29 blink::WebNotificationGetCallbacks*) override; 29 blink::WebNotificationGetCallbacks*);
30 void close(blink::WebNotificationDelegate*) override; 30 virtual void close(blink::WebNotificationDelegate*);
31 void closePersistent(const blink::WebSerializedOrigin&, 31 virtual void closePersistent(const blink::WebSerializedOrigin&,
32 int64_t persistentNotificationId) override; 32 int64_t persistentNotificationId);
33 void closePersistent(const blink::WebSerializedOrigin&, 33 virtual void closePersistent(
34 const blink::WebString& persistentNotificationId) 34 const blink::WebSerializedOrigin&,
35 override; 35 const blink::WebString& persistentNotificationId);
36 void notifyDelegateDestroyed(blink::WebNotificationDelegate*) override; 36 virtual void notifyDelegateDestroyed(blink::WebNotificationDelegate*);
37 blink::WebNotificationPermission checkPermission( 37 virtual blink::WebNotificationPermission checkPermission(
38 const blink::WebSerializedOrigin&) override; 38 const blink::WebSerializedOrigin&);
39 39
40 private: 40 private:
41 DISALLOW_COPY_AND_ASSIGN(WebNotificationManagerImpl); 41 DISALLOW_COPY_AND_ASSIGN(WebNotificationManagerImpl);
42 }; 42 };
43 43
44 } // namespace html_viewer 44 } // namespace html_viewer
45 45
46 #endif // MOJO_SERVICES_HTML_VIEWER_WEBNOTIFICATIONMANAGER_IMPL_H_ 46 #endif // MOJO_SERVICES_HTML_VIEWER_WEBNOTIFICATIONMANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/webmimeregistry_impl.h ('k') | mojo/services/html_viewer/webscheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698