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