OLD | NEW |
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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 class DevToolsAgent; | 126 class DevToolsAgent; |
127 class DocumentState; | 127 class DocumentState; |
128 class ExternalPopupMenu; | 128 class ExternalPopupMenu; |
129 class ManifestManager; | 129 class ManifestManager; |
130 class MediaInterfaceProvider; | 130 class MediaInterfaceProvider; |
131 class MediaStreamDispatcher; | 131 class MediaStreamDispatcher; |
132 class MediaStreamRendererFactory; | 132 class MediaStreamRendererFactory; |
133 class MediaPermissionDispatcher; | 133 class MediaPermissionDispatcher; |
134 class MidiDispatcher; | 134 class MidiDispatcher; |
135 class NavigationState; | 135 class NavigationState; |
| 136 class NotificationPermissionDispatcher; |
136 class PageState; | 137 class PageState; |
137 class PepperPluginInstanceImpl; | 138 class PepperPluginInstanceImpl; |
138 class PresentationDispatcher; | 139 class PresentationDispatcher; |
139 class PushMessagingDispatcher; | 140 class PushMessagingDispatcher; |
140 class RenderAccessibilityImpl; | 141 class RenderAccessibilityImpl; |
141 class RendererCdmManager; | 142 class RendererCdmManager; |
142 class RendererMediaPlayerManager; | 143 class RendererMediaPlayerManager; |
143 class RendererMediaSessionManager; | 144 class RendererMediaSessionManager; |
144 class RendererPpapiHost; | 145 class RendererPpapiHost; |
145 class RendererSurfaceViewManager; | 146 class RendererSurfaceViewManager; |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 blink::WebHistoryCommitType commit_type) override; | 538 blink::WebHistoryCommitType commit_type) override; |
538 void didFinishLoad(blink::WebLocalFrame* frame) override; | 539 void didFinishLoad(blink::WebLocalFrame* frame) override; |
539 void didNavigateWithinPage(blink::WebLocalFrame* frame, | 540 void didNavigateWithinPage(blink::WebLocalFrame* frame, |
540 const blink::WebHistoryItem& item, | 541 const blink::WebHistoryItem& item, |
541 blink::WebHistoryCommitType commit_type, | 542 blink::WebHistoryCommitType commit_type, |
542 bool content_initiated) override; | 543 bool content_initiated) override; |
543 void didUpdateCurrentHistoryItem() override; | 544 void didUpdateCurrentHistoryItem() override; |
544 void didChangeThemeColor() override; | 545 void didChangeThemeColor() override; |
545 void dispatchLoad() override; | 546 void dispatchLoad() override; |
546 blink::WebEffectiveConnectionType getEffectiveConnectionType() override; | 547 blink::WebEffectiveConnectionType getEffectiveConnectionType() override; |
| 548 void requestNotificationPermission( |
| 549 const blink::WebSecurityOrigin& origin, |
| 550 blink::WebNotificationPermissionCallback* callback) override; |
547 void didChangeSelection(bool is_empty_selection) override; | 551 void didChangeSelection(bool is_empty_selection) override; |
548 blink::WebColorChooser* createColorChooser( | 552 blink::WebColorChooser* createColorChooser( |
549 blink::WebColorChooserClient* client, | 553 blink::WebColorChooserClient* client, |
550 const blink::WebColor& initial_color, | 554 const blink::WebColor& initial_color, |
551 const blink::WebVector<blink::WebColorSuggestion>& suggestions) override; | 555 const blink::WebVector<blink::WebColorSuggestion>& suggestions) override; |
552 void runModalAlertDialog(const blink::WebString& message) override; | 556 void runModalAlertDialog(const blink::WebString& message) override; |
553 bool runModalConfirmDialog(const blink::WebString& message) override; | 557 bool runModalConfirmDialog(const blink::WebString& message) override; |
554 bool runModalPromptDialog(const blink::WebString& message, | 558 bool runModalPromptDialog(const blink::WebString& message, |
555 const blink::WebString& default_value, | 559 const blink::WebString& default_value, |
556 blink::WebString* actual_value) override; | 560 blink::WebString* actual_value) override; |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 // could correspond to a substring of |selection_text_|; see above). | 1138 // could correspond to a substring of |selection_text_|; see above). |
1135 gfx::Range selection_range_; | 1139 gfx::Range selection_range_; |
1136 // Used to inform didChangeSelection() when it is called in the context | 1140 // Used to inform didChangeSelection() when it is called in the context |
1137 // of handling a InputMsg_SelectRange IPC. | 1141 // of handling a InputMsg_SelectRange IPC. |
1138 bool handling_select_range_; | 1142 bool handling_select_range_; |
1139 | 1143 |
1140 // The next group of objects all implement RenderFrameObserver, so are deleted | 1144 // The next group of objects all implement RenderFrameObserver, so are deleted |
1141 // along with the RenderFrame automatically. This is why we just store weak | 1145 // along with the RenderFrame automatically. This is why we just store weak |
1142 // references. | 1146 // references. |
1143 | 1147 |
| 1148 // Dispatches permission requests for Web Notifications. |
| 1149 NotificationPermissionDispatcher* notification_permission_dispatcher_; |
| 1150 |
1144 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. | 1151 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. |
1145 UserMediaClientImpl* web_user_media_client_; | 1152 UserMediaClientImpl* web_user_media_client_; |
1146 | 1153 |
1147 // EncryptedMediaClient attached to this frame; lazily initialized. | 1154 // EncryptedMediaClient attached to this frame; lazily initialized. |
1148 std::unique_ptr<media::WebEncryptedMediaClientImpl> | 1155 std::unique_ptr<media::WebEncryptedMediaClientImpl> |
1149 web_encrypted_media_client_; | 1156 web_encrypted_media_client_; |
1150 | 1157 |
1151 // The media permission dispatcher attached to this frame. | 1158 // The media permission dispatcher attached to this frame. |
1152 std::unique_ptr<MediaPermissionDispatcher> media_permission_dispatcher_; | 1159 std::unique_ptr<MediaPermissionDispatcher> media_permission_dispatcher_; |
1153 | 1160 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 mojom::FrameHostPtr frame_host_; | 1284 mojom::FrameHostPtr frame_host_; |
1278 | 1285 |
1279 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1286 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1280 | 1287 |
1281 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1288 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1282 }; | 1289 }; |
1283 | 1290 |
1284 } // namespace content | 1291 } // namespace content |
1285 | 1292 |
1286 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1293 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |