blob: af3e9775c3cdcb35cf9102fd3e98fb30b38d9185 [file] [log] [blame]
[email protected]6e24cf12011-03-18 19:57:021// Copyright (c) 2011 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
[email protected]310ebd6302011-10-10 19:06:285#ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6#define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
[email protected]6e24cf12011-03-18 19:57:027#pragma once
8
9#include <deque>
10#include <map>
11#include <queue>
12#include <set>
13#include <string>
14#include <vector>
15
[email protected]6e24cf12011-03-18 19:57:0216#include "base/basictypes.h"
17#include "base/gtest_prod_util.h"
18#include "base/id_map.h"
[email protected]3b63f8f42011-03-28 01:54:1519#include "base/memory/linked_ptr.h"
20#include "base/memory/weak_ptr.h"
[email protected]6e24cf12011-03-18 19:57:0221#include "base/observer_list.h"
22#include "base/timer.h"
[email protected]6e24cf12011-03-18 19:57:0223#include "build/build_config.h"
[email protected]b781ff282011-08-20 06:19:3624#include "content/renderer/render_view_selection.h"
[email protected]6e24cf12011-03-18 19:57:0225#include "content/renderer/renderer_webcookiejar_impl.h"
[email protected]8d128d62011-09-13 22:11:5726#include "content/common/content_export.h"
[email protected]55722152011-03-22 01:33:5327#include "content/common/edit_command.h"
[email protected]6e24cf12011-03-18 19:57:0228#include "content/common/navigation_gesture.h"
[email protected]54087fe2011-10-28 22:02:4829#include "content/public/common/page_zoom.h"
[email protected]daf82f82011-10-31 22:35:3130#include "content/public/common/renderer_preferences.h"
[email protected]815dd9872011-11-23 18:40:3031#include "content/public/common/stop_find_action.h"
[email protected]a2ef54c2011-10-10 16:20:3132#include "content/public/renderer/render_view.h"
[email protected]6e24cf12011-03-18 19:57:0233#include "content/renderer/pepper_plugin_delegate_impl.h"
34#include "content/renderer/render_widget.h"
35#include "ipc/ipc_platform_file.h"
[email protected]6e24cf12011-03-18 19:57:0236#include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
37#include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h"
38#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h"
[email protected]42054a252011-05-17 18:02:1339#include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h"
[email protected]6e24cf12011-03-18 19:57:0240#include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h"
[email protected]18d5be92011-07-25 18:00:1941#include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClient.h"
[email protected]94dec932011-05-26 20:04:2142#include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityState.h"
[email protected]6e24cf12011-03-18 19:57:0243#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
44#include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h"
45#include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h"
[email protected]b9b751f22011-03-25 14:04:1246#include "ui/gfx/surface/transport_dib.h"
[email protected]6e24cf12011-03-18 19:57:0247#include "webkit/glue/webpreferences.h"
[email protected]a9288f52011-11-17 05:18:1648#include "webkit/media/webmediaplayer_delegate.h"
[email protected]6e24cf12011-03-18 19:57:0249#include "webkit/plugins/npapi/webplugin_page_delegate.h"
50
51#if defined(OS_WIN)
[email protected]310ebd6302011-10-10 19:06:2852// RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the
53// root. VS warns when we inherit the WebWidgetClient method implementations
54// from RenderWidget. It's safe to ignore that warning.
[email protected]6e24cf12011-03-18 19:57:0255#pragma warning(disable: 4250)
56#endif
57
[email protected]6e24cf12011-03-18 19:57:0258class DeviceOrientationDispatcher;
[email protected]c5c1d6d2011-07-28 18:42:4159class DevToolsAgent;
[email protected]55722152011-03-22 01:33:5360class ExternalPopupMenu;
[email protected]6e24cf12011-03-18 19:57:0261class GeolocationDispatcher;
[email protected]6e24cf12011-03-18 19:57:0262class GURL;
[email protected]1ef93132011-09-16 18:33:4763class IntentsDispatcher;
[email protected]7f3c7af2011-10-20 22:52:5164class JavaBridgeDispatcher;
[email protected]6e24cf12011-03-18 19:57:0265class LoadProgressTracker;
[email protected]ab2c4732011-07-20 19:57:4066class MediaStreamImpl;
[email protected]6e24cf12011-03-18 19:57:0267class NotificationProvider;
[email protected]6e24cf12011-03-18 19:57:0268class PepperDeviceTest;
[email protected]83f93d32011-11-11 00:43:3069struct PP_NetAddress_Private;
[email protected]ea192e82011-04-11 19:16:0270class RenderWidgetFullscreenPepper;
[email protected]063afcb2011-09-29 07:54:3271class RendererAccessibility;
[email protected]6e24cf12011-03-18 19:57:0272class SkBitmap;
73class SpeechInputDispatcher;
[email protected]6e24cf12011-03-18 19:57:0274struct ViewMsg_Navigate_Params;
75struct ViewMsg_StopFinding_Params;
[email protected]83f93d32011-11-11 00:43:3076struct ViewMsg_SwapOut_Params;
[email protected]6e24cf12011-03-18 19:57:0277struct WebDropData;
[email protected]83f93d32011-11-11 00:43:3078class WebPluginDelegateProxy;
79class WebUIBindings;
[email protected]b3f8f9722011-08-25 20:56:0780
81namespace content {
[email protected]007733c2011-11-17 00:34:0782class DocumentState;
[email protected]b3f8f9722011-08-25 20:56:0783class P2PSocketDispatcher;
[email protected]3a034ebb2011-10-03 19:19:4484class RenderViewObserver;
[email protected]007733c2011-11-17 00:34:0785class RenderViewTest;
[email protected]8caadeb2011-11-22 02:45:2386struct FileChooserParams;
[email protected]b3f8f9722011-08-25 20:56:0787} // namespace content
[email protected]6e24cf12011-03-18 19:57:0288
[email protected]6e24cf12011-03-18 19:57:0289namespace gfx {
90class Point;
91class Rect;
[email protected]b3f8f9722011-08-25 20:56:0792} // namespace gfx
[email protected]6e24cf12011-03-18 19:57:0293
94namespace webkit {
95
[email protected]6e24cf12011-03-18 19:57:0296namespace ppapi {
[email protected]6e24cf12011-03-18 19:57:0297class PluginInstance;
[email protected]6e24cf12011-03-18 19:57:0298} // namespace ppapi
99
100} // namespace webkit
101
102namespace webkit_glue {
103struct CustomContextMenuContext;
104class ImageResourceFetcher;
[email protected]6e24cf12011-03-18 19:57:02105class ResourceFetcher;
106}
107
108namespace WebKit {
[email protected]6e24cf12011-03-18 19:57:02109class WebApplicationCacheHost;
110class WebApplicationCacheHostClient;
111class WebDataSource;
[email protected]6e24cf12011-03-18 19:57:02112class WebDragData;
[email protected]6e24cf12011-03-18 19:57:02113class WebGeolocationClient;
[email protected]42054a252011-05-17 18:02:13114class WebIconURL;
[email protected]6e24cf12011-03-18 19:57:02115class WebImage;
[email protected]6e24cf12011-03-18 19:57:02116class WebMediaPlayer;
117class WebMediaPlayerClient;
118class WebMouseEvent;
[email protected]6e24cf12011-03-18 19:57:02119class WebSpeechInputController;
120class WebSpeechInputListener;
121class WebStorageNamespace;
[email protected]2d0f2e92011-10-03 09:02:24122class WebTouchEvent;
[email protected]b00ba702011-08-17 01:41:03123class WebURLLoader;
[email protected]6e24cf12011-03-18 19:57:02124class WebURLRequest;
[email protected]6e24cf12011-03-18 19:57:02125struct WebFileChooserParams;
126struct WebFindOptions;
127struct WebMediaPlayerAction;
[email protected]6e24cf12011-03-18 19:57:02128struct WebPoint;
129struct WebWindowFeatures;
130}
131
132// We need to prevent a page from trying to create infinite popups. It is not
133// as simple as keeping a count of the number of immediate children
134// popups. Having an html file that window.open()s itself would create
135// an unlimited chain of RenderViews who only have one RenderView child.
136//
137// Therefore, each new top level RenderView creates a new counter and shares it
[email protected]310ebd6302011-10-10 19:06:28138// with all its children and grandchildren popup RenderViewImpls created with
[email protected]6e24cf12011-03-18 19:57:02139// createView() to have a sort of global limit for the page so no more than
140// kMaximumNumberOfPopups popups are created.
141//
142// This is a RefCounted holder of an int because I can't say
143// scoped_refptr<int>.
144typedef base::RefCountedData<int> SharedRenderViewCounter;
145
146//
147// RenderView is an object that manages a WebView object, and provides a
148// communication interface with an embedding application process
149//
[email protected]310ebd6302011-10-10 19:06:28150class RenderViewImpl : public RenderWidget,
151 public WebKit::WebViewClient,
152 public WebKit::WebFrameClient,
153 public WebKit::WebPageSerializerClient,
154 public content::RenderView,
155 public webkit::npapi::WebPluginPageDelegate,
[email protected]a9288f52011-11-17 05:18:16156 public webkit_media::WebMediaPlayerDelegate,
[email protected]310ebd6302011-10-10 19:06:28157 public base::SupportsWeakPtr<RenderViewImpl> {
[email protected]6e24cf12011-03-18 19:57:02158 public:
159 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the
[email protected]5f9de5882011-09-30 23:36:28160 // parent of the WebView HWND that will be created. If this is a blocked
[email protected]6e24cf12011-03-18 19:57:02161 // popup or as a new tab, opener_id is the routing ID of the RenderView
162 // responsible for creating this RenderView (corresponding to parent_hwnd).
163 // |counter| is either a currently initialized counter, or NULL (in which case
164 // we treat this RenderView as a top level window).
[email protected]310ebd6302011-10-10 19:06:28165 CONTENT_EXPORT static RenderViewImpl* Create(
[email protected]6e24cf12011-03-18 19:57:02166 gfx::NativeViewId parent_hwnd,
167 int32 opener_id,
[email protected]daf82f82011-10-31 22:35:31168 const content::RendererPreferences& renderer_prefs,
[email protected]6e24cf12011-03-18 19:57:02169 const WebPreferences& webkit_prefs,
170 SharedRenderViewCounter* counter,
171 int32 routing_id,
172 int64 session_storage_namespace_id,
173 const string16& frame_name);
174
[email protected]310ebd6302011-10-10 19:06:28175 // Returns the RenderViewImpl containing the given WebView.
176 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview);
[email protected]6e24cf12011-03-18 19:57:02177
178 // Sets the "next page id" counter.
179 static void SetNextPageID(int32 next_page_id);
180
181 // May return NULL when the view is closing.
[email protected]8d128d62011-09-13 22:11:57182 CONTENT_EXPORT WebKit::WebView* webview() const;
[email protected]6e24cf12011-03-18 19:57:02183
[email protected]65225772011-05-12 21:10:24184 // Called by a GraphicsContext associated with this view when swapbuffers
[email protected]37a6f302011-07-11 23:43:08185 // is posted, completes or is aborted.
186 void OnViewContextSwapBuffersPosted();
[email protected]65225772011-05-12 21:10:24187 void OnViewContextSwapBuffersComplete();
188 void OnViewContextSwapBuffersAborted();
189
[email protected]d466b8a2011-07-15 21:48:03190 int history_list_offset() const { return history_list_offset_; }
[email protected]6e24cf12011-03-18 19:57:02191
[email protected]6e24cf12011-03-18 19:57:02192 const WebPreferences& webkit_preferences() const {
193 return webkit_preferences_;
194 }
195
196 void set_send_content_state_immediately(bool value) {
197 send_content_state_immediately_ = value;
198 }
199
[email protected]6e24cf12011-03-18 19:57:02200 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
[email protected]b3f8f9722011-08-25 20:56:07201 content::P2PSocketDispatcher* p2p_socket_dispatcher() {
[email protected]6e24cf12011-03-18 19:57:02202 return p2p_socket_dispatcher_;
203 }
204
205 // Functions to add and remove observers for this object.
[email protected]3a034ebb2011-10-03 19:19:44206 void AddObserver(content::RenderViewObserver* observer);
207 void RemoveObserver(content::RenderViewObserver* observer);
[email protected]6e24cf12011-03-18 19:57:02208
[email protected]6e24cf12011-03-18 19:57:02209 // Adds the given file chooser request to the file_chooser_completion_ queue
210 // (see that var for more) and requests the chooser be displayed if there are
211 // no other waiting items in the queue.
212 //
213 // Returns true if the chooser was successfully scheduled. False means we
214 // didn't schedule anything.
[email protected]8caadeb2011-11-22 02:45:23215 bool ScheduleFileChooser(const content::FileChooserParams& params,
[email protected]6e24cf12011-03-18 19:57:02216 WebKit::WebFileChooserCompletion* completion);
217
[email protected]6e24cf12011-03-18 19:57:02218 // Sets whether the renderer should report load progress to the browser.
219 void SetReportLoadProgressEnabled(bool enabled);
220
[email protected]a2ef54c2011-10-10 16:20:31221 void LoadNavigationErrorPage(
[email protected]8d128d62011-09-13 22:11:57222 WebKit::WebFrame* frame,
223 const WebKit::WebURLRequest& failed_request,
224 const WebKit::WebURLError& error,
225 const std::string& html,
226 bool replace);
[email protected]9966325b2011-04-18 05:00:10227
[email protected]6e24cf12011-03-18 19:57:02228 // Plugin-related functions --------------------------------------------------
229 // (See also WebPluginPageDelegate implementation.)
230
231 // Notification that the given plugin has crashed.
232 void PluginCrashed(const FilePath& plugin_path);
233
[email protected]6e24cf12011-03-18 19:57:02234 // Creates a fullscreen container for a pepper plugin instance.
[email protected]ea192e82011-04-11 19:16:02235 RenderWidgetFullscreenPepper* CreatePepperFullscreenContainer(
[email protected]6e24cf12011-03-18 19:57:02236 webkit::ppapi::PluginInstance* plugin);
237
[email protected]56ea1a62011-05-30 07:05:57238 // Informs the render view that a PPAPI plugin has gained or lost focus.
239 void PpapiPluginFocusChanged();
240
[email protected]73bf95812011-10-12 11:38:32241 // Informs the render view that a PPAPI plugin has changed text input status.
242 void PpapiPluginTextInputTypeChanged();
[email protected]3f783362011-10-21 22:40:50243 void PpapiPluginCaretPositionChanged();
[email protected]73bf95812011-10-12 11:38:32244
245 // Cancels current composition.
246 void PpapiPluginCancelComposition();
247
[email protected]e6ae0f6c2011-10-04 10:39:23248#if defined(OS_MACOSX) || defined(OS_WIN)
[email protected]6e24cf12011-03-18 19:57:02249 // Informs the render view that the given plugin has gained or lost focus.
250 void PluginFocusChanged(bool focused, int plugin_id);
[email protected]e6ae0f6c2011-10-04 10:39:23251#endif
[email protected]6e24cf12011-03-18 19:57:02252
[email protected]e6ae0f6c2011-10-04 10:39:23253#if defined(OS_MACOSX)
[email protected]6e24cf12011-03-18 19:57:02254 // Starts plugin IME.
255 void StartPluginIme();
256
257 // Helper routines for accelerated plugin support. Used by the
258 // WebPluginDelegateProxy, which has a pointer to the RenderView.
259 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque,
260 bool root);
261 void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window);
262 void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window,
263 int32 width,
264 int32 height,
265 uint64 io_surface_identifier);
266 TransportDIB::Handle AcceleratedSurfaceAllocTransportDIB(size_t size);
267 void AcceleratedSurfaceFreeTransportDIB(TransportDIB::Id dib_id);
268 void AcceleratedSurfaceSetTransportDIB(gfx::PluginWindowHandle window,
269 int32 width,
270 int32 height,
271 TransportDIB::Handle transport_dib);
272 void AcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window,
273 uint64 surface_id);
274#endif
275
276 void RegisterPluginDelegate(WebPluginDelegateProxy* delegate);
277 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate);
278
[email protected]4a7d6392011-09-19 20:55:08279 // Helper function to retrieve information about a plugin for a URL and mime
280 // type. Returns false if no plugin was found.
281 // |actual_mime_type| is the actual mime type supported by the
282 // plugin found that match the URL given (one for each item in
283 // |info|).
[email protected]84c13c032011-09-23 00:12:22284 CONTENT_EXPORT bool GetPluginInfo(const GURL& url,
285 const GURL& page_url,
286 const std::string& mime_type,
287 webkit::WebPluginInfo* plugin_info,
288 std::string* actual_mime_type);
[email protected]4a7d6392011-09-19 20:55:08289
[email protected]6e24cf12011-03-18 19:57:02290 // IPC::Channel::Listener implementation -------------------------------------
291
[email protected]edc64de2011-11-17 20:07:38292 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
[email protected]6e24cf12011-03-18 19:57:02293
294 // WebKit::WebWidgetClient implementation ------------------------------------
295
296 // Most methods are handled by RenderWidget.
297 virtual void didFocus();
298 virtual void didBlur();
299 virtual void show(WebKit::WebNavigationPolicy policy);
300 virtual void runModal();
[email protected]2b624c562011-10-27 22:58:26301 virtual bool enterFullScreen();
302 virtual void exitFullScreen();
[email protected]6e24cf12011-03-18 19:57:02303
304 // WebKit::WebViewClient implementation --------------------------------------
305
306 virtual WebKit::WebView* createView(
307 WebKit::WebFrame* creator,
308 const WebKit::WebURLRequest& request,
309 const WebKit::WebWindowFeatures& features,
310 const WebKit::WebString& frame_name);
311 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type);
312 virtual WebKit::WebWidget* createPopupMenu(
313 const WebKit::WebPopupMenuInfo& info);
314 virtual WebKit::WebExternalPopupMenu* createExternalPopupMenu(
315 const WebKit::WebPopupMenuInfo& popup_menu_info,
316 WebKit::WebExternalPopupMenuClient* popup_menu_client);
317 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace(
318 unsigned quota);
319 virtual void didAddMessageToConsole(
320 const WebKit::WebConsoleMessage& message,
321 const WebKit::WebString& source_name,
322 unsigned source_line);
323 virtual void printPage(WebKit::WebFrame* frame);
324 virtual WebKit::WebNotificationPresenter* notificationPresenter();
[email protected]8a58c1c2011-04-19 18:40:12325 virtual bool enumerateChosenDirectory(
326 const WebKit::WebString& path,
327 WebKit::WebFileChooserCompletion* chooser_completion);
[email protected]6e24cf12011-03-18 19:57:02328 virtual void didStartLoading();
329 virtual void didStopLoading();
330 virtual void didChangeLoadProgress(WebKit::WebFrame* frame,
331 double load_progress);
332 virtual bool isSmartInsertDeleteEnabled();
333 virtual bool isSelectTrailingWhitespaceEnabled();
334 virtual void didChangeSelection(bool is_selection_empty);
335 virtual void didExecuteCommand(const WebKit::WebString& command_name);
336 virtual bool handleCurrentKeyboardEvent();
[email protected]6e24cf12011-03-18 19:57:02337 virtual bool runFileChooser(
338 const WebKit::WebFileChooserParams& params,
339 WebKit::WebFileChooserCompletion* chooser_completion);
340 virtual void runModalAlertDialog(WebKit::WebFrame* frame,
341 const WebKit::WebString& message);
342 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame,
343 const WebKit::WebString& message);
344 virtual bool runModalPromptDialog(WebKit::WebFrame* frame,
345 const WebKit::WebString& message,
346 const WebKit::WebString& default_value,
347 WebKit::WebString* actual_value);
348 virtual bool runModalBeforeUnloadDialog(WebKit::WebFrame* frame,
349 const WebKit::WebString& message);
350 virtual void showContextMenu(WebKit::WebFrame* frame,
351 const WebKit::WebContextMenuData& data);
[email protected]2b624c562011-10-27 22:58:26352 virtual void enterFullscreen();
353 virtual void exitFullscreen();
[email protected]6e24cf12011-03-18 19:57:02354 virtual void setStatusText(const WebKit::WebString& text);
355 virtual void setMouseOverURL(const WebKit::WebURL& url);
356 virtual void setKeyboardFocusURL(const WebKit::WebURL& url);
[email protected]6e24cf12011-03-18 19:57:02357 virtual void startDragging(const WebKit::WebDragData& data,
358 WebKit::WebDragOperationsMask mask,
359 const WebKit::WebImage& image,
360 const WebKit::WebPoint& imageOffset);
361 virtual bool acceptsLoadDrops();
362 virtual void focusNext();
363 virtual void focusPrevious();
364 virtual void focusedNodeChanged(const WebKit::WebNode& node);
365 virtual void navigateBackForwardSoon(int offset);
366 virtual int historyBackListCount();
367 virtual int historyForwardListCount();
368 virtual void postAccessibilityNotification(
369 const WebKit::WebAccessibilityObject& obj,
370 WebKit::WebAccessibilityNotification notification);
371 virtual void didUpdateInspectorSetting(const WebKit::WebString& key,
372 const WebKit::WebString& value);
373 virtual WebKit::WebGeolocationClient* geolocationClient();
374 virtual WebKit::WebSpeechInputController* speechInputController(
375 WebKit::WebSpeechInputListener* listener);
376 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient();
377 virtual void zoomLimitsChanged(double minimum_level, double maximum_level);
378 virtual void zoomLevelChanged();
379 virtual void registerProtocolHandler(const WebKit::WebString& scheme,
380 const WebKit::WebString& base_url,
381 const WebKit::WebString& url,
382 const WebKit::WebString& title);
[email protected]62af76e2011-08-01 02:34:01383 virtual void registerIntentHandler(const WebKit::WebString& action,
384 const WebKit::WebString& type,
385 const WebKit::WebString& href,
[email protected]63c239322011-10-31 23:56:30386 const WebKit::WebString& title,
387 const WebKit::WebString& disposition);
[email protected]94dec932011-05-26 20:04:21388 virtual WebKit::WebPageVisibilityState visibilityState() const;
[email protected]e235c7d02011-08-18 22:38:43389 virtual void startActivity(const WebKit::WebString& action,
390 const WebKit::WebString& type,
391 const WebKit::WebString& data,
392 int intent_id);
[email protected]6e24cf12011-03-18 19:57:02393
394 // WebKit::WebFrameClient implementation -------------------------------------
395
396 virtual WebKit::WebPlugin* createPlugin(
397 WebKit::WebFrame* frame,
398 const WebKit::WebPluginParams& params);
[email protected]6e24cf12011-03-18 19:57:02399 virtual WebKit::WebSharedWorker* createSharedWorker(
400 WebKit::WebFrame* frame, const WebKit::WebURL& url,
401 const WebKit::WebString& name, unsigned long long documentId);
402 virtual WebKit::WebMediaPlayer* createMediaPlayer(
403 WebKit::WebFrame* frame,
404 WebKit::WebMediaPlayerClient* client);
405 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(
406 WebKit::WebFrame* frame,
407 WebKit::WebApplicationCacheHostClient* client);
408 virtual WebKit::WebCookieJar* cookieJar(WebKit::WebFrame* frame);
409 virtual void frameDetached(WebKit::WebFrame* frame);
410 virtual void willClose(WebKit::WebFrame* frame);
[email protected]6e24cf12011-03-18 19:57:02411 virtual void loadURLExternally(WebKit::WebFrame* frame,
412 const WebKit::WebURLRequest& request,
413 WebKit::WebNavigationPolicy policy);
[email protected]0622875ab2011-07-27 12:10:34414 virtual void loadURLExternally(WebKit::WebFrame* frame,
415 const WebKit::WebURLRequest& request,
416 WebKit::WebNavigationPolicy policy,
417 const WebKit::WebString& suggested_name);
[email protected]6e24cf12011-03-18 19:57:02418 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation(
419 WebKit::WebFrame* frame,
420 const WebKit::WebURLRequest& request,
421 WebKit::WebNavigationType type,
422 const WebKit::WebNode&,
423 WebKit::WebNavigationPolicy default_policy,
424 bool is_redirect);
425 virtual bool canHandleRequest(WebKit::WebFrame* frame,
426 const WebKit::WebURLRequest& request);
427 virtual WebKit::WebURLError cannotHandleRequestError(
428 WebKit::WebFrame* frame,
429 const WebKit::WebURLRequest& request);
430 virtual WebKit::WebURLError cancelledError(
431 WebKit::WebFrame* frame,
432 const WebKit::WebURLRequest& request);
433 virtual void unableToImplementPolicyWithError(
434 WebKit::WebFrame* frame,
435 const WebKit::WebURLError& error);
436 virtual void willSendSubmitEvent(WebKit::WebFrame* frame,
437 const WebKit::WebFormElement& form);
438 virtual void willSubmitForm(WebKit::WebFrame* frame,
439 const WebKit::WebFormElement& form);
440 virtual void willPerformClientRedirect(WebKit::WebFrame* frame,
441 const WebKit::WebURL& from,
442 const WebKit::WebURL& to,
443 double interval,
444 double fire_time);
445 virtual void didCancelClientRedirect(WebKit::WebFrame* frame);
446 virtual void didCompleteClientRedirect(WebKit::WebFrame* frame,
447 const WebKit::WebURL& from);
448 virtual void didCreateDataSource(WebKit::WebFrame* frame,
449 WebKit::WebDataSource* datasource);
450 virtual void didStartProvisionalLoad(WebKit::WebFrame* frame);
451 virtual void didReceiveServerRedirectForProvisionalLoad(
452 WebKit::WebFrame* frame);
453 virtual void didFailProvisionalLoad(WebKit::WebFrame* frame,
454 const WebKit::WebURLError& error);
455 virtual void didReceiveDocumentData(WebKit::WebFrame* frame,
456 const char* data, size_t length,
457 bool& prevent_default);
458 virtual void didCommitProvisionalLoad(WebKit::WebFrame* frame,
459 bool is_new_navigation);
460 virtual void didClearWindowObject(WebKit::WebFrame* frame);
461 virtual void didCreateDocumentElement(WebKit::WebFrame* frame);
462 virtual void didReceiveTitle(WebKit::WebFrame* frame,
[email protected]a3bc4d12011-04-20 17:22:21463 const WebKit::WebString& title,
464 WebKit::WebTextDirection direction);
[email protected]42054a252011-05-17 18:02:13465 virtual void didChangeIcon(WebKit::WebFrame*,
466 WebKit::WebIconURL::Type) OVERRIDE;
[email protected]6e24cf12011-03-18 19:57:02467 virtual void didFinishDocumentLoad(WebKit::WebFrame* frame);
468 virtual void didHandleOnloadEvents(WebKit::WebFrame* frame);
469 virtual void didFailLoad(WebKit::WebFrame* frame,
470 const WebKit::WebURLError& error);
471 virtual void didFinishLoad(WebKit::WebFrame* frame);
472 virtual void didNavigateWithinPage(WebKit::WebFrame* frame,
473 bool is_new_navigation);
474 virtual void didUpdateCurrentHistoryItem(WebKit::WebFrame* frame);
475 virtual void assignIdentifierToRequest(WebKit::WebFrame* frame,
476 unsigned identifier,
477 const WebKit::WebURLRequest& request);
478 virtual void willSendRequest(WebKit::WebFrame* frame,
479 unsigned identifier,
480 WebKit::WebURLRequest& request,
481 const WebKit::WebURLResponse& redirect_response);
482 virtual void didReceiveResponse(WebKit::WebFrame* frame,
483 unsigned identifier,
484 const WebKit::WebURLResponse& response);
485 virtual void didFinishResourceLoad(WebKit::WebFrame* frame,
486 unsigned identifier);
487 virtual void didFailResourceLoad(WebKit::WebFrame* frame,
488 unsigned identifier,
489 const WebKit::WebURLError& error);
490 virtual void didLoadResourceFromMemoryCache(
491 WebKit::WebFrame* frame,
492 const WebKit::WebURLRequest& request,
493 const WebKit::WebURLResponse&);
494 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame);
495 virtual void didRunInsecureContent(
496 WebKit::WebFrame* frame,
497 const WebKit::WebSecurityOrigin& origin,
498 const WebKit::WebURL& target);
[email protected]b00ba702011-08-17 01:41:03499 virtual void didAdoptURLLoader(WebKit::WebURLLoader* loader);
[email protected]6e24cf12011-03-18 19:57:02500 virtual void didExhaustMemoryAvailableForScript(WebKit::WebFrame* frame);
[email protected]5bc10932011-09-21 21:03:30501 virtual void didCreateScriptContext(WebKit::WebFrame* frame,
502 v8::Handle<v8::Context>,
503 int world_id);
504 virtual void willReleaseScriptContext(WebKit::WebFrame* frame,
505 v8::Handle<v8::Context>,
506 int world_id);
[email protected]d812fd12011-05-27 23:05:07507 virtual void didUpdateLayout(WebKit::WebFrame* frame);
[email protected]6e24cf12011-03-18 19:57:02508 virtual void didChangeScrollOffset(WebKit::WebFrame* frame);
[email protected]dd6afca2011-08-13 03:44:31509 virtual void numberOfWheelEventHandlersChanged(unsigned num_handlers);
510 virtual void didChangeContentsSize(WebKit::WebFrame* frame,
511 const WebKit::WebSize& size);
[email protected]6e24cf12011-03-18 19:57:02512 virtual void reportFindInPageMatchCount(int request_id,
513 int count,
514 bool final_update);
515 virtual void reportFindInPageSelection(int request_id,
516 int active_match_ordinal,
517 const WebKit::WebRect& sel);
518
519 virtual void openFileSystem(WebKit::WebFrame* frame,
520 WebKit::WebFileSystem::Type type,
521 long long size,
522 bool create,
523 WebKit::WebFileSystemCallbacks* callbacks);
524
[email protected]10e5cf12011-04-13 04:10:40525 virtual void queryStorageUsageAndQuota(
526 WebKit::WebFrame* frame,
527 WebKit::WebStorageQuotaType type,
528 WebKit::WebStorageQuotaCallbacks* callbacks);
529
530 virtual void requestStorageQuota(
531 WebKit::WebFrame* frame,
532 WebKit::WebStorageQuotaType type,
533 unsigned long long requested_size,
534 WebKit::WebStorageQuotaCallbacks* callbacks);
535
[email protected]18d5be92011-07-25 18:00:19536 // WebKit::WebPageSerializerClient implementation ----------------------------
537
538 virtual void didSerializeDataForFrame(
539 const WebKit::WebURL& frame_url,
540 const WebKit::WebCString& data,
541 PageSerializationStatus status) OVERRIDE;
542
[email protected]a2ef54c2011-10-10 16:20:31543 // content::RenderView implementation ----------------------------------------
544
545 virtual bool Send(IPC::Message* message) OVERRIDE;
546 virtual int GetRoutingId() const OVERRIDE;
547 virtual int GetPageId() OVERRIDE;
548 virtual gfx::Size GetSize() OVERRIDE;
549 virtual gfx::NativeViewId GetHostWindow() OVERRIDE;
550 virtual WebPreferences& GetWebkitPreferences() OVERRIDE;
551 virtual WebKit::WebView* GetWebView() OVERRIDE;
552 virtual WebKit::WebNode GetFocusedNode() const OVERRIDE;
553 virtual WebKit::WebNode GetContextMenuNode() const OVERRIDE;
554 virtual bool IsEditableNode(const WebKit::WebNode& node) OVERRIDE;
555 virtual WebKit::WebPlugin* CreatePlugin(
556 WebKit::WebFrame* frame,
557 const webkit::WebPluginInfo& info,
558 const WebKit::WebPluginParams& params) OVERRIDE;
559 virtual void EvaluateScript(const string16& frame_xpath,
560 const string16& jscript,
561 int id,
562 bool notify_result) OVERRIDE;
563 virtual bool ShouldDisplayScrollbars(int width, int height) const OVERRIDE;
564 virtual int GetEnabledBindings() OVERRIDE;
565 virtual void SetEnabledBindings(int enabled_bindings) OVERRIDE;
566 virtual bool GetContentStateImmediately() OVERRIDE;
567 virtual float GetFilteredTimePerFrame() OVERRIDE;
568 virtual void ShowContextMenu(WebKit::WebFrame* frame,
569 const WebKit::WebContextMenuData& data) OVERRIDE;
570 virtual WebKit::WebPageVisibilityState GetVisibilityState() const OVERRIDE;
571 virtual void RunModalAlertDialog(WebKit::WebFrame* frame,
572 const WebKit::WebString& message) OVERRIDE;
573 virtual void LoadURLExternally(
574 WebKit::WebFrame* frame,
575 const WebKit::WebURLRequest& request,
576 WebKit::WebNavigationPolicy policy) OVERRIDE;
577
[email protected]6e24cf12011-03-18 19:57:02578 // webkit_glue::WebPluginPageDelegate implementation -------------------------
579
580 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate(
581 const FilePath& file_path,
[email protected]edc64de2011-11-17 20:07:38582 const std::string& mime_type) OVERRIDE;
583 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE;
584 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE;
585 virtual void DidMovePlugin(
586 const webkit::npapi::WebPluginGeometry& move) OVERRIDE;
587 virtual void DidStartLoadingForPlugin() OVERRIDE;
588 virtual void DidStopLoadingForPlugin() OVERRIDE;
589 virtual WebKit::WebCookieJar* GetCookieJar() OVERRIDE;
[email protected]6e24cf12011-03-18 19:57:02590
[email protected]a9288f52011-11-17 05:18:16591 // webkit_media::WebMediaPlayerDelegate implementation -----------------------
[email protected]baff4512011-10-19 18:21:07592
[email protected]a9288f52011-11-17 05:18:16593 virtual void DidPlay(webkit_media::WebMediaPlayerImpl* player) OVERRIDE;
594 virtual void DidPause(webkit_media::WebMediaPlayerImpl* player) OVERRIDE;
595 virtual void PlayerGone(webkit_media::WebMediaPlayerImpl* player) OVERRIDE;
[email protected]baff4512011-10-19 18:21:07596
[email protected]6e24cf12011-03-18 19:57:02597 // Please do not add your stuff randomly to the end here. If there is an
598 // appropriate section, add it there. If not, there are some random functions
599 // nearer to the top you can add it to.
[email protected]edc64de2011-11-17 20:07:38600 virtual void DidFlushPaint() OVERRIDE;
[email protected]6e24cf12011-03-18 19:57:02601
[email protected]38b592902011-04-16 02:08:42602 // Cannot use std::set unfortunately since linked_ptr<> does not support
603 // operator<.
604 typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> >
605 ImageResourceFetcherList;
606
[email protected]6e24cf12011-03-18 19:57:02607 protected:
608 // RenderWidget overrides:
[email protected]edc64de2011-11-17 20:07:38609 virtual void Close() OVERRIDE;
[email protected]6e24cf12011-03-18 19:57:02610 virtual void OnResize(const gfx::Size& new_size,
[email protected]ee41e7d22011-10-14 19:34:09611 const gfx::Rect& resizer_rect,
[email protected]edc64de2011-11-17 20:07:38612 bool is_fullscreen) OVERRIDE;
613 virtual void DidInitiatePaint() OVERRIDE;
[email protected]6e24cf12011-03-18 19:57:02614 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint(
615 const gfx::Rect& paint_bounds,
616 TransportDIB** dib,
617 gfx::Rect* location,
[email protected]edc64de2011-11-17 20:07:38618 gfx::Rect* clip) OVERRIDE;
619 virtual gfx::Point GetScrollOffset() OVERRIDE;
620 virtual void DidHandleKeyEvent() OVERRIDE;
[email protected]67bfb83f2011-09-22 03:36:37621 virtual bool WillHandleMouseEvent(
622 const WebKit::WebMouseEvent& event) OVERRIDE;
[email protected]edc64de2011-11-17 20:07:38623 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) OVERRIDE;
624 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) OVERRIDE;
625 virtual void OnSetFocus(bool enable) OVERRIDE;
626 virtual void OnWasHidden() OVERRIDE;
627 virtual void OnWasRestored(bool needs_repainting) OVERRIDE;
[email protected]65225772011-05-12 21:10:24628 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE;
[email protected]56ea1a62011-05-30 07:05:57629 virtual void OnImeSetComposition(
630 const string16& text,
631 const std::vector<WebKit::WebCompositionUnderline>& underlines,
632 int selection_start,
633 int selection_end) OVERRIDE;
[email protected]4de6d1692011-10-12 08:45:44634 virtual void OnImeConfirmComposition(
635 const string16& text, const ui::Range& replacement_range) OVERRIDE;
[email protected]ad26ef42011-06-17 07:59:45636 virtual ui::TextInputType GetTextInputType() OVERRIDE;
[email protected]3f783362011-10-21 22:40:50637 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) OVERRIDE;
[email protected]ad26ef42011-06-17 07:59:45638 virtual bool CanComposeInline() OVERRIDE;
[email protected]c3d45532011-10-07 19:20:40639 virtual bool WebWidgetHandlesCompositorScheduling() const OVERRIDE;
[email protected]6e24cf12011-03-18 19:57:02640
641 private:
[email protected]6e24cf12011-03-18 19:57:02642 // For unit tests.
643 friend class ExternalPopupMenuTest;
644 friend class PepperDeviceTest;
[email protected]c6d068ff2011-10-14 17:28:23645 friend class content::RenderViewTest;
[email protected]6e24cf12011-03-18 19:57:02646
647 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange);
648 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase);
649 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate);
[email protected]068970d2011-10-11 00:05:16650 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
651 DontIgnoreBackAfterNavEntryLimit);
652 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition);
653 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters);
654 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad);
655 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState);
656 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent);
657 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged);
658 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged);
659 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection);
660 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences);
661 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored);
662 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL);
[email protected]6e24cf12011-03-18 19:57:02663#if defined(OS_MACOSX)
664 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp);
665#endif
[email protected]068970d2011-10-11 00:05:16666 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndPrune);
[email protected]6e24cf12011-03-18 19:57:02667
[email protected]6e24cf12011-03-18 19:57:02668 typedef std::map<GURL, double> HostZoomLevels;
669
[email protected]6e24cf12011-03-18 19:57:02670 enum ErrorPageType {
671 DNS_ERROR,
672 HTTP_404,
673 CONNECTION_ERROR,
674 };
675
[email protected]310ebd6302011-10-10 19:06:28676 RenderViewImpl(gfx::NativeViewId parent_hwnd,
677 int32 opener_id,
[email protected]daf82f82011-10-31 22:35:31678 const content::RendererPreferences& renderer_prefs,
[email protected]310ebd6302011-10-10 19:06:28679 const WebPreferences& webkit_prefs,
680 SharedRenderViewCounter* counter,
681 int32 routing_id,
682 int64 session_storage_namespace_id,
683 const string16& frame_name);
[email protected]6e24cf12011-03-18 19:57:02684
685 // Do not delete directly. This class is reference counted.
[email protected]310ebd6302011-10-10 19:06:28686 virtual ~RenderViewImpl();
[email protected]6e24cf12011-03-18 19:57:02687
688 void UpdateURL(WebKit::WebFrame* frame);
[email protected]a49e10b2011-08-01 23:57:46689 void UpdateTitle(WebKit::WebFrame* frame, const string16& title,
690 WebKit::WebTextDirection title_direction);
[email protected]6e24cf12011-03-18 19:57:02691 void UpdateSessionHistory(WebKit::WebFrame* frame);
692
693 // Update current main frame's encoding and send it to browser window.
694 // Since we want to let users see the right encoding info from menu
695 // before finishing loading, we call the UpdateEncoding in
696 // a) function:DidCommitLoadForFrame. When this function is called,
697 // that means we have got first data. In here we try to get encoding
698 // of page if it has been specified in http header.
699 // b) function:DidReceiveTitle. When this function is called,
700 // that means we have got specified title. Because in most of webpages,
701 // title tags will follow meta tags. In here we try to get encoding of
702 // page if it has been specified in meta tag.
703 // c) function:DidFinishDocumentLoadForFrame. When this function is
704 // called, that means we have got whole html page. In here we should
705 // finally get right encoding of page.
706 void UpdateEncoding(WebKit::WebFrame* frame,
707 const std::string& encoding_name);
708
[email protected]ae5184d62011-10-06 19:25:58709 void OpenURL(WebKit::WebFrame* frame,
710 const GURL& url,
711 const GURL& referrer,
[email protected]6e24cf12011-03-18 19:57:02712 WebKit::WebNavigationPolicy policy);
713
[email protected]6e24cf12011-03-18 19:57:02714 bool RunJavaScriptMessage(int type,
[email protected]4f5ce842011-05-27 19:34:41715 const string16& message,
716 const string16& default_value,
[email protected]6e24cf12011-03-18 19:57:02717 const GURL& frame_url,
[email protected]4f5ce842011-05-27 19:34:41718 string16* result);
[email protected]6e24cf12011-03-18 19:57:02719
720 // Sends a message and runs a nested message loop.
721 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message);
722
[email protected]dd6afca2011-08-13 03:44:31723 // Called when the "pinned to left/right edge" state needs to be updated.
724 void UpdateScrollState(WebKit::WebFrame* frame);
725
[email protected]6e24cf12011-03-18 19:57:02726 // IPC message handlers ------------------------------------------------------
727 //
728 // The documentation for these functions should be in
729 // render_messages_internal.h for the message that the function is handling.
730
[email protected]6e24cf12011-03-18 19:57:02731 void OnAllowBindings(int enabled_bindings_flags);
[email protected]6e24cf12011-03-18 19:57:02732 void OnAllowScriptToClose(bool script_can_close);
733 void OnAsyncFileOpened(base::PlatformFileError error_code,
734 IPC::PlatformFileForTransit file_for_transit,
735 int message_id);
[email protected]eb415bf0e2011-04-14 02:45:42736 void OnPpapiBrokerChannelCreated(int request_id,
[email protected]2b657fd2011-04-18 16:00:47737 base::ProcessHandle broker_process_handle,
[email protected]d54305072011-06-22 20:58:43738 const IPC::ChannelHandle& handle);
[email protected]6e24cf12011-03-18 19:57:02739 void OnCancelDownload(int32 download_id);
740 void OnClearFocusedNode();
[email protected]992db4c2011-05-12 15:37:15741 void OnClosePage();
[email protected]6e24cf12011-03-18 19:57:02742#if defined(ENABLE_FLAPPER_HACKS)
743 void OnConnectTcpACK(int request_id,
744 IPC::PlatformFileForTransit socket_for_transit,
[email protected]5a2b68f2011-11-10 00:00:49745 const PP_NetAddress_Private& local_addr,
746 const PP_NetAddress_Private& remote_addr);
[email protected]6e24cf12011-03-18 19:57:02747#endif
748 void OnContextMenuClosed(
749 const webkit_glue::CustomContextMenuContext& custom_context);
750 void OnCopy();
751 void OnCopyImageAt(int x, int y);
752#if defined(OS_MACOSX)
753 void OnCopyToFindPboard();
754#endif
755 void OnCut();
[email protected]318bf5802011-08-08 17:12:41756 void OnCSSInsertRequest(const string16& frame_xpath,
[email protected]01cf589c2011-07-28 18:04:03757 const std::string& css);
[email protected]6e24cf12011-03-18 19:57:02758 void OnCustomContextMenuAction(
759 const webkit_glue::CustomContextMenuContext& custom_context,
760 unsigned action);
761 void OnDelete();
762 void OnDeterminePageLanguage();
763 void OnDisableScrollbarsForSmallWindows(
764 const gfx::Size& disable_scrollbars_size_limit);
765 void OnDisassociateFromPopupCount();
[email protected]6e24cf12011-03-18 19:57:02766 void OnDragSourceEndedOrMoved(const gfx::Point& client_point,
767 const gfx::Point& screen_point,
768 bool ended,
769 WebKit::WebDragOperation drag_operation);
770 void OnDragSourceSystemDragEnded();
771 void OnDragTargetDrop(const gfx::Point& client_pt,
772 const gfx::Point& screen_pt);
773 void OnDragTargetDragEnter(const WebDropData& drop_data,
774 const gfx::Point& client_pt,
775 const gfx::Point& screen_pt,
776 WebKit::WebDragOperationsMask operations_allowed);
777 void OnDragTargetDragLeave();
778 void OnDragTargetDragOver(const gfx::Point& client_pt,
779 const gfx::Point& screen_pt,
780 WebKit::WebDragOperationsMask operations_allowed);
[email protected]2bf834f2011-11-17 20:02:21781 void OnEnablePreferredSizeChangedMode();
[email protected]600ea402011-04-12 00:01:51782 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths);
[email protected]6e24cf12011-03-18 19:57:02783 void OnExecuteEditCommand(const std::string& name, const std::string& value);
[email protected]6e24cf12011-03-18 19:57:02784 void OnFileChooserResponse(const std::vector<FilePath>& paths);
785 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&);
786 void OnFindReplyAck();
[email protected]18d5be92011-07-25 18:00:19787 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url);
788 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks(
789 const std::vector<GURL>& links,
790 const std::vector<FilePath>& local_paths,
791 const FilePath& local_directory_name);
[email protected]67bfb83f2011-09-22 03:36:37792 void OnLockMouseACK(bool succeeded);
[email protected]6e24cf12011-03-18 19:57:02793 void OnMediaPlayerActionAt(const gfx::Point& location,
794 const WebKit::WebMediaPlayerAction& action);
[email protected]67bfb83f2011-09-22 03:36:37795 void OnMouseLockLost();
[email protected]6e24cf12011-03-18 19:57:02796 void OnMoveOrResizeStarted();
[email protected]f3112a52011-09-30 23:47:49797 CONTENT_EXPORT void OnNavigate(const ViewMsg_Navigate_Params& params);
[email protected]6e24cf12011-03-18 19:57:02798 void OnPaste();
[email protected]44bf7002011-10-16 02:46:15799 void OnPasteAndMatchStyle();
[email protected]6e24cf12011-03-18 19:57:02800#if defined(OS_MACOSX)
801 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id);
802#endif
803 void OnRedo();
804 void OnReloadFrame();
805 void OnReplace(const string16& text);
806 void OnReservePageIDRange(int size_of_range);
807 void OnResetPageEncodingToDefault();
808 void OnScriptEvalRequest(const string16& frame_xpath,
809 const string16& jscript,
810 int id,
811 bool notify_result);
812 void OnSelectAll();
[email protected]4fb60142011-08-09 02:22:08813 void OnSelectRange(const gfx::Point& start, const gfx::Point& end);
[email protected]6e24cf12011-03-18 19:57:02814 void OnSetActive(bool active);
815 void OnSetAltErrorPageURL(const GURL& gurl);
816 void OnSetBackground(const SkBitmap& background);
[email protected]6e24cf12011-03-18 19:57:02817 void OnSetWebUIProperty(const std::string& name, const std::string& value);
818 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands);
[email protected]f3112a52011-09-30 23:47:49819 CONTENT_EXPORT void OnSetHistoryLengthAndPrune(int history_length,
820 int32 minimum_page_id);
[email protected]6e24cf12011-03-18 19:57:02821 void OnSetInitialFocus(bool reverse);
[email protected]54ca3ca892011-06-07 21:14:54822#if defined(OS_MACOSX)
823 void OnSetInLiveResize(bool in_live_resize);
824#endif
[email protected]333ec8d02011-09-16 18:59:19825 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect);
[email protected]6e24cf12011-03-18 19:57:02826 void OnSetPageEncoding(const std::string& encoding_name);
[email protected]daf82f82011-10-31 22:35:31827 void OnSetRendererPrefs(const content::RendererPreferences& renderer_prefs);
[email protected]6e24cf12011-03-18 19:57:02828#if defined(OS_MACOSX)
829 void OnSetWindowVisibility(bool visible);
830#endif
831 void OnSetZoomLevel(double zoom_level);
832 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level);
[email protected]8a5e0ca2011-08-25 06:30:47833 void OnExitFullscreen();
[email protected]6e24cf12011-03-18 19:57:02834 void OnShouldClose();
835 void OnStop();
[email protected]815dd9872011-11-23 18:40:30836 void OnStopFinding(content::StopFindAction action);
[email protected]992db4c2011-05-12 15:37:15837 void OnSwapOut(const ViewMsg_SwapOut_Params& params);
[email protected]6e24cf12011-03-18 19:57:02838 void OnThemeChanged();
[email protected]6e24cf12011-03-18 19:57:02839 void OnUndo();
[email protected]6e24cf12011-03-18 19:57:02840 void OnUpdateTargetURLAck();
841 void OnUpdateWebPreferences(const WebPreferences& prefs);
[email protected]08bb1e722011-07-30 19:13:04842
[email protected]6e24cf12011-03-18 19:57:02843#if defined(OS_MACOSX)
844 void OnWindowFrameChanged(const gfx::Rect& window_frame,
845 const gfx::Rect& view_frame);
846 void OnSelectPopupMenuItem(int selected_index);
847#endif
[email protected]54087fe2011-10-28 22:02:48848 void OnZoom(content::PageZoom zoom);
[email protected]47578fa02011-11-02 19:34:41849 void OnZoomFactor(content::PageZoom zoom, int zoom_center_x,
850 int zoom_center_y);
851
[email protected]5a7b15a2011-08-22 22:48:18852 void OnEnableViewSourceMode();
[email protected]6e24cf12011-03-18 19:57:02853
[email protected]7f3c7af2011-10-20 22:52:51854 void OnJavaBridgeInit(const IPC::ChannelHandle& channel_handle);
855
[email protected]6e24cf12011-03-18 19:57:02856 // Adding a new message handler? Please add it in alphabetical order above
857 // and put it in the same position in the .cc file.
858
859 // Misc private functions ----------------------------------------------------
[email protected]47578fa02011-11-02 19:34:41860 void ZoomFactorHelper(content::PageZoom zoom, int zoom_center_x,
861 int zoom_center_y, float scaling_increment);
[email protected]6e24cf12011-03-18 19:57:02862
[email protected]6e24cf12011-03-18 19:57:02863 void AltErrorPageFinished(WebKit::WebFrame* frame,
864 const WebKit::WebURLError& original_error,
865 const std::string& html);
866
[email protected]d812fd12011-05-27 23:05:07867 // Check whether the preferred size has changed.
[email protected]6e24cf12011-03-18 19:57:02868 void CheckPreferredSize();
869
[email protected]5e56df82011-04-18 17:00:15870 // This callback is triggered when DownloadFavicon completes, either
871 // succesfully or with a failure. See DownloadFavicon for more
872 // details.
873 void DidDownloadFavicon(webkit_glue::ImageResourceFetcher* fetcher,
874 const SkBitmap& image);
[email protected]6e24cf12011-03-18 19:57:02875
[email protected]310ebd6302011-10-10 19:06:28876 // Requests to download a favicon image. When done, the RenderView is notified
877 // by way of DidDownloadFavicon. Returns true if the request was successfully
878 // started, false otherwise. id is used to uniquely identify the request and
879 // passed back to the DidDownloadFavicon method. If the image has multiple
880 // frames, the frame whose size is image_size is returned. If the image
881 // doesn't have a frame at the specified size, the first is returned.
[email protected]5e56df82011-04-18 17:00:15882 bool DownloadFavicon(int id, const GURL& image_url, int image_size);
[email protected]6e24cf12011-03-18 19:57:02883
[email protected]6e24cf12011-03-18 19:57:02884 GURL GetAlternateErrorPageURL(const GURL& failed_url,
885 ErrorPageType error_type);
886
887 // Locates a sub frame with given xpath
[email protected]318bf5802011-08-08 17:12:41888 WebKit::WebFrame* GetChildFrame(const string16& frame_xpath) const;
[email protected]6e24cf12011-03-18 19:57:02889
[email protected]57b9396c2011-10-07 19:11:59890 // Returns the opener url if present, else an empty url.
891 GURL GetOpenerUrl() const;
892
[email protected]6e24cf12011-03-18 19:57:02893 WebUIBindings* GetWebUIBindings();
894
[email protected]6e24cf12011-03-18 19:57:02895 // Should only be called if this object wraps a PluginDocument.
896 WebKit::WebPlugin* GetWebPluginFromPluginDocument();
897
[email protected]d466b8a2011-07-15 21:48:03898 // Returns true if the |params| navigation is to an entry that has been
899 // cropped due to a recent navigation the browser did not know about.
900 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params,
901 bool is_reload);
902
[email protected]6e24cf12011-03-18 19:57:02903 // Returns false unless this is a top-level navigation that crosses origins.
904 bool IsNonLocalTopLevelNavigation(const GURL& url,
905 WebKit::WebFrame* frame,
906 WebKit::WebNavigationType type);
907
[email protected]6e24cf12011-03-18 19:57:02908 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame,
909 const WebKit::WebURLError& error,
910 bool replace);
911
[email protected]007733c2011-11-17 00:34:07912 // If we initiated a navigation, this function will populate |document_state|
913 // with the navigation information saved in OnNavigate().
914 void PopulateStateFromPendingNavigationParams(
915 content::DocumentState* document_state);
916
[email protected]6e24cf12011-03-18 19:57:02917 // Starts nav_state_sync_timer_ if it isn't already running.
918 void StartNavStateSyncTimerIfNecessary();
919
920 // Dispatches the current navigation state to the browser. Called on a
921 // periodic timer so we don't send too many messages.
922 void SyncNavigationState();
923
[email protected]b781ff282011-08-20 06:19:36924 // Dispatches the current state of selection on the webpage to the browser if
925 // it has changed.
926 // TODO(varunjain): delete this method once we figure out how to keep
927 // selection handles in sync with the webpage.
928 void SyncSelectionIfRequired();
929
[email protected]e63c4d72011-05-31 22:38:29930#if defined(OS_POSIX) && !defined(OS_MACOSX)
[email protected]6e24cf12011-03-18 19:57:02931 void UpdateFontRenderingFromRendererPrefs();
932#else
933 void UpdateFontRenderingFromRendererPrefs() {}
934#endif
935
936 // Update the target url and tell the browser that the target URL has changed.
937 // If |url| is empty, show |fallback_url|.
938 void UpdateTargetURL(const GURL& url, const GURL& fallback_url);
939
[email protected]6e24cf12011-03-18 19:57:02940 // ---------------------------------------------------------------------------
941 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put
942 // it in the same order in the .cc file as it was in the header.
943 // ---------------------------------------------------------------------------
944
945 // Settings ------------------------------------------------------------------
946
947 WebPreferences webkit_preferences_;
[email protected]daf82f82011-10-31 22:35:31948 content::RendererPreferences renderer_preferences_;
[email protected]6e24cf12011-03-18 19:57:02949
[email protected]6e24cf12011-03-18 19:57:02950 HostZoomLevels host_zoom_levels_;
951
952 // Whether content state (such as form state, scroll position and page
953 // contents) should be sent to the browser immediately. This is normally
954 // false, but set to true by some tests.
955 bool send_content_state_immediately_;
956
[email protected]6e24cf12011-03-18 19:57:02957 // Bitwise-ORed set of extra bindings that have been enabled. See
958 // BindingsPolicy for details.
959 int enabled_bindings_;
960
961 // The alternate error page URL, if one exists.
962 GURL alternate_error_page_url_;
963
964 // If true, we send IPC messages when |preferred_size_| changes.
965 bool send_preferred_size_changes_;
966
967 // If non-empty, and |send_preferred_size_changes_| is true, disable drawing
968 // scroll bars on windows smaller than this size. Used for windows that the
969 // browser resizes to the size of the content, such as browser action popups.
970 // If a render view is set to the minimum size of its content, webkit may add
971 // scroll bars. This makes sense for fixed sized windows, but it does not
972 // make sense when the size of the view was chosen to fit the content.
973 // This setting ensures that no scroll bars are drawn. The size limit exists
974 // because if the view grows beyond a size known to the browser, scroll bars
975 // should be drawn.
976 gfx::Size disable_scrollbars_size_limit_;
977
[email protected]6e24cf12011-03-18 19:57:02978 // Loading state -------------------------------------------------------------
979
980 // True if the top level frame is currently being loaded.
981 bool is_loading_;
982
983 // The gesture that initiated the current navigation.
984 NavigationGesture navigation_gesture_;
985
986 // Used for popups.
987 bool opened_by_user_gesture_;
988 GURL creator_url_;
989
990 // Whether this RenderView was created by a frame that was suppressing its
991 // opener. If so, we may want to load pages in a separate process. See
992 // decidePolicyForNavigation for details.
993 bool opener_suppressed_;
994
995 // If we are handling a top-level client-side redirect, this tracks the URL
996 // of the page that initiated it. Specifically, when a load is committed this
997 // is used to determine if that load originated from a client-side redirect.
998 // It is empty if there is no top-level client-side redirect.
999 GURL completed_client_redirect_src_;
1000
[email protected]6e24cf12011-03-18 19:57:021001 // Holds state pertaining to a navigation that we initiated. This is held by
1002 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_
1003 // as a temporary holder for the state until the WebDataSource corresponding
1004 // to the new navigation is created. See DidCreateDataSource.
[email protected]007733c2011-11-17 00:34:071005 scoped_ptr<ViewMsg_Navigate_Params> pending_navigation_params_;
[email protected]6e24cf12011-03-18 19:57:021006
1007 // Timer used to delay the updating of nav state (see SyncNavigationState).
[email protected]310ebd6302011-10-10 19:06:281008 base::OneShotTimer<RenderViewImpl> nav_state_sync_timer_;
[email protected]6e24cf12011-03-18 19:57:021009
[email protected]6e24cf12011-03-18 19:57:021010 // Page IDs ------------------------------------------------------------------
[email protected]a813c8e2011-10-08 01:34:111011 // See documentation in content::RenderView.
[email protected]6e24cf12011-03-18 19:57:021012 int32 page_id_;
1013
1014 // Indicates the ID of the last page that we sent a FrameNavigate to the
1015 // browser for. This is used to determine if the most recent transition
1016 // generated a history entry (less than page_id_), or not (equal to or
1017 // greater than). Note that this will be greater than page_id_ if the user
1018 // goes back.
1019 int32 last_page_id_sent_to_browser_;
1020
[email protected]6e24cf12011-03-18 19:57:021021 // The next available page ID to use. This ensures that the page IDs are
1022 // globally unique in the renderer.
1023 static int32 next_page_id_;
1024
[email protected]d466b8a2011-07-15 21:48:031025 // The offset of the current item in the history list.
1026 int history_list_offset_;
1027
1028 // The RenderView's current impression of the history length. This includes
1029 // any items that have committed in this process, but because of cross-process
1030 // navigations, the history may have some entries that were committed in other
1031 // processes. We won't know about them until the next navigation in this
1032 // process.
1033 int history_list_length_;
1034
1035 // The list of page IDs for each history item this RenderView knows about.
1036 // Some entries may be -1 if they were rendered by other processes or were
1037 // restored from a previous session. This lets us detect attempts to
1038 // navigate to stale entries that have been cropped from our history.
1039 std::vector<int32> history_page_ids_;
1040
[email protected]6e24cf12011-03-18 19:57:021041 // Page info -----------------------------------------------------------------
1042
1043 // The last gotten main frame's encoding.
1044 std::string last_encoding_name_;
1045
[email protected]6e24cf12011-03-18 19:57:021046 // UI state ------------------------------------------------------------------
1047
1048 // The state of our target_url transmissions. When we receive a request to
1049 // send a URL to the browser, we set this to TARGET_INFLIGHT until an ACK
1050 // comes back - if a new request comes in before the ACK, we store the new
1051 // URL in pending_target_url_ and set the status to TARGET_PENDING. If an
1052 // ACK comes back and we are in TARGET_PENDING, we send the stored URL and
1053 // revert to TARGET_INFLIGHT.
1054 //
1055 // We don't need a queue of URLs to send, as only the latest is useful.
1056 enum {
1057 TARGET_NONE,
1058 TARGET_INFLIGHT, // We have a request in-flight, waiting for an ACK
1059 TARGET_PENDING // INFLIGHT + we have a URL waiting to be sent
1060 } target_url_status_;
1061
1062 // The URL we show the user in the status bar. We use this to determine if we
1063 // want to send a new one (we do not need to send duplicates). It will be
1064 // equal to either |mouse_over_url_| or |focus_url_|, depending on which was
1065 // updated last.
1066 GURL target_url_;
1067
1068 // The URL the user's mouse is hovering over.
1069 GURL mouse_over_url_;
1070
1071 // The URL that has keyboard focus.
1072 GURL focus_url_;
1073
1074 // The next target URL we want to send to the browser.
1075 GURL pending_target_url_;
1076
[email protected]6e24cf12011-03-18 19:57:021077 // The text selection the last time DidChangeSelection got called.
[email protected]e99ef6f2011-10-16 01:13:001078 string16 selection_text_;
1079 size_t selection_text_offset_;
1080 ui::Range selection_range_;
[email protected]6e24cf12011-03-18 19:57:021081
1082 // View ----------------------------------------------------------------------
1083
[email protected]6e24cf12011-03-18 19:57:021084 // Cache the preferred size of the page in order to prevent sending the IPC
1085 // when layout() recomputes but doesn't actually change sizes.
1086 gfx::Size preferred_size_;
1087
[email protected]1e0c8e02011-05-25 07:49:371088 // Used to delay determining the preferred size (to avoid intermediate
1089 // states for the sizes).
[email protected]310ebd6302011-10-10 19:06:281090 base::OneShotTimer<RenderViewImpl> check_preferred_size_timer_;
[email protected]1e0c8e02011-05-25 07:49:371091
[email protected]dd6afca2011-08-13 03:44:311092 // These store the "is main frame is scrolled all the way to the left
1093 // or right" state that was last sent to the browser.
1094 bool cached_is_main_frame_pinned_to_left_;
1095 bool cached_is_main_frame_pinned_to_right_;
1096
1097 // These store the "has scrollbars" state last sent to the browser.
1098 bool cached_has_main_frame_horizontal_scrollbar_;
1099 bool cached_has_main_frame_vertical_scrollbar_;
1100
[email protected]6e24cf12011-03-18 19:57:021101#if defined(OS_MACOSX)
1102 // Track the fake plugin window handles allocated on the browser side for
1103 // the accelerated compositor and (currently) accelerated plugins so that
1104 // we can discard them when the view goes away.
1105 std::set<gfx::PluginWindowHandle> fake_plugin_window_handles_;
1106#endif
1107
1108 // Plugins -------------------------------------------------------------------
1109
[email protected]6e24cf12011-03-18 19:57:021110 PepperPluginDelegateImpl pepper_delegate_;
1111
[email protected]310ebd6302011-10-10 19:06:281112 // All the currently active plugin delegates for this RenderView; kept so
1113 // that we can enumerate them to send updates about things like window
1114 // location or tab focus and visibily. These are non-owning references.
[email protected]6e24cf12011-03-18 19:57:021115 std::set<WebPluginDelegateProxy*> plugin_delegates_;
1116
[email protected]e6ae0f6c2011-10-04 10:39:231117#if defined(OS_WIN)
1118 // The ID of the focused NPAPI plug-in.
1119 int focused_plugin_id_;
1120#endif
1121
[email protected]6e24cf12011-03-18 19:57:021122 // Helper objects ------------------------------------------------------------
1123
[email protected]6e24cf12011-03-18 19:57:021124 RendererWebCookieJarImpl cookie_jar_;
1125
1126 // The next group of objects all implement RenderViewObserver, so are deleted
[email protected]310ebd6302011-10-10 19:06:281127 // along with the RenderView automatically. This is why we just store
1128 // weak references.
[email protected]6e24cf12011-03-18 19:57:021129
[email protected]6e24cf12011-03-18 19:57:021130 // Holds a reference to the service which provides desktop notifications.
1131 NotificationProvider* notification_provider_;
1132
1133 // The geolocation dispatcher attached to this view, lazily initialized.
1134 GeolocationDispatcher* geolocation_dispatcher_;
1135
[email protected]1ef93132011-09-16 18:33:471136 // The intents dispatcher attached to this view. Not lazily initialized.
1137 IntentsDispatcher* intents_dispatcher_;
1138
[email protected]6e24cf12011-03-18 19:57:021139 // The speech dispatcher attached to this view, lazily initialized.
1140 SpeechInputDispatcher* speech_input_dispatcher_;
1141
1142 // Device orientation dispatcher attached to this view; lazily initialized.
1143 DeviceOrientationDispatcher* device_orientation_dispatcher_;
1144
[email protected]ab2c4732011-07-20 19:57:401145 // MediaStreamImpl attached to this view; lazily initialized.
1146 scoped_refptr<MediaStreamImpl> media_stream_impl_;
1147
[email protected]6e24cf12011-03-18 19:57:021148 // Dispatches all P2P socket used by the renderer.
[email protected]b3f8f9722011-08-25 20:56:071149 content::P2PSocketDispatcher* p2p_socket_dispatcher_;
[email protected]6e24cf12011-03-18 19:57:021150
[email protected]c5c1d6d2011-07-28 18:42:411151 DevToolsAgent* devtools_agent_;
1152
[email protected]063afcb2011-09-29 07:54:321153 RendererAccessibility* renderer_accessibility_;
1154
[email protected]7f3c7af2011-10-20 22:52:511155 // Java Bridge dispatcher attached to this view; lazily initialized.
1156 scoped_ptr<JavaBridgeDispatcher> java_bridge_dispatcher_;
1157
[email protected]6e24cf12011-03-18 19:57:021158 // Misc ----------------------------------------------------------------------
1159
1160 // The current and pending file chooser completion objects. If the queue is
1161 // nonempty, the first item represents the currently running file chooser
1162 // callback, and the remaining elements are the other file chooser completion
1163 // still waiting to be run (in order).
1164 struct PendingFileChooser;
1165 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_;
1166
[email protected]600ea402011-04-12 00:01:511167 // The current directory enumeration callback
1168 std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_;
1169 int enumeration_completion_id_;
1170
[email protected]6e24cf12011-03-18 19:57:021171 // The SessionStorage namespace that we're assigned to has an ID, and that ID
1172 // is passed to us upon creation. WebKit asks for this ID upon first use and
1173 // uses it whenever asking the browser process to allocate new storage areas.
1174 int64 session_storage_namespace_id_;
1175
1176 // The total number of unrequested popups that exist and can be followed back
[email protected]310ebd6302011-10-10 19:06:281177 // to a common opener. This count is shared among all RenderViews created with
1178 // createView(). All popups are treated as unrequested until specifically
1179 // instructed otherwise by the Browser process.
[email protected]6e24cf12011-03-18 19:57:021180 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_;
1181
1182 // Whether this is a top level window (instead of a popup). Top level windows
1183 // shouldn't count against their own |shared_popup_counter_|.
1184 bool decrement_shared_popup_at_destruction_;
1185
1186 // If the browser hasn't sent us an ACK for the last FindReply we sent
1187 // to it, then we need to queue up the message (keeping only the most
1188 // recent message if new ones come in).
1189 scoped_ptr<IPC::Message> queued_find_reply_message_;
1190
1191 // Stores edit commands associated to the next key event.
1192 // Shall be cleared as soon as the next key event is processed.
1193 EditCommands edit_commands_;
1194
[email protected]6e24cf12011-03-18 19:57:021195 // Allows Web UI pages (new tab page, etc.) to talk to the browser. The JS
1196 // object is only exposed when Web UI bindings are enabled.
1197 scoped_ptr<WebUIBindings> web_ui_bindings_;
1198
[email protected]6e24cf12011-03-18 19:57:021199 // The external popup for the currently showing select popup.
1200 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
1201
1202 // The node that the context menu was pressed over.
1203 WebKit::WebNode context_menu_node_;
1204
1205 // Reports load progress to the browser.
1206 scoped_ptr<LoadProgressTracker> load_progress_tracker_;
1207
1208 // All the registered observers. We expect this list to be small, so vector
1209 // is fine.
[email protected]3a034ebb2011-10-03 19:19:441210 ObserverList<content::RenderViewObserver> observers_;
[email protected]6e24cf12011-03-18 19:57:021211
[email protected]4fb60142011-08-09 02:22:081212 // Used to inform didChangeSelection() when it is called in the context
1213 // of handling a ViewMsg_SelectRange IPC.
1214 bool handling_select_range_;
1215
[email protected]6e24cf12011-03-18 19:57:021216 // ---------------------------------------------------------------------------
1217 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1218 // sections rather than throwing it randomly at the end. If you're adding a
1219 // bunch of stuff, you should probably create a helper class and put your
[email protected]310ebd6302011-10-10 19:06:281220 // data and methods on that to avoid bloating RenderView more. You can
1221 // use the Observer interface to filter IPC messages and receive frame change
[email protected]6e24cf12011-03-18 19:57:021222 // notifications.
1223 // ---------------------------------------------------------------------------
1224
[email protected]310ebd6302011-10-10 19:06:281225 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
[email protected]6e24cf12011-03-18 19:57:021226};
1227
[email protected]310ebd6302011-10-10 19:06:281228#endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_