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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 381633005: Refactor Web Notification permission requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class Range; 53 class Range;
54 class Rect; 54 class Rect;
55 } 55 }
56 56
57 namespace content { 57 namespace content {
58 58
59 class ChildFrameCompositingHelper; 59 class ChildFrameCompositingHelper;
60 class GeolocationDispatcher; 60 class GeolocationDispatcher;
61 class MediaStreamRendererFactory; 61 class MediaStreamRendererFactory;
62 class MidiDispatcher; 62 class MidiDispatcher;
63 class NotificationPermissionDispatcher;
63 class NotificationProvider; 64 class NotificationProvider;
64 class PepperPluginInstanceImpl; 65 class PepperPluginInstanceImpl;
65 class PushMessagingDispatcher; 66 class PushMessagingDispatcher;
66 class RendererCdmManager; 67 class RendererCdmManager;
67 class RendererMediaPlayerManager; 68 class RendererMediaPlayerManager;
68 class RendererPpapiHost; 69 class RendererPpapiHost;
69 class RenderFrameObserver; 70 class RenderFrameObserver;
70 class RenderViewImpl; 71 class RenderViewImpl;
71 class RenderWidget; 72 class RenderWidget;
72 class RenderWidgetFullscreenPepper; 73 class RenderWidgetFullscreenPepper;
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 virtual void didFinishDocumentLoad(blink::WebLocalFrame* frame); 306 virtual void didFinishDocumentLoad(blink::WebLocalFrame* frame);
306 virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame); 307 virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame);
307 virtual void didFailLoad(blink::WebLocalFrame* frame, 308 virtual void didFailLoad(blink::WebLocalFrame* frame,
308 const blink::WebURLError& error); 309 const blink::WebURLError& error);
309 virtual void didFinishLoad(blink::WebLocalFrame* frame); 310 virtual void didFinishLoad(blink::WebLocalFrame* frame);
310 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame, 311 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame,
311 const blink::WebHistoryItem& item, 312 const blink::WebHistoryItem& item,
312 blink::WebHistoryCommitType commit_type); 313 blink::WebHistoryCommitType commit_type);
313 virtual void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); 314 virtual void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame);
314 virtual void didChangeThemeColor(); 315 virtual void didChangeThemeColor();
316 virtual void requestNotificationPermission(
317 const blink::WebSecurityOrigin& origin,
318 blink::WebNotificationPermissionCallback* callback);
315 virtual blink::WebNotificationPresenter* notificationPresenter(); 319 virtual blink::WebNotificationPresenter* notificationPresenter();
316 virtual void didChangeSelection(bool is_empty_selection); 320 virtual void didChangeSelection(bool is_empty_selection);
317 virtual blink::WebColorChooser* createColorChooser( 321 virtual blink::WebColorChooser* createColorChooser(
318 blink::WebColorChooserClient* client, 322 blink::WebColorChooserClient* client,
319 const blink::WebColor& initial_color, 323 const blink::WebColor& initial_color,
320 const blink::WebVector<blink::WebColorSuggestion>& suggestions); 324 const blink::WebVector<blink::WebColorSuggestion>& suggestions);
321 virtual void runModalAlertDialog(const blink::WebString& message); 325 virtual void runModalAlertDialog(const blink::WebString& message);
322 virtual bool runModalConfirmDialog(const blink::WebString& message); 326 virtual bool runModalConfirmDialog(const blink::WebString& message);
323 virtual bool runModalPromptDialog(const blink::WebString& message, 327 virtual bool runModalPromptDialog(const blink::WebString& message,
324 const blink::WebString& default_value, 328 const blink::WebString& default_value,
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 // could correspond to a substring of |selection_text_|; see above). 613 // could correspond to a substring of |selection_text_|; see above).
610 gfx::Range selection_range_; 614 gfx::Range selection_range_;
611 // Used to inform didChangeSelection() when it is called in the context 615 // Used to inform didChangeSelection() when it is called in the context
612 // of handling a InputMsg_SelectRange IPC. 616 // of handling a InputMsg_SelectRange IPC.
613 bool handling_select_range_; 617 bool handling_select_range_;
614 618
615 // The next group of objects all implement RenderFrameObserver, so are deleted 619 // The next group of objects all implement RenderFrameObserver, so are deleted
616 // along with the RenderFrame automatically. This is why we just store weak 620 // along with the RenderFrame automatically. This is why we just store weak
617 // references. 621 // references.
618 622
623 // Dispatches permission requests for Web Notifications.
624 NotificationPermissionDispatcher* notification_permission_dispatcher_;
625
619 // Holds a reference to the service which provides desktop notifications. 626 // Holds a reference to the service which provides desktop notifications.
627 // TODO(peter) Remove this once Web Notifications are routed through Platform.
620 NotificationProvider* notification_provider_; 628 NotificationProvider* notification_provider_;
621 629
622 blink::WebUserMediaClient* web_user_media_client_; 630 blink::WebUserMediaClient* web_user_media_client_;
623 631
624 // MidiClient attached to this frame; lazily initialized. 632 // MidiClient attached to this frame; lazily initialized.
625 MidiDispatcher* midi_dispatcher_; 633 MidiDispatcher* midi_dispatcher_;
626 634
627 #if defined(OS_ANDROID) 635 #if defined(OS_ANDROID)
628 // Manages all media players in this render frame for communicating with the 636 // Manages all media players in this render frame for communicating with the
629 // real media player in the browser process. It's okay to use a raw pointer 637 // real media player in the browser process. It's okay to use a raw pointer
(...skipping 27 matching lines...) Expand all
657 ScreenOrientationDispatcher* screen_orientation_dispatcher_; 665 ScreenOrientationDispatcher* screen_orientation_dispatcher_;
658 666
659 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 667 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
660 668
661 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 669 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
662 }; 670 };
663 671
664 } // namespace content 672 } // namespace content
665 673
666 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 674 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698