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

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: Created 6 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 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 namespace content { 59 namespace content {
60 60
61 class ChildFrameCompositingHelper; 61 class ChildFrameCompositingHelper;
62 class GeolocationDispatcher; 62 class GeolocationDispatcher;
63 class MediaStreamDispatcher; 63 class MediaStreamDispatcher;
64 class MediaStreamImpl; 64 class MediaStreamImpl;
65 class MediaStreamRendererFactory; 65 class MediaStreamRendererFactory;
66 class MidiDispatcher; 66 class MidiDispatcher;
67 class NotificationPermissionDispatcher;
67 class NotificationProvider; 68 class NotificationProvider;
68 class PepperPluginInstanceImpl; 69 class PepperPluginInstanceImpl;
69 class PushMessagingDispatcher; 70 class PushMessagingDispatcher;
70 class RendererAccessibility; 71 class RendererAccessibility;
71 class RendererCdmManager; 72 class RendererCdmManager;
72 class RendererMediaPlayerManager; 73 class RendererMediaPlayerManager;
73 class RendererPpapiHost; 74 class RendererPpapiHost;
74 class RenderFrameObserver; 75 class RenderFrameObserver;
75 class RenderViewImpl; 76 class RenderViewImpl;
76 class RenderWidget; 77 class RenderWidget;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 virtual void didFinishDocumentLoad(blink::WebLocalFrame* frame); 332 virtual void didFinishDocumentLoad(blink::WebLocalFrame* frame);
332 virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame); 333 virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame);
333 virtual void didFailLoad(blink::WebLocalFrame* frame, 334 virtual void didFailLoad(blink::WebLocalFrame* frame,
334 const blink::WebURLError& error); 335 const blink::WebURLError& error);
335 virtual void didFinishLoad(blink::WebLocalFrame* frame); 336 virtual void didFinishLoad(blink::WebLocalFrame* frame);
336 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame, 337 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame,
337 const blink::WebHistoryItem& item, 338 const blink::WebHistoryItem& item,
338 blink::WebHistoryCommitType commit_type); 339 blink::WebHistoryCommitType commit_type);
339 virtual void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); 340 virtual void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame);
340 virtual void didChangeThemeColor(); 341 virtual void didChangeThemeColor();
342 virtual void requestNotificationPermission(
343 const blink::WebSecurityOrigin& origin,
344 blink::WebNotificationPermissionCallback* callback);
341 virtual blink::WebNotificationPresenter* notificationPresenter(); 345 virtual blink::WebNotificationPresenter* notificationPresenter();
342 virtual void didChangeSelection(bool is_empty_selection); 346 virtual void didChangeSelection(bool is_empty_selection);
343 virtual blink::WebColorChooser* createColorChooser( 347 virtual blink::WebColorChooser* createColorChooser(
344 blink::WebColorChooserClient* client, 348 blink::WebColorChooserClient* client,
345 const blink::WebColor& initial_color, 349 const blink::WebColor& initial_color,
346 const blink::WebVector<blink::WebColorSuggestion>& suggestions); 350 const blink::WebVector<blink::WebColorSuggestion>& suggestions);
347 virtual void runModalAlertDialog(const blink::WebString& message); 351 virtual void runModalAlertDialog(const blink::WebString& message);
348 virtual bool runModalConfirmDialog(const blink::WebString& message); 352 virtual bool runModalConfirmDialog(const blink::WebString& message);
349 virtual bool runModalPromptDialog(const blink::WebString& message, 353 virtual bool runModalPromptDialog(const blink::WebString& message,
350 const blink::WebString& default_value, 354 const blink::WebString& default_value,
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 // could correspond to a substring of |selection_text_|; see above). 644 // could correspond to a substring of |selection_text_|; see above).
641 gfx::Range selection_range_; 645 gfx::Range selection_range_;
642 // Used to inform didChangeSelection() when it is called in the context 646 // Used to inform didChangeSelection() when it is called in the context
643 // of handling a InputMsg_SelectRange IPC. 647 // of handling a InputMsg_SelectRange IPC.
644 bool handling_select_range_; 648 bool handling_select_range_;
645 649
646 // The next group of objects all implement RenderFrameObserver, so are deleted 650 // The next group of objects all implement RenderFrameObserver, so are deleted
647 // along with the RenderFrame automatically. This is why we just store weak 651 // along with the RenderFrame automatically. This is why we just store weak
648 // references. 652 // references.
649 653
654 // Dispatches permission requests for Web Notifications.
655 NotificationPermissionDispatcher* notification_permission_dispatcher_;
656
650 // Holds a reference to the service which provides desktop notifications. 657 // Holds a reference to the service which provides desktop notifications.
658 // TODO(peter) Remove this once Web Notifications are routed through Platform.
651 NotificationProvider* notification_provider_; 659 NotificationProvider* notification_provider_;
652 660
653 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. 661 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism.
654 MediaStreamImpl* web_user_media_client_; 662 MediaStreamImpl* web_user_media_client_;
655 663
656 // MidiClient attached to this frame; lazily initialized. 664 // MidiClient attached to this frame; lazily initialized.
657 MidiDispatcher* midi_dispatcher_; 665 MidiDispatcher* midi_dispatcher_;
658 666
659 #if defined(OS_ANDROID) 667 #if defined(OS_ANDROID)
660 // Manages all media players in this render frame for communicating with the 668 // Manages all media players in this render frame for communicating with the
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 RendererAccessibility* renderer_accessibility_; 704 RendererAccessibility* renderer_accessibility_;
697 705
698 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 706 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
699 707
700 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 708 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
701 }; 709 };
702 710
703 } // namespace content 711 } // namespace content
704 712
705 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 713 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« 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