blob: 08d5b336bee49ee8e6b183aee814bf1c0698aca8 [file] [log] [blame]
[email protected]227692c52013-05-31 22:43:041// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6#define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7
[email protected]7a4e2532013-12-02 21:30:028#include <vector>
9
[email protected]227692c52013-05-31 22:43:0410#include "base/basictypes.h"
[email protected]7a4e2532013-12-02 21:30:0211#include "base/files/file_path.h"
[email protected]a09d53ce2014-01-31 00:46:4212#include "base/gtest_prod_util.h"
13#include "base/id_map.h"
[email protected]abc501e2014-01-27 19:27:2614#include "base/memory/weak_ptr.h"
[email protected]2e2d9632013-12-03 00:55:2615#include "base/observer_list.h"
[email protected]7a4e2532013-12-02 21:30:0216#include "base/process/process_handle.h"
[email protected]95640212014-07-26 18:14:3017#include "content/common/accessibility_mode_enums.h"
[email protected]c52a1412014-06-25 06:09:2518#include "content/common/mojo/service_registry_impl.h"
[email protected]87de04b02014-04-08 22:14:4919#include "content/public/common/javascript_message_type.h"
[email protected]65920f332014-03-04 21:14:1820#include "content/public/common/referrer.h"
[email protected]227692c52013-05-31 22:43:0421#include "content/public/renderer/render_frame.h"
[email protected]96307312014-05-04 01:00:1922#include "content/renderer/media/webmediaplayer_delegate.h"
[email protected]5a7100d2014-05-19 01:29:0423#include "content/renderer/render_frame_proxy.h"
[email protected]f3add922013-12-20 23:17:1624#include "content/renderer/renderer_webcookiejar_impl.h"
[email protected]227692c52013-05-31 22:43:0425#include "ipc/ipc_message.h"
[email protected]95640212014-07-26 18:14:3026#include "third_party/WebKit/public/web/WebAXObject.h"
[email protected]85d85fd2013-06-19 00:57:4127#include "third_party/WebKit/public/web/WebDataSource.h"
28#include "third_party/WebKit/public/web/WebFrameClient.h"
[email protected]680575542014-04-03 17:12:5229#include "third_party/WebKit/public/web/WebHistoryCommitType.h"
[email protected]4ee64622014-03-21 22:34:1530#include "ui/gfx/range/range.h"
[email protected]227692c52013-05-31 22:43:0431
[email protected]a017938b2014-05-27 21:17:1732#if defined(OS_ANDROID)
33#include "content/renderer/media/android/renderer_media_player_manager.h"
34#endif
35
[email protected]7a4e2532013-12-02 21:30:0236class TransportDIB;
[email protected]c6bc20332014-02-28 18:30:3937struct FrameMsg_Navigate_Params;
[email protected]7a4e2532013-12-02 21:30:0238
39namespace blink {
[email protected]5ee7f182014-04-25 19:45:2640class WebGeolocationClient;
[email protected]5cdd8fd82014-02-05 20:12:1241class WebInputEvent;
[email protected]7a4e2532013-12-02 21:30:0242class WebMouseEvent;
[email protected]82ce5b92014-03-22 05:15:2643class WebContentDecryptionModule;
[email protected]96307312014-05-04 01:00:1944class WebMediaPlayer;
[email protected]1c048252014-04-11 23:27:3445class WebNotificationPresenter;
[email protected]45920862014-07-02 12:53:0246class WebPushClient;
[email protected]82ce5b92014-03-22 05:15:2647class WebSecurityOrigin;
[email protected]7a4e2532013-12-02 21:30:0248struct WebCompositionUnderline;
[email protected]a09d53ce2014-01-31 00:46:4249struct WebContextMenuData;
[email protected]7a4e2532013-12-02 21:30:0250struct WebCursorInfo;
[email protected]7a4e2532013-12-02 21:30:0251}
52
53namespace gfx {
[email protected]a09d53ce2014-01-31 00:46:4254class Point;
[email protected]7a4e2532013-12-02 21:30:0255class Range;
56class Rect;
57}
58
[email protected]227692c52013-05-31 22:43:0459namespace content {
60
[email protected]bffc8302014-01-23 20:52:1661class ChildFrameCompositingHelper;
avi485e5fd62014-08-25 23:26:1462class ExternalPopupMenu;
[email protected]8eae0802014-06-02 21:35:5563class GeolocationDispatcher;
[email protected]977db4a42014-07-17 08:04:3264class MediaStreamDispatcher;
65class MediaStreamImpl;
[email protected]ae2477e2014-05-27 23:47:0866class MediaStreamRendererFactory;
[email protected]52d3e172014-06-16 16:57:0267class MidiDispatcher;
[email protected]4459599e2014-07-29 22:40:0968class NotificationPermissionDispatcher;
[email protected]2626d142014-04-22 17:24:0269class NotificationProvider;
[email protected]7a4e2532013-12-02 21:30:0270class PepperPluginInstanceImpl;
[email protected]45920862014-07-02 12:53:0271class PushMessagingDispatcher;
[email protected]95640212014-07-26 18:14:3072class RendererAccessibility;
[email protected]4b556cf2014-06-10 23:21:5373class RendererCdmManager;
74class RendererMediaPlayerManager;
[email protected]7a4e2532013-12-02 21:30:0275class RendererPpapiHost;
[email protected]2e2d9632013-12-03 00:55:2676class RenderFrameObserver;
[email protected]227692c52013-05-31 22:43:0477class RenderViewImpl;
[email protected]7a4e2532013-12-02 21:30:0278class RenderWidget;
79class RenderWidgetFullscreenPepper;
[email protected]cf78eda2014-06-13 16:57:4180class ScreenOrientationDispatcher;
[email protected]a09d53ce2014-01-31 00:46:4281struct CustomContextMenuContext;
[email protected]227692c52013-05-31 22:43:0482
[email protected]85d85fd2013-06-19 00:57:4183class CONTENT_EXPORT RenderFrameImpl
84 : public RenderFrame,
[email protected]96307312014-05-04 01:00:1985 NON_EXPORTED_BASE(public blink::WebFrameClient),
86 NON_EXPORTED_BASE(public WebMediaPlayerDelegate) {
[email protected]227692c52013-05-31 22:43:0487 public:
[email protected]2f61bdd2013-07-02 18:38:4788 // Creates a new RenderFrame. |render_view| is the RenderView object that this
89 // frame belongs to.
[email protected]b70da4c2014-01-06 19:57:0990 // Callers *must* call |SetWebFrame| immediately after creation.
[email protected]82307f6b2014-08-07 03:30:1291 // Note: This is called only when RenderFrame is created by Blink through
92 // createChildFrame.
[email protected]b70da4c2014-01-06 19:57:0993 // TODO(creis): We should structure this so that |SetWebFrame| isn't needed.
[email protected]2f61bdd2013-07-02 18:38:4794 static RenderFrameImpl* Create(RenderViewImpl* render_view, int32 routing_id);
95
[email protected]82307f6b2014-08-07 03:30:1296 // Creates a new RenderFrame with |routing_id| as a child of the RenderFrame
97 // identified by |parent_routing_id| or as the top-level frame if the latter
98 // is MSG_ROUTING_NONE. It creates the Blink WebLocalFrame and inserts it in
99 // the proper place in the frame tree.
100 // Note: This is called only when RenderFrame is being created in response to
101 // IPC message from the browser process. All other frame creation is driven
102 // through Blink and Create.
103 static void CreateFrame(int routing_id, int parent_routing_id);
104
[email protected]5a7100d2014-05-19 01:29:04105 // Returns the RenderFrameImpl for the given routing ID.
106 static RenderFrameImpl* FromRoutingID(int routing_id);
107
[email protected]a5ac6dc2014-01-15 07:02:14108 // Just like RenderFrame::FromWebFrame but returns the implementation.
109 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame);
[email protected]b70da4c2014-01-06 19:57:09110
[email protected]2f61bdd2013-07-02 18:38:47111 // Used by content_layouttest_support to hook into the creation of
112 // RenderFrameImpls.
113 static void InstallCreateHook(
114 RenderFrameImpl* (*create_render_frame_impl)(RenderViewImpl*, int32));
115
[email protected]227692c52013-05-31 22:43:04116 virtual ~RenderFrameImpl();
117
[email protected]b70da4c2014-01-06 19:57:09118 bool is_swapped_out() const {
119 return is_swapped_out_;
120 }
121
[email protected]5a7100d2014-05-19 01:29:04122 // TODO(nasko): This can be removed once we don't have a swapped out state on
123 // RenderFrames. See https://crbug.com/357747.
124 void set_render_frame_proxy(RenderFrameProxy* proxy) {
125 render_frame_proxy_ = proxy;
126 }
127
[email protected]bffc8302014-01-23 20:52:16128 // Out-of-process child frames receive a signal from RenderWidgetCompositor
129 // when a compositor frame has committed.
130 void DidCommitCompositorFrame();
131
[email protected]7a4e2532013-12-02 21:30:02132 // TODO(jam): this is a temporary getter until all the code is transitioned
133 // to using RenderFrame instead of RenderView.
[email protected]abc501e2014-01-27 19:27:26134 RenderViewImpl* render_view() { return render_view_.get(); }
[email protected]7a4e2532013-12-02 21:30:02135
[email protected]f3add922013-12-20 23:17:16136 RendererWebCookieJarImpl* cookie_jar() { return &cookie_jar_; }
137
[email protected]7a4e2532013-12-02 21:30:02138 // Returns the RenderWidget associated with this frame.
139 RenderWidget* GetRenderWidget();
140
[email protected]35b2a972014-04-04 15:50:22141 // This is called right after creation with the WebLocalFrame for this
[email protected]0287e762014-04-11 13:07:58142 // RenderFrame. It must be called before Initialize.
[email protected]35b2a972014-04-04 15:50:22143 void SetWebFrame(blink::WebLocalFrame* web_frame);
[email protected]b70da4c2014-01-06 19:57:09144
[email protected]0287e762014-04-11 13:07:58145 // This method must be called after the frame has been added to the frame
146 // tree. It creates all objects that depend on the frame being at its proper
147 // spot.
148 void Initialize();
149
[email protected]de3c5d82014-05-28 22:12:59150 // Notifications from RenderWidget.
151 void WasHidden();
152 void WasShown();
153
[email protected]723971b2014-02-12 11:08:25154 // Start/Stop loading notifications.
155 // TODO(nasko): Those are page-level methods at this time and come from
156 // WebViewClient. We should move them to be WebFrameClient calls and put
157 // logic in the browser side to balance starts/stops.
[email protected]e3b10d12014-03-28 16:06:09158 // |to_different_document| will be true unless the load is a fragment
159 // navigation, or triggered by history.pushState/replaceState.
[email protected]6dd5c322014-03-12 07:58:46160 virtual void didStartLoading(bool to_different_document);
161 virtual void didStopLoading();
162 virtual void didChangeLoadProgress(double load_progress);
[email protected]723971b2014-02-12 11:08:25163
[email protected]95640212014-07-26 18:14:30164 AccessibilityMode accessibility_mode() {
165 return accessibility_mode_;
166 }
167
168 RendererAccessibility* renderer_accessibility() {
169 return renderer_accessibility_;
170 }
171
172 void HandleWebAccessibilityEvent(const blink::WebAXObject& obj,
173 blink::WebAXEvent event);
174
175 // TODO(dmazzoni): the only reason this is here is to plumb it through to
176 // RendererAccessibility. It should be part of RenderFrameObserver, once
177 // blink has a separate accessibility tree per frame.
178 void FocusedNodeChanged(const blink::WebNode& node);
179
[email protected]7a4e2532013-12-02 21:30:02180#if defined(ENABLE_PLUGINS)
[email protected]271ff5792013-12-04 22:29:31181 // Notification that a PPAPI plugin has been created.
182 void PepperPluginCreated(RendererPpapiHost* host);
183
[email protected]7a4e2532013-12-02 21:30:02184 // Notifies that |instance| has changed the cursor.
185 // This will update the cursor appearance if it is currently over the plugin
186 // instance.
187 void PepperDidChangeCursor(PepperPluginInstanceImpl* instance,
188 const blink::WebCursorInfo& cursor);
189
190 // Notifies that |instance| has received a mouse event.
191 void PepperDidReceiveMouseEvent(PepperPluginInstanceImpl* instance);
192
[email protected]7a4e2532013-12-02 21:30:02193 // Informs the render view that a PPAPI plugin has changed text input status.
194 void PepperTextInputTypeChanged(PepperPluginInstanceImpl* instance);
195 void PepperCaretPositionChanged(PepperPluginInstanceImpl* instance);
196
197 // Cancels current composition.
198 void PepperCancelComposition(PepperPluginInstanceImpl* instance);
199
200 // Informs the render view that a PPAPI plugin has changed selection.
201 void PepperSelectionChanged(PepperPluginInstanceImpl* instance);
202
203 // Creates a fullscreen container for a pepper plugin instance.
204 RenderWidgetFullscreenPepper* CreatePepperFullscreenContainer(
205 PepperPluginInstanceImpl* plugin);
206
[email protected]7a4e2532013-12-02 21:30:02207 bool IsPepperAcceptingCompositionEvents() const;
208
209 // Notification that the given plugin has crashed.
210 void PluginCrashed(const base::FilePath& plugin_path,
211 base::ProcessId plugin_pid);
212
[email protected]7a4e2532013-12-02 21:30:02213 // Simulates IME events for testing purpose.
214 void SimulateImeSetComposition(
[email protected]fcf75d42013-12-03 20:11:26215 const base::string16& text,
[email protected]7a4e2532013-12-02 21:30:02216 const std::vector<blink::WebCompositionUnderline>& underlines,
217 int selection_start,
218 int selection_end);
[email protected]fcf75d42013-12-03 20:11:26219 void SimulateImeConfirmComposition(const base::string16& text,
[email protected]7a4e2532013-12-02 21:30:02220 const gfx::Range& replacement_range);
221
222 // TODO(jam): remove these once the IPC handler moves from RenderView to
223 // RenderFrame.
224 void OnImeSetComposition(
[email protected]fcf75d42013-12-03 20:11:26225 const base::string16& text,
[email protected]7a4e2532013-12-02 21:30:02226 const std::vector<blink::WebCompositionUnderline>& underlines,
227 int selection_start,
228 int selection_end);
229 void OnImeConfirmComposition(
[email protected]fcf75d42013-12-03 20:11:26230 const base::string16& text,
[email protected]7a4e2532013-12-02 21:30:02231 const gfx::Range& replacement_range,
232 bool keep_selection);
[email protected]7a4e2532013-12-02 21:30:02233#endif // ENABLE_PLUGINS
234
[email protected]977db4a42014-07-17 08:04:32235 // May return NULL in some cases, especially if userMediaClient() returns
236 // NULL.
237 MediaStreamDispatcher* GetMediaStreamDispatcher();
238
avi485e5fd62014-08-25 23:26:14239#if defined(OS_MACOSX) || defined(OS_ANDROID)
240 void DidHideExternalPopupMenu();
241#endif
242
[email protected]227692c52013-05-31 22:43:04243 // IPC::Sender
244 virtual bool Send(IPC::Message* msg) OVERRIDE;
245
246 // IPC::Listener
247 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
248
[email protected]271ff5792013-12-04 22:29:31249 // RenderFrame implementation:
[email protected]b849847b2013-12-10 21:57:58250 virtual RenderView* GetRenderView() OVERRIDE;
[email protected]60eca4eb2013-12-06 00:02:16251 virtual int GetRoutingID() OVERRIDE;
[email protected]a5ac6dc2014-01-15 07:02:14252 virtual blink::WebFrame* GetWebFrame() OVERRIDE;
[email protected]d019e1a382013-12-11 17:52:06253 virtual WebPreferences& GetWebkitPreferences() OVERRIDE;
254 virtual int ShowContextMenu(ContextMenuClient* client,
255 const ContextMenuParams& params) OVERRIDE;
256 virtual void CancelContextMenu(int request_id) OVERRIDE;
[email protected]1a6d0112014-03-10 19:08:41257 virtual blink::WebNode GetContextMenuNode() const OVERRIDE;
[email protected]271ff5792013-12-04 22:29:31258 virtual blink::WebPlugin* CreatePlugin(
259 blink::WebFrame* frame,
260 const WebPluginInfo& info,
261 const blink::WebPluginParams& params) OVERRIDE;
[email protected]35b2a972014-04-04 15:50:22262 virtual void LoadURLExternally(blink::WebLocalFrame* frame,
263 const blink::WebURLRequest& request,
264 blink::WebNavigationPolicy policy) OVERRIDE;
[email protected]db3be76f2014-03-25 02:27:47265 virtual void ExecuteJavaScript(const base::string16& javascript) OVERRIDE;
[email protected]291abdb2014-06-05 14:19:11266 virtual bool IsHidden() OVERRIDE;
[email protected]c52a1412014-06-25 06:09:25267 virtual ServiceRegistry* GetServiceRegistry() OVERRIDE;
[email protected]59e94c162014-07-23 06:27:08268 virtual bool IsFTPDirectoryListing() OVERRIDE;
[email protected]2101c4c2014-08-22 00:16:16269 virtual void AttachGuest(int element_instance_id) OVERRIDE;
[email protected]271ff5792013-12-04 22:29:31270
[email protected]96307312014-05-04 01:00:19271 // blink::WebFrameClient implementation:
[email protected]35b2a972014-04-04 15:50:22272 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame,
273 const blink::WebPluginParams& params);
[email protected]180ef242013-11-07 06:50:46274 virtual blink::WebMediaPlayer* createMediaPlayer(
[email protected]35b2a972014-04-04 15:50:22275 blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46276 const blink::WebURL& url,
277 blink::WebMediaPlayerClient* client);
[email protected]82ce5b92014-03-22 05:15:26278 virtual blink::WebContentDecryptionModule* createContentDecryptionModule(
[email protected]35b2a972014-04-04 15:50:22279 blink::WebLocalFrame* frame,
[email protected]82ce5b92014-03-22 05:15:26280 const blink::WebSecurityOrigin& security_origin,
281 const blink::WebString& key_system);
[email protected]180ef242013-11-07 06:50:46282 virtual blink::WebApplicationCacheHost* createApplicationCacheHost(
[email protected]35b2a972014-04-04 15:50:22283 blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46284 blink::WebApplicationCacheHostClient* client);
285 virtual blink::WebWorkerPermissionClientProxy*
[email protected]35b2a972014-04-04 15:50:22286 createWorkerPermissionClientProxy(blink::WebLocalFrame* frame);
[email protected]b20c3222014-08-22 00:50:22287 virtual blink::WebExternalPopupMenu* createExternalPopupMenu(
288 const blink::WebPopupMenuInfo& popup_menu_info,
289 blink::WebExternalPopupMenuClient* popup_menu_client);
[email protected]35b2a972014-04-04 15:50:22290 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame);
[email protected]180ef242013-11-07 06:50:46291 virtual blink::WebServiceWorkerProvider* createServiceWorkerProvider(
[email protected]35b2a972014-04-04 15:50:22292 blink::WebLocalFrame* frame);
293 virtual void didAccessInitialDocument(blink::WebLocalFrame* frame);
294 virtual blink::WebFrame* createChildFrame(blink::WebLocalFrame* parent,
295 const blink::WebString& name);
296 virtual void didDisownOpener(blink::WebLocalFrame* frame);
[email protected]180ef242013-11-07 06:50:46297 virtual void frameDetached(blink::WebFrame* frame);
[email protected]9c9343b2014-03-08 02:56:07298 virtual void frameFocused();
[email protected]180ef242013-11-07 06:50:46299 virtual void willClose(blink::WebFrame* frame);
[email protected]35b2a972014-04-04 15:50:22300 virtual void didChangeName(blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46301 const blink::WebString& name);
[email protected]f5b6dd1122013-10-04 02:42:50302 virtual void didMatchCSS(
[email protected]35b2a972014-04-04 15:50:22303 blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46304 const blink::WebVector<blink::WebString>& newly_matching_selectors,
305 const blink::WebVector<blink::WebString>& stopped_matching_selectors);
[email protected]c31a84802014-04-03 15:55:49306 virtual bool shouldReportDetailedMessageForSource(
307 const blink::WebString& source);
308 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message,
309 const blink::WebString& source_name,
310 unsigned source_line,
311 const blink::WebString& stack_trace);
[email protected]35b2a972014-04-04 15:50:22312 virtual void loadURLExternally(blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46313 const blink::WebURLRequest& request,
[email protected]35b2a972014-04-04 15:50:22314 blink::WebNavigationPolicy policy,
315 const blink::WebString& suggested_name);
[email protected]1a4e9752013-12-31 20:10:58316 // The WebDataSource::ExtraData* is assumed to be a DocumentState* subclass.
[email protected]180ef242013-11-07 06:50:46317 virtual blink::WebNavigationPolicy decidePolicyForNavigation(
[email protected]0c3c54f2014-07-31 01:29:00318 const NavigationPolicyInfo& info);
[email protected]680575542014-04-03 17:12:52319 virtual blink::WebHistoryItem historyItemForNewChildFrame(
320 blink::WebFrame* frame);
[email protected]35b2a972014-04-04 15:50:22321 virtual void willSendSubmitEvent(blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46322 const blink::WebFormElement& form);
[email protected]35b2a972014-04-04 15:50:22323 virtual void willSubmitForm(blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46324 const blink::WebFormElement& form);
[email protected]35b2a972014-04-04 15:50:22325 virtual void didCreateDataSource(blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46326 blink::WebDataSource* datasource);
[email protected]0c3c54f2014-07-31 01:29:00327 virtual void didStartProvisionalLoad(blink::WebLocalFrame* frame,
328 bool is_transition_navigation);
[email protected]85d85fd2013-06-19 00:57:41329 virtual void didReceiveServerRedirectForProvisionalLoad(
[email protected]45d877f2014-04-05 07:36:22330 blink::WebLocalFrame* frame);
[email protected]85d85fd2013-06-19 00:57:41331 virtual void didFailProvisionalLoad(
[email protected]45d877f2014-04-05 07:36:22332 blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46333 const blink::WebURLError& error);
[email protected]680575542014-04-03 17:12:52334 virtual void didCommitProvisionalLoad(
[email protected]45d877f2014-04-05 07:36:22335 blink::WebLocalFrame* frame,
[email protected]680575542014-04-03 17:12:52336 const blink::WebHistoryItem& item,
337 blink::WebHistoryCommitType commit_type);
[email protected]06181e52014-05-10 11:59:09338 virtual void didClearWindowObject(blink::WebLocalFrame* frame);
[email protected]35b2a972014-04-04 15:50:22339 virtual void didCreateDocumentElement(blink::WebLocalFrame* frame);
340 virtual void didReceiveTitle(blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46341 const blink::WebString& title,
342 blink::WebTextDirection direction);
[email protected]35b2a972014-04-04 15:50:22343 virtual void didChangeIcon(blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46344 blink::WebIconURL::Type icon_type);
[email protected]35b2a972014-04-04 15:50:22345 virtual void didFinishDocumentLoad(blink::WebLocalFrame* frame);
346 virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame);
347 virtual void didFailLoad(blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46348 const blink::WebURLError& error);
[email protected]45d877f2014-04-05 07:36:22349 virtual void didFinishLoad(blink::WebLocalFrame* frame);
350 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame,
[email protected]680575542014-04-03 17:12:52351 const blink::WebHistoryItem& item,
352 blink::WebHistoryCommitType commit_type);
[email protected]35b2a972014-04-04 15:50:22353 virtual void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame);
[email protected]9e6bea412014-08-08 06:35:25354 virtual void addNavigationTransitionData(
355 const blink::WebString& allowedDestinationOrigin,
356 const blink::WebString& selector,
357 const blink::WebString& markup);
[email protected]37b64c52014-07-11 21:14:05358 virtual void didChangeThemeColor();
[email protected]4459599e2014-07-29 22:40:09359 virtual void requestNotificationPermission(
360 const blink::WebSecurityOrigin& origin,
361 blink::WebNotificationPermissionCallback* callback);
[email protected]1c048252014-04-11 23:27:34362 virtual blink::WebNotificationPresenter* notificationPresenter();
[email protected]c3f2c702014-03-19 23:39:48363 virtual void didChangeSelection(bool is_empty_selection);
[email protected]f3c59d62014-04-09 16:33:55364 virtual blink::WebColorChooser* createColorChooser(
[email protected]eb8c216a2014-04-09 19:19:19365 blink::WebColorChooserClient* client,
[email protected]f3c59d62014-04-09 16:33:55366 const blink::WebColor& initial_color,
367 const blink::WebVector<blink::WebColorSuggestion>& suggestions);
[email protected]87de04b02014-04-08 22:14:49368 virtual void runModalAlertDialog(const blink::WebString& message);
369 virtual bool runModalConfirmDialog(const blink::WebString& message);
370 virtual bool runModalPromptDialog(const blink::WebString& message,
371 const blink::WebString& default_value,
372 blink::WebString* actual_value);
373 virtual bool runModalBeforeUnloadDialog(bool is_reload,
374 const blink::WebString& message);
[email protected]12cc5112014-03-03 17:01:10375 virtual void showContextMenu(const blink::WebContextMenuData& data);
[email protected]91070342014-03-07 00:29:02376 virtual void clearContextMenu();
[email protected]35b2a972014-04-04 15:50:22377 virtual void willSendRequest(blink::WebLocalFrame* frame,
378 unsigned identifier,
379 blink::WebURLRequest& request,
380 const blink::WebURLResponse& redirect_response);
381 virtual void didReceiveResponse(blink::WebLocalFrame* frame,
382 unsigned identifier,
383 const blink::WebURLResponse& response);
384 virtual void didFinishResourceLoad(blink::WebLocalFrame* frame,
[email protected]255eea092013-06-28 17:19:14385 unsigned identifier);
[email protected]85d85fd2013-06-19 00:57:41386 virtual void didLoadResourceFromMemoryCache(
[email protected]35b2a972014-04-04 15:50:22387 blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46388 const blink::WebURLRequest& request,
389 const blink::WebURLResponse& response);
[email protected]35b2a972014-04-04 15:50:22390 virtual void didDisplayInsecureContent(blink::WebLocalFrame* frame);
391 virtual void didRunInsecureContent(blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46392 const blink::WebSecurityOrigin& origin,
393 const blink::WebURL& target);
[email protected]35b2a972014-04-04 15:50:22394 virtual void didAbortLoading(blink::WebLocalFrame* frame);
395 virtual void didCreateScriptContext(blink::WebLocalFrame* frame,
[email protected]85d85fd2013-06-19 00:57:41396 v8::Handle<v8::Context> context,
397 int extension_group,
[email protected]255eea092013-06-28 17:19:14398 int world_id);
[email protected]35b2a972014-04-04 15:50:22399 virtual void willReleaseScriptContext(blink::WebLocalFrame* frame,
[email protected]85d85fd2013-06-19 00:57:41400 v8::Handle<v8::Context> context,
[email protected]255eea092013-06-28 17:19:14401 int world_id);
[email protected]35b2a972014-04-04 15:50:22402 virtual void didFirstVisuallyNonEmptyLayout(blink::WebLocalFrame* frame);
[email protected]35b2a972014-04-04 15:50:22403 virtual void didChangeScrollOffset(blink::WebLocalFrame* frame);
404 virtual void willInsertBody(blink::WebLocalFrame* frame);
[email protected]85d85fd2013-06-19 00:57:41405 virtual void reportFindInPageMatchCount(int request_id,
406 int count,
[email protected]255eea092013-06-28 17:19:14407 bool final_update);
[email protected]85d85fd2013-06-19 00:57:41408 virtual void reportFindInPageSelection(int request_id,
409 int active_match_ordinal,
[email protected]180ef242013-11-07 06:50:46410 const blink::WebRect& sel);
[email protected]35b2a972014-04-04 15:50:22411 virtual void requestStorageQuota(blink::WebLocalFrame* frame,
412 blink::WebStorageQuotaType type,
413 unsigned long long requested_size,
414 blink::WebStorageQuotaCallbacks callbacks);
[email protected]85d85fd2013-06-19 00:57:41415 virtual void willOpenSocketStream(
[email protected]180ef242013-11-07 06:50:46416 blink::WebSocketStreamHandle* handle);
[email protected]a14903e02014-06-02 07:35:12417 virtual void willOpenWebSocket(blink::WebSocketHandle* handle);
[email protected]5ee7f182014-04-25 19:45:26418 virtual blink::WebGeolocationClient* geolocationClient();
[email protected]45920862014-07-02 12:53:02419 virtual blink::WebPushClient* pushClient();
[email protected]85d85fd2013-06-19 00:57:41420 virtual void willStartUsingPeerConnectionHandler(
[email protected]35b2a972014-04-04 15:50:22421 blink::WebLocalFrame* frame,
[email protected]180ef242013-11-07 06:50:46422 blink::WebRTCPeerConnectionHandler* handler);
[email protected]bfe45e22014-04-25 16:47:53423 virtual blink::WebUserMediaClient* userMediaClient();
[email protected]8538385f2014-04-25 19:45:04424 virtual blink::WebMIDIClient* webMIDIClient();
[email protected]85d85fd2013-06-19 00:57:41425 virtual bool willCheckAndDispatchMessageEvent(
[email protected]ce5064f2014-05-07 22:49:20426 blink::WebLocalFrame* source_frame,
427 blink::WebFrame* target_frame,
428 blink::WebSecurityOrigin target_origin,
[email protected]180ef242013-11-07 06:50:46429 blink::WebDOMMessageEvent event);
[email protected]35b2a972014-04-04 15:50:22430 virtual blink::WebString userAgentOverride(blink::WebLocalFrame* frame,
431 const blink::WebURL& url);
432 virtual blink::WebString doNotTrackValue(blink::WebLocalFrame* frame);
433 virtual bool allowWebGL(blink::WebLocalFrame* frame, bool default_value);
434 virtual void didLoseWebGLContext(blink::WebLocalFrame* frame,
[email protected]255eea092013-06-28 17:19:14435 int arb_robustness_status_code);
[email protected]5cdd8fd82014-02-05 20:12:12436 virtual void forwardInputEvent(const blink::WebInputEvent* event);
[email protected]9ef43adc2014-02-19 08:02:15437 virtual void initializeChildFrame(const blink::WebRect& frame_rect,
438 float scale_factor);
[email protected]cf78eda2014-06-13 16:57:41439 virtual blink::WebScreenOrientationClient* webScreenOrientationClient();
[email protected]85d85fd2013-06-19 00:57:41440
[email protected]96307312014-05-04 01:00:19441 // WebMediaPlayerDelegate implementation:
442 virtual void DidPlay(blink::WebMediaPlayer* player) OVERRIDE;
443 virtual void DidPause(blink::WebMediaPlayer* player) OVERRIDE;
444 virtual void PlayerGone(blink::WebMediaPlayer* player) OVERRIDE;
445
[email protected]c6bc20332014-02-28 18:30:39446 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move
447 // this back to private member.
448 void OnNavigate(const FrameMsg_Navigate_Params& params);
449
[email protected]c52a1412014-06-25 06:09:25450 // Binds this render frame's service registry to a handle to the remote
451 // service registry.
452 void BindServiceRegistry(
453 mojo::ScopedMessagePipeHandle service_provider_handle);
454
[email protected]2f61bdd2013-07-02 18:38:47455 protected:
456 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id);
457
[email protected]227692c52013-05-31 22:43:04458 private:
[email protected]2e2d9632013-12-03 00:55:26459 friend class RenderFrameObserver;
[email protected]95640212014-07-26 18:14:30460 friend class RendererAccessibilityTest;
avi485e5fd62014-08-25 23:26:14461 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem);
462 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange);
463 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase);
464 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate);
[email protected]66bbadaf2014-03-28 16:25:54465 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest,
466 AccessibilityMessagesQueueWhileSwappedOut);
[email protected]ae2477e2014-05-27 23:47:08467 FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest,
[email protected]a09d53ce2014-01-31 00:46:42468 ShouldUpdateSelectionTextFromContextMenuParams);
[email protected]4ee64622014-03-21 22:34:15469 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
470 OnExtendSelectionAndDelete);
[email protected]66bbadaf2014-03-28 16:25:54471 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut);
472 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK);
[email protected]4ee64622014-03-21 22:34:15473 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
474 SetEditableSelectionAndComposition);
[email protected]95640212014-07-26 18:14:30475 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
476 OnSetAccessibilityMode);
[email protected]2e2d9632013-12-03 00:55:26477
[email protected]37567b432014-02-12 01:12:22478 typedef std::map<GURL, double> HostZoomLevels;
479
[email protected]2e2d9632013-12-03 00:55:26480 // Functions to add and remove observers for this object.
481 void AddObserver(RenderFrameObserver* observer);
482 void RemoveObserver(RenderFrameObserver* observer);
[email protected]1c2052f2013-08-28 08:24:34483
[email protected]f0906a02014-08-07 07:18:55484 // Builds and sends DidCommitProvisionalLoad to the host.
485 void SendDidCommitProvisionalLoad(blink::WebFrame* frame);
[email protected]37567b432014-02-12 01:12:22486
[email protected]9c9343b2014-03-08 02:56:07487 // Gets the focused element. If no such element exists then the element will
488 // be NULL.
489 blink::WebElement GetFocusedElement();
490
[email protected]b70da4c2014-01-06 19:57:09491 // IPC message handlers ------------------------------------------------------
492 //
493 // The documentation for these functions should be in
494 // content/common/*_messages.h for the message that the function is handling.
[email protected]f76f32232014-03-11 17:36:17495 void OnBeforeUnload();
[email protected]5a7100d2014-05-19 01:29:04496 void OnSwapOut(int proxy_routing_id);
[email protected]226057932014-08-22 17:13:31497 void OnStop();
[email protected]a09d53ce2014-01-31 00:46:42498 void OnShowContextMenu(const gfx::Point& location);
499 void OnContextMenuClosed(const CustomContextMenuContext& custom_context);
500 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context,
501 unsigned action);
[email protected]4ee64622014-03-21 22:34:15502 void OnUndo();
503 void OnRedo();
[email protected]9c9343b2014-03-08 02:56:07504 void OnCut();
505 void OnCopy();
506 void OnPaste();
[email protected]4ee64622014-03-21 22:34:15507 void OnPasteAndMatchStyle();
508 void OnDelete();
509 void OnSelectAll();
510 void OnSelectRange(const gfx::Point& start, const gfx::Point& end);
511 void OnUnselect();
[email protected]1f3fc1d2014-04-03 14:50:17512 void OnReplace(const base::string16& text);
513 void OnReplaceMisspelling(const base::string16& text);
[email protected]e31b8ebb2014-03-07 17:59:34514 void OnCSSInsertRequest(const std::string& css);
[email protected]f13ab892014-03-12 06:48:52515 void OnJavaScriptExecuteRequest(const base::string16& javascript,
516 int id,
517 bool notify_result);
[email protected]4ee64622014-03-21 22:34:15518 void OnSetEditableSelectionOffsets(int start, int end);
[email protected]e5e438d62014-03-27 21:47:16519 void OnSetCompositionFromExistingText(
520 int start, int end,
521 const std::vector<blink::WebCompositionUnderline>& underlines);
522 void OnExtendSelectionAndDelete(int before, int after);
[email protected]4fed3702014-04-01 09:08:00523 void OnReload(bool ignore_cache);
[email protected]96bb6132014-06-16 17:22:19524 void OnTextSurroundingSelectionRequest(size_t max_length);
[email protected]2e531f72014-06-20 23:23:39525 void OnAddStyleSheetByURL(const std::string& url);
[email protected]9e6bea412014-08-08 06:35:25526 void OnSetupTransitionView(const std::string& markup);
527 void OnBeginExitTransition(const std::string& css_selector);
[email protected]95640212014-07-26 18:14:30528 void OnSetAccessibilityMode(AccessibilityMode new_mode);
creisbbbeb062014-08-25 18:20:31529 void OnDisownOpener();
avi485e5fd62014-08-25 23:26:14530#if defined(OS_ANDROID)
531 void OnSelectPopupMenuItems(bool canceled,
532 const std::vector<int>& selected_indices);
533#elif defined(OS_MACOSX)
534 void OnSelectPopupMenuItem(int selected_index);
[email protected]4ee64622014-03-21 22:34:15535 void OnCopyToFindPboard();
536#endif
[email protected]9c9343b2014-03-08 02:56:07537
[email protected]65920f332014-03-04 21:14:18538 // Virtual since overridden by WebTestProxy for layout tests.
539 virtual blink::WebNavigationPolicy DecidePolicyForNavigation(
540 RenderFrame* render_frame,
[email protected]0c3c54f2014-07-31 01:29:00541 const NavigationPolicyInfo& info);
[email protected]65920f332014-03-04 21:14:18542 void OpenURL(blink::WebFrame* frame,
543 const GURL& url,
544 const Referrer& referrer,
545 blink::WebNavigationPolicy policy);
[email protected]a09d53ce2014-01-31 00:46:42546
[email protected]ef3adfc2014-05-11 00:04:54547 // Update current main frame's encoding and send it to browser window.
548 // Since we want to let users see the right encoding info from menu
549 // before finishing loading, we call the UpdateEncoding in
550 // a) function:DidCommitLoadForFrame. When this function is called,
551 // that means we have got first data. In here we try to get encoding
552 // of page if it has been specified in http header.
553 // b) function:DidReceiveTitle. When this function is called,
554 // that means we have got specified title. Because in most of webpages,
555 // title tags will follow meta tags. In here we try to get encoding of
556 // page if it has been specified in meta tag.
557 // c) function:DidFinishDocumentLoadForFrame. When this function is
558 // called, that means we have got whole html page. In here we should
559 // finally get right encoding of page.
560 void UpdateEncoding(blink::WebFrame* frame,
561 const std::string& encoding_name);
562
[email protected]4ee64622014-03-21 22:34:15563 // Dispatches the current state of selection on the webpage to the browser if
564 // it has changed.
565 // TODO(varunjain): delete this method once we figure out how to keep
566 // selection handles in sync with the webpage.
567 void SyncSelectionIfRequired();
568
[email protected]a09d53ce2014-01-31 00:46:42569 // Returns whether |params.selection_text| should be synchronized to the
570 // browser before bringing up the context menu. Static for testing.
571 static bool ShouldUpdateSelectionTextFromContextMenuParams(
572 const base::string16& selection_text,
573 size_t selection_text_offset,
574 const gfx::Range& selection_range,
575 const ContextMenuParams& params);
[email protected]b70da4c2014-01-06 19:57:09576
[email protected]87de04b02014-04-08 22:14:49577 bool RunJavaScriptMessage(JavaScriptMessageType type,
578 const base::string16& message,
579 const base::string16& default_value,
580 const GURL& frame_url,
581 base::string16* result);
582
[email protected]457736d2014-04-30 15:54:27583 // Loads the appropriate error page for the specified failure into the frame.
584 void LoadNavigationErrorPage(const blink::WebURLRequest& failed_request,
585 const blink::WebURLError& error,
586 bool replace);
587
[email protected]977db4a42014-07-17 08:04:32588 // Initializes |web_user_media_client_|. If this fails, because it wasn't
589 // possible to create a MediaStreamClient (e.g., WebRTC is disabled), then
590 // |web_user_media_client_| will remain NULL.
591 void InitializeUserMediaClient();
[email protected]96307312014-05-04 01:00:19592
593 blink::WebMediaPlayer* CreateWebMediaPlayerForMediaStream(
594 const blink::WebURL& url,
595 blink::WebMediaPlayerClient* client);
596
[email protected]ae2477e2014-05-27 23:47:08597 // Creates a factory object used for creating audio and video renderers.
598 // The method is virtual so that layouttests can override it.
599 virtual scoped_ptr<MediaStreamRendererFactory> CreateRendererFactory();
600
[email protected]f3a95312014-06-12 16:46:58601 // Returns the URL being loaded by the |frame_|'s request.
602 GURL GetLoadingUrl() const;
603
[email protected]96307312014-05-04 01:00:19604#if defined(OS_ANDROID)
[email protected]65f3d1aa2014-05-29 01:57:00605 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer(
[email protected]96307312014-05-04 01:00:19606 const blink::WebURL& url,
607 blink::WebMediaPlayerClient* client);
[email protected]a017938b2014-05-27 21:17:17608
[email protected]65f3d1aa2014-05-29 01:57:00609 RendererMediaPlayerManager* GetMediaPlayerManager();
[email protected]4b556cf2014-06-10 23:21:53610#endif
611
612#if defined(ENABLE_BROWSER_CDMS)
[email protected]65f3d1aa2014-05-29 01:57:00613 RendererCdmManager* GetCdmManager();
[email protected]96307312014-05-04 01:00:19614#endif
615
[email protected]35b2a972014-04-04 15:50:22616 // Stores the WebLocalFrame we are associated with.
617 blink::WebLocalFrame* frame_;
[email protected]b70da4c2014-01-06 19:57:09618
[email protected]abc501e2014-01-27 19:27:26619 base::WeakPtr<RenderViewImpl> render_view_;
[email protected]227692c52013-05-31 22:43:04620 int routing_id_;
[email protected]1c2052f2013-08-28 08:24:34621 bool is_swapped_out_;
[email protected]5a7100d2014-05-19 01:29:04622 // RenderFrameProxy exists only when is_swapped_out_ is true.
623 // TODO(nasko): This can be removed once we don't have a swapped out state on
624 // RenderFrame. See https://crbug.com/357747.
625 RenderFrameProxy* render_frame_proxy_;
[email protected]1c2052f2013-08-28 08:24:34626 bool is_detaching_;
[email protected]227692c52013-05-31 22:43:04627
[email protected]7a4e2532013-12-02 21:30:02628#if defined(ENABLE_PLUGINS)
[email protected]7a4e2532013-12-02 21:30:02629 // Current text input composition text. Empty if no composition is in
630 // progress.
[email protected]fcf75d42013-12-03 20:11:26631 base::string16 pepper_composition_text_;
[email protected]7a4e2532013-12-02 21:30:02632#endif
633
[email protected]f3add922013-12-20 23:17:16634 RendererWebCookieJarImpl cookie_jar_;
635
[email protected]2e2d9632013-12-03 00:55:26636 // All the registered observers.
637 ObserverList<RenderFrameObserver> observers_;
638
[email protected]bffc8302014-01-23 20:52:16639 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_;
640
[email protected]4ecee352014-03-11 21:12:19641 // The node that the context menu was pressed over.
642 blink::WebNode context_menu_node_;
643
[email protected]a09d53ce2014-01-31 00:46:42644 // External context menu requests we're waiting for. "Internal"
645 // (WebKit-originated) context menu events will have an ID of 0 and will not
646 // be in this map.
647 //
648 // We don't want to add internal ones since some of the "special" page
649 // handlers in the browser process just ignore the context menu requests so
650 // avoid showing context menus, and so this will cause right clicks to leak
651 // entries in this map. Most users of the custom context menu (e.g. Pepper
652 // plugins) are normally only on "regular" pages and the regular pages will
653 // always respond properly to the request, so we don't have to worry so
654 // much about leaks.
655 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_;
656
[email protected]4ee64622014-03-21 22:34:15657 // The text selection the last time DidChangeSelection got called. May contain
658 // additional characters before and after the selected text, for IMEs. The
659 // portion of this string that is the actual selected text starts at index
660 // |selection_range_.GetMin() - selection_text_offset_| and has length
661 // |selection_range_.length()|.
662 base::string16 selection_text_;
663 // The offset corresponding to the start of |selection_text_| in the document.
664 size_t selection_text_offset_;
665 // Range over the document corresponding to the actual selected text (which
666 // could correspond to a substring of |selection_text_|; see above).
667 gfx::Range selection_range_;
668 // Used to inform didChangeSelection() when it is called in the context
669 // of handling a InputMsg_SelectRange IPC.
670 bool handling_select_range_;
671
[email protected]2626d142014-04-22 17:24:02672 // The next group of objects all implement RenderFrameObserver, so are deleted
673 // along with the RenderFrame automatically. This is why we just store weak
674 // references.
675
[email protected]4459599e2014-07-29 22:40:09676 // Dispatches permission requests for Web Notifications.
677 NotificationPermissionDispatcher* notification_permission_dispatcher_;
678
[email protected]2626d142014-04-22 17:24:02679 // Holds a reference to the service which provides desktop notifications.
[email protected]4459599e2014-07-29 22:40:09680 // TODO(peter) Remove this once Web Notifications are routed through Platform.
[email protected]2626d142014-04-22 17:24:02681 NotificationProvider* notification_provider_;
682
[email protected]977db4a42014-07-17 08:04:32683 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism.
684 MediaStreamImpl* web_user_media_client_;
[email protected]96307312014-05-04 01:00:19685
[email protected]52d3e172014-06-16 16:57:02686 // MidiClient attached to this frame; lazily initialized.
687 MidiDispatcher* midi_dispatcher_;
688
[email protected]a017938b2014-05-27 21:17:17689#if defined(OS_ANDROID)
[email protected]4b556cf2014-06-10 23:21:53690 // Manages all media players in this render frame for communicating with the
691 // real media player in the browser process. It's okay to use a raw pointer
692 // since it's a RenderFrameObserver.
[email protected]a017938b2014-05-27 21:17:17693 RendererMediaPlayerManager* media_player_manager_;
[email protected]4b556cf2014-06-10 23:21:53694#endif
695
696#if defined(ENABLE_BROWSER_CDMS)
697 // Manage all CDMs in this render frame for communicating with the real CDM in
698 // the browser process. It's okay to use a raw pointer since it's a
699 // RenderFrameObserver.
[email protected]65f3d1aa2014-05-29 01:57:00700 RendererCdmManager* cdm_manager_;
[email protected]a017938b2014-05-27 21:17:17701#endif
702
[email protected]a6e21c372014-07-12 02:27:21703#if defined(VIDEO_HOLE)
704 // Whether or not this RenderFrameImpl contains a media player. Used to
705 // register as an observer for video-hole-specific events.
706 bool contains_media_player_;
707#endif
708
[email protected]45920862014-07-02 12:53:02709 // The geolocation dispatcher attached to this frame, lazily initialized.
[email protected]8eae0802014-06-02 21:35:55710 GeolocationDispatcher* geolocation_dispatcher_;
711
[email protected]45920862014-07-02 12:53:02712 // The push messaging dispatcher attached to this frame, lazily initialized.
713 PushMessagingDispatcher* push_messaging_dispatcher_;
714
[email protected]c52a1412014-06-25 06:09:25715 ServiceRegistryImpl service_registry_;
716
[email protected]45920862014-07-02 12:53:02717 // The screen orientation dispatcher attached to the frame, lazily
718 // initialized.
[email protected]cf78eda2014-06-13 16:57:41719 ScreenOrientationDispatcher* screen_orientation_dispatcher_;
720
[email protected]95640212014-07-26 18:14:30721 // The current accessibility mode.
722 AccessibilityMode accessibility_mode_;
723
724 // Only valid if |accessibility_mode_| is anything other than
725 // AccessibilityModeOff.
726 RendererAccessibility* renderer_accessibility_;
727
avi485e5fd62014-08-25 23:26:14728#if defined(OS_MACOSX) || defined(OS_ANDROID)
729 // The external popup for the currently showing select popup.
730 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
731#endif
732
[email protected]96307312014-05-04 01:00:19733 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
734
[email protected]227692c52013-05-31 22:43:04735 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
736};
737
738} // namespace content
739
[email protected]85d85fd2013-06-19 00:57:41740#endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_