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

Side by Side Diff: third_party/WebKit/Source/modules/notifications/NotificationManager.h

Issue 2392543004: Reflow comments in the Push and Notification modules. (Closed)
Patch Set: Reflow comments in the Push and Notification modules. Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 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 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 NotificationManager_h 5 #ifndef NotificationManager_h
6 #define NotificationManager_h 6 #define NotificationManager_h
7 7
8 #include "core/dom/ContextLifecycleObserver.h" 8 #include "core/dom/ContextLifecycleObserver.h"
9 #include "core/dom/ExecutionContext.h" 9 #include "core/dom/ExecutionContext.h"
10 #include "public/platform/modules/notifications/notification_service.mojom-blink .h" 10 #include "public/platform/modules/notifications/notification_service.mojom-blink .h"
(...skipping 26 matching lines...) Expand all
37 ~NotificationManager(); 37 ~NotificationManager();
38 38
39 // Returns the notification permission status of the current origin. This 39 // Returns the notification permission status of the current origin. This
40 // method is synchronous to support the Notification.permission getter. 40 // method is synchronous to support the Notification.permission getter.
41 mojom::blink::PermissionStatus permissionStatus(); 41 mojom::blink::PermissionStatus permissionStatus();
42 42
43 ScriptPromise requestPermission( 43 ScriptPromise requestPermission(
44 ScriptState*, 44 ScriptState*,
45 NotificationPermissionCallback* deprecatedCallback); 45 NotificationPermissionCallback* deprecatedCallback);
46 46
47 // ContextLifecycleObserver implementation. 47 // ContextLifecycleObserver interface.
48 void contextDestroyed() override; 48 void contextDestroyed() override;
49 49
50 DECLARE_VIRTUAL_TRACE(); 50 DECLARE_VIRTUAL_TRACE();
51 51
52 private: 52 private:
53 explicit NotificationManager(ExecutionContext*); 53 explicit NotificationManager(ExecutionContext*);
54 54
55 void onPermissionRequestComplete(ScriptPromiseResolver*, 55 void onPermissionRequestComplete(ScriptPromiseResolver*,
56 NotificationPermissionCallback*, 56 NotificationPermissionCallback*,
57 mojom::blink::PermissionStatus); 57 mojom::blink::PermissionStatus);
58 void onPermissionServiceConnectionError(); 58 void onPermissionServiceConnectionError();
59 59
60 mojom::blink::NotificationServicePtr m_notificationService; 60 mojom::blink::NotificationServicePtr m_notificationService;
61 mojom::blink::PermissionServicePtr m_permissionService; 61 mojom::blink::PermissionServicePtr m_permissionService;
62 }; 62 };
63 63
64 } // namespace blink 64 } // namespace blink
65 65
66 #endif // NotificationManager_h 66 #endif // NotificationManager_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698