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

Unified Diff: content/renderer/render_frame_impl.h

Issue 2258673002: Revert of Remove content::NotificationPermissionDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissions_typemaps
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/notification_permission_dispatcher.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 0182154103b31c3c200a94a5a40bf1d0fbd96076..a2b0c2ef5ffd2e0b4847c8f682f8e954dd671a0f 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -133,6 +133,7 @@
class MediaPermissionDispatcher;
class MidiDispatcher;
class NavigationState;
+class NotificationPermissionDispatcher;
class PageState;
class PepperPluginInstanceImpl;
class PresentationDispatcher;
@@ -544,6 +545,9 @@
void didChangeThemeColor() override;
void dispatchLoad() override;
blink::WebEffectiveConnectionType getEffectiveConnectionType() override;
+ void requestNotificationPermission(
+ const blink::WebSecurityOrigin& origin,
+ blink::WebNotificationPermissionCallback* callback) override;
void didChangeSelection(bool is_empty_selection) override;
blink::WebColorChooser* createColorChooser(
blink::WebColorChooserClient* client,
@@ -1141,6 +1145,9 @@
// along with the RenderFrame automatically. This is why we just store weak
// references.
+ // Dispatches permission requests for Web Notifications.
+ NotificationPermissionDispatcher* notification_permission_dispatcher_;
+
// Destroyed via the RenderFrameObserver::OnDestruct() mechanism.
UserMediaClientImpl* web_user_media_client_;
« no previous file with comments | « content/renderer/notification_permission_dispatcher.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698