blob: e4f86f56cea446c7fe5635b875d2678d0c691373 [file] [log] [blame]
[email protected]91854cd2012-01-10 19:43:571// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]0dd3a0ab2011-02-18 08:17:442// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]93ddb3c2012-04-11 21:44:295#ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6#define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
[email protected]0dd3a0ab2011-02-18 08:17:447#pragma once
8
[email protected]0dd3a0ab2011-02-18 08:17:449#include <map>
10#include <string>
[email protected]0dd3a0ab2011-02-18 08:17:4411
[email protected]01d65172011-12-25 04:39:3012#include "base/compiler_specific.h"
[email protected]0dd3a0ab2011-02-18 08:17:4413#include "base/gtest_prod_util.h"
[email protected]3b63f8f42011-03-28 01:54:1514#include "base/memory/scoped_ptr.h"
[email protected]6eac57a2011-07-12 21:15:0915#include "base/observer_list.h"
[email protected]45644f62011-11-23 00:58:2316#include "base/property_bag.h"
[email protected]8dd709fb2012-04-06 00:49:0617#include "content/browser/browser_plugin/browser_plugin_web_contents_observer.h"
[email protected]07161902011-11-11 09:57:4218#include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h"
[email protected]f9e4dae2012-04-10 21:26:3719#include "content/browser/web_contents/navigation_controller_impl.h"
[email protected]0c4e92e62012-04-11 15:19:0020#include "content/browser/web_contents/render_view_host_manager.h"
[email protected]8d128d62011-09-13 22:11:5721#include "content/common/content_export.h"
[email protected]b0b67cf2012-01-18 21:59:5722#include "content/public/browser/render_view_host_delegate.h"
[email protected]58f5d562011-12-20 17:13:0323#include "content/public/browser/web_contents.h"
[email protected]daf82f82011-10-31 22:35:3124#include "content/public/common/renderer_preferences.h"
[email protected]0dd3a0ab2011-02-18 08:17:4425#include "net/base/load_states.h"
[email protected]bcd2815602012-01-14 18:17:2326#include "ui/gfx/size.h"
[email protected]70435962011-08-02 20:13:2827#include "webkit/glue/resource_type.h"
[email protected]0dd3a0ab2011-02-18 08:17:4428
29#if defined(OS_WIN)
30#include "base/win/scoped_handle.h"
31#endif
32
[email protected]cadaec52012-02-08 21:53:1333class InterstitialPageImpl;
[email protected]a53209b2012-01-20 16:48:1634class SavePackage;
[email protected]adbfb8df2012-02-24 01:19:4335class SessionStorageNamespaceImpl;
[email protected]d7b175e2011-10-11 15:31:5836struct ViewHostMsg_DidFailProvisionalLoadWithError_Params;
[email protected]daf82f82011-10-31 22:35:3137
[email protected]e582fdd2011-12-20 16:48:1738namespace content {
[email protected]da8543762012-03-20 08:52:2039class ColorChooser;
[email protected]e582fdd2011-12-20 16:48:1740class DownloadItem;
[email protected]51da7e32012-01-30 19:24:5241class JavaScriptDialogCreator;
[email protected]eaabba22012-03-07 15:02:1142class RenderViewHost;
43class RenderViewHostImpl;
[email protected]09d31d52012-03-11 22:30:2744class SiteInstance;
[email protected]80e776ae2012-03-23 16:17:2045class TestWebContents;
[email protected]674bc592011-12-20 23:00:4246class WebContentsDelegate;
[email protected]51da7e32012-01-30 19:24:5247class WebContentsObserver;
[email protected]8643e6d2012-01-18 20:26:1048class WebContentsView;
[email protected]09d31d52012-03-11 22:30:2749struct LoadNotificationDetails;
[email protected]e582fdd2011-12-20 16:48:1750}
51
[email protected]daf82f82011-10-31 22:35:3152namespace webkit_glue {
53struct WebIntentData;
54}
[email protected]0dd3a0ab2011-02-18 08:17:4455
[email protected]b172aee2012-04-10 17:05:2656class CONTENT_EXPORT WebContentsImpl
[email protected]01d65172011-12-25 04:39:3057 : public NON_EXPORTED_BASE(content::WebContents),
[email protected]b0b67cf2012-01-18 21:59:5758 public content::RenderViewHostDelegate,
[email protected]51da7e32012-01-30 19:24:5259 public RenderViewHostManager::Delegate {
[email protected]0dd3a0ab2011-02-18 08:17:4460 public:
[email protected]a81343d232011-12-27 07:39:2061 // See WebContents::Create for a description of these parameters.
[email protected]b172aee2012-04-10 17:05:2662 WebContentsImpl(content::BrowserContext* browser_context,
63 content::SiteInstance* site_instance,
64 int routing_id,
65 const WebContentsImpl* base_web_contents,
66 SessionStorageNamespaceImpl* session_storage_namespace);
67 virtual ~WebContentsImpl();
[email protected]0dd3a0ab2011-02-18 08:17:4468
[email protected]64d69de42012-02-06 00:19:5469 // Returns the content specific prefs for the given RVH.
[email protected]eaabba22012-03-07 15:02:1170 static WebPreferences GetWebkitPrefs(
71 content::RenderViewHost* rvh, const GURL& url);
[email protected]64d69de42012-02-06 00:19:5472
[email protected]c7dd2f62011-07-18 15:57:5973 // Returns the SavePackage which manages the page saving job. May be NULL.
74 SavePackage* save_package() const { return save_package_.get(); }
75
[email protected]b172aee2012-04-10 17:05:2676 // Updates the max page ID for the current SiteInstance in this
77 // WebContentsImpl to be at least |page_id|.
[email protected]0dd3a0ab2011-02-18 08:17:4478 void UpdateMaxPageID(int32 page_id);
79
[email protected]b172aee2012-04-10 17:05:2680 // Updates the max page ID for the given SiteInstance in this WebContentsImpl
[email protected]74ce1ad2011-12-16 21:51:4681 // to be at least |page_id|.
[email protected]b6583592012-01-25 19:52:3382 void UpdateMaxPageIDForSiteInstance(content::SiteInstance* site_instance,
[email protected]74ce1ad2011-12-16 21:51:4683 int32 page_id);
84
[email protected]91854cd2012-01-10 19:43:5785 // Copy the current map of SiteInstance ID to max page ID from another tab.
86 // This is necessary when this tab adopts the NavigationEntries from
[email protected]b172aee2012-04-10 17:05:2687 // |web_contents|.
88 void CopyMaxPageIDsFrom(WebContentsImpl* web_contents);
[email protected]91854cd2012-01-10 19:43:5789
[email protected]b172aee2012-04-10 17:05:2690 // Called by the NavigationController to cause the WebContentsImpl to navigate
91 // to the current pending entry. The NavigationController should be called
92 // back with RendererDidNavigate on success or DiscardPendingEntry on failure.
[email protected]9a7e68c2011-05-26 17:35:5093 // The callbacks can be inside of this function, or at some future time.
[email protected]0dd3a0ab2011-02-18 08:17:4494 //
95 // The entry has a PageID of -1 if newly created (corresponding to navigation
96 // to a new URL).
97 //
98 // If this method returns false, then the navigation is discarded (equivalent
99 // to calling DiscardPendingEntry on the NavigationController).
[email protected]0bfbf882011-12-22 18:19:27100 bool NavigateToPendingEntry(
[email protected]71fde352011-12-29 03:29:56101 content::NavigationController::ReloadType reload_type);
[email protected]0dd3a0ab2011-02-18 08:17:44102
[email protected]0dd3a0ab2011-02-18 08:17:44103 // Sets the passed passed interstitial as the currently showing interstitial.
104 // |interstitial_page| should be non NULL (use the remove_interstitial_page
105 // method to unset the interstitial) and no interstitial page should be set
106 // when there is already a non NULL interstitial page set.
[email protected]cadaec52012-02-08 21:53:13107 void set_interstitial_page(InterstitialPageImpl* interstitial_page) {
[email protected]0dd3a0ab2011-02-18 08:17:44108 render_manager_.set_interstitial_page(interstitial_page);
109 }
110
111 // Unsets the currently showing interstitial.
112 void remove_interstitial_page() {
113 render_manager_.remove_interstitial_page();
114 }
115
[email protected]01ec4ec2012-01-18 04:13:47116 void set_opener_web_ui_type(content::WebUI::TypeID opener_web_ui_type) {
[email protected]0dd3a0ab2011-02-18 08:17:44117 opener_web_ui_type_ = opener_web_ui_type;
118 }
119
[email protected]a0358d72012-03-09 14:06:50120 void set_has_opener(bool has_opener) {
121 has_opener_ = has_opener;
122 }
123
[email protected]276b37a22011-11-08 20:45:46124 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const {
125 return java_bridge_dispatcher_host_manager_.get();
126 }
127
[email protected]8dd709fb2012-04-06 00:49:06128 content::BrowserPluginWebContentsObserver*
129 browser_plugin_web_contents_observer() const {
130 return browser_plugin_web_contents_observer_.get();
131 }
132
[email protected]cdcb1dee2012-01-04 00:46:20133 // Like GetController from WebContents, but returns the concrete object.
[email protected]d202a7c2012-01-04 07:53:47134 NavigationControllerImpl& GetControllerImpl();
[email protected]cdcb1dee2012-01-04 00:46:20135
[email protected]765187182012-01-11 23:59:28136 // Expose the render manager for testing.
137 RenderViewHostManager* GetRenderManagerForTesting();
138
[email protected]58f5d562011-12-20 17:13:03139 // content::WebContents ------------------------------------------------------
[email protected]6934a702011-12-20 00:04:51140 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE;
141 virtual base::PropertyBag* GetPropertyBag() OVERRIDE;
[email protected]674bc592011-12-20 23:00:42142 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE;
143 virtual void SetDelegate(content::WebContentsDelegate* delegate) OVERRIDE;
[email protected]cdcb1dee2012-01-04 00:46:20144 virtual content::NavigationController& GetController() OVERRIDE;
145 virtual const content::NavigationController& GetController() const OVERRIDE;
[email protected]627e0512011-12-21 22:55:30146 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE;
[email protected]f5fa20e2011-12-21 22:35:56147 virtual void SetViewType(content::ViewType type) OVERRIDE;
[email protected]ea049a02011-12-25 21:37:09148 virtual content::ViewType GetViewType() const OVERRIDE;
[email protected]f5fa20e2011-12-21 22:35:56149 virtual content::RenderProcessHost* GetRenderProcessHost() const OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11150 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE;
[email protected]5626b0892012-02-20 14:46:58151 virtual content::RenderWidgetHostView*
152 GetRenderWidgetHostView() const OVERRIDE;
[email protected]8643e6d2012-01-18 20:26:10153 virtual content::WebContentsView* GetView() const OVERRIDE;
[email protected]01ec4ec2012-01-18 04:13:47154 virtual content::WebUI* CreateWebUI(const GURL& url) OVERRIDE;
155 virtual content::WebUI* GetWebUI() const OVERRIDE;
156 virtual content::WebUI* GetCommittedWebUI() const OVERRIDE;
[email protected]be1f56ab2011-12-22 06:55:31157 virtual const string16& GetTitle() const OVERRIDE;
158 virtual int32 GetMaxPageID() OVERRIDE;
159 virtual int32 GetMaxPageIDForSiteInstance(
[email protected]b6583592012-01-25 19:52:33160 content::SiteInstance* site_instance) OVERRIDE;
161 virtual content::SiteInstance* GetSiteInstance() const OVERRIDE;
162 virtual content::SiteInstance* GetPendingSiteInstance() const OVERRIDE;
[email protected]be1f56ab2011-12-22 06:55:31163 virtual bool IsLoading() const OVERRIDE;
164 virtual bool IsWaitingForResponse() const OVERRIDE;
165 virtual const net::LoadStateWithParam& GetLoadState() const OVERRIDE;
166 virtual const string16& GetLoadStateHost() const OVERRIDE;
167 virtual uint64 GetUploadSize() const OVERRIDE;
168 virtual uint64 GetUploadPosition() const OVERRIDE;
169 virtual const std::string& GetEncoding() const OVERRIDE;
170 virtual bool DisplayedInsecureContent() const OVERRIDE;
171 virtual void SetCapturingContents(bool cap) OVERRIDE;
172 virtual bool IsCrashed() const OVERRIDE;
173 virtual void SetIsCrashed(base::TerminationStatus status,
174 int error_code) OVERRIDE;
175 virtual base::TerminationStatus GetCrashedStatus() const OVERRIDE;
176 virtual bool IsBeingDestroyed() const OVERRIDE;
177 virtual void NotifyNavigationStateChanged(unsigned changed_flags) OVERRIDE;
178 virtual void DidBecomeSelected() OVERRIDE;
179 virtual base::TimeTicks GetLastSelectedTime() const OVERRIDE;
180 virtual void WasHidden() OVERRIDE;
181 virtual void ShowContents() OVERRIDE;
182 virtual void HideContents() OVERRIDE;
183 virtual bool NeedToFireBeforeUnload() OVERRIDE;
[email protected]0bfbf882011-12-22 18:19:27184 virtual void Stop() OVERRIDE;
[email protected]d9083482012-01-06 00:38:46185 virtual content::WebContents* Clone() OVERRIDE;
[email protected]2a6bc3e2011-12-28 23:51:33186 virtual void AddNewContents(content::WebContents* new_contents,
[email protected]0bfbf882011-12-22 18:19:27187 WindowOpenDisposition disposition,
188 const gfx::Rect& initial_pos,
189 bool user_gesture) OVERRIDE;
190 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
191 virtual gfx::NativeView GetNativeView() const OVERRIDE;
192 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE;
193 virtual void Focus() OVERRIDE;
194 virtual void FocusThroughTabTraversal(bool reverse) OVERRIDE;
195 virtual bool ShowingInterstitialPage() const OVERRIDE;
[email protected]cadaec52012-02-08 21:53:13196 virtual content::InterstitialPage* GetInterstitialPage() const OVERRIDE;
[email protected]a53209b2012-01-20 16:48:16197 virtual bool IsSavable() OVERRIDE;
[email protected]0bfbf882011-12-22 18:19:27198 virtual void OnSavePage() OVERRIDE;
199 virtual bool SavePage(const FilePath& main_file,
200 const FilePath& dir_path,
[email protected]a53209b2012-01-20 16:48:16201 content::SavePageType save_type) OVERRIDE;
[email protected]aa4f3972012-03-01 18:12:12202 virtual void GenerateMHTML(
203 const FilePath& file,
204 const base::Callback<void(const FilePath&, int64)>& callback) OVERRIDE;
[email protected]0bfbf882011-12-22 18:19:27205 virtual bool IsActiveEntry(int32 page_id) OVERRIDE;
206
207 virtual const std::string& GetContentsMimeType() const OVERRIDE;
208 virtual bool WillNotifyDisconnection() const OVERRIDE;
209 virtual void SetOverrideEncoding(const std::string& encoding) OVERRIDE;
210 virtual void ResetOverrideEncoding() OVERRIDE;
211 virtual content::RendererPreferences* GetMutableRendererPrefs() OVERRIDE;
212 virtual void SetNewTabStartTime(const base::TimeTicks& time) OVERRIDE;
213 virtual base::TimeTicks GetNewTabStartTime() const OVERRIDE;
214 virtual void OnCloseStarted() OVERRIDE;
215 virtual bool ShouldAcceptDragAndDrop() const OVERRIDE;
216 virtual void SystemDragEnded() OVERRIDE;
217 virtual void SetClosedByUserGesture(bool value) OVERRIDE;
218 virtual bool GetClosedByUserGesture() const OVERRIDE;
219 virtual double GetZoomLevel() const OVERRIDE;
220 virtual int GetZoomPercent(bool* enable_increment,
221 bool* enable_decrement) OVERRIDE;
222 virtual void ViewSource() OVERRIDE;
223 virtual void ViewFrameSource(const GURL& url,
224 const std::string& content_state) OVERRIDE;
225 virtual int GetMinimumZoomPercent() const OVERRIDE;
226 virtual int GetMaximumZoomPercent() const OVERRIDE;
[email protected]bcd2815602012-01-14 18:17:23227 virtual gfx::Size GetPreferredSize() const OVERRIDE;
[email protected]0bfbf882011-12-22 18:19:27228 virtual int GetContentRestrictions() const OVERRIDE;
[email protected]01ec4ec2012-01-18 04:13:47229 virtual content::WebUI::TypeID GetWebUITypeForCurrentState() OVERRIDE;
230 virtual content::WebUI* GetWebUIForCurrentState() OVERRIDE;
[email protected]0bfbf882011-12-22 18:19:27231 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE;
[email protected]a0358d72012-03-09 14:06:50232 virtual bool HasOpener() const OVERRIDE;
[email protected]da8543762012-03-20 08:52:20233 virtual void DidChooseColorInColorChooser(int color_chooser_id,
[email protected]55578b0a2012-04-18 14:31:32234 SkColor color) OVERRIDE;
[email protected]da8543762012-03-20 08:52:20235 virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE;
[email protected]0bfbf882011-12-22 18:19:27236
237 // Implementation of PageNavigator.
[email protected]e5d549d2011-12-28 01:29:20238 virtual content::WebContents* OpenURL(
239 const content::OpenURLParams& params) OVERRIDE;
[email protected]151a63d2011-12-20 22:32:52240
[email protected]952a68e2011-11-17 00:36:10241 // RenderViewHostDelegate ----------------------------------------------------
242
[email protected]b0b67cf2012-01-18 21:59:57243 virtual content::RenderViewHostDelegate::View* GetViewDelegate() OVERRIDE;
244 virtual content::RenderViewHostDelegate::RendererManagement*
[email protected]952a68e2011-11-17 00:36:10245 GetRendererManagementDelegate() OVERRIDE;
[email protected]be1f56ab2011-12-22 06:55:31246 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
247 virtual const GURL& GetURL() const OVERRIDE;
[email protected]768c5472011-12-26 19:06:17248 virtual WebContents* GetAsWebContents() OVERRIDE;
[email protected]952a68e2011-11-17 00:36:10249 virtual content::ViewType GetRenderViewType() const OVERRIDE;
[email protected]b7a756d42012-01-23 18:08:17250 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11251 virtual void RenderViewCreated(
252 content::RenderViewHost* render_view_host) OVERRIDE;
253 virtual void RenderViewReady(
254 content::RenderViewHost* render_view_host) OVERRIDE;
255 virtual void RenderViewGone(content::RenderViewHost* render_view_host,
[email protected]952a68e2011-11-17 00:36:10256 base::TerminationStatus status,
257 int error_code) OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11258 virtual void RenderViewDeleted(
259 content::RenderViewHost* render_view_host) OVERRIDE;
[email protected]952a68e2011-11-17 00:36:10260 virtual void DidNavigate(
[email protected]eaabba22012-03-07 15:02:11261 content::RenderViewHost* render_view_host,
[email protected]952a68e2011-11-17 00:36:10262 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11263 virtual void UpdateState(content::RenderViewHost* render_view_host,
[email protected]952a68e2011-11-17 00:36:10264 int32 page_id,
265 const std::string& state) OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11266 virtual void UpdateTitle(content::RenderViewHost* render_view_host,
[email protected]952a68e2011-11-17 00:36:10267 int32 page_id,
268 const string16& title,
269 base::i18n::TextDirection title_direction) OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11270 virtual void UpdateEncoding(content::RenderViewHost* render_view_host,
[email protected]952a68e2011-11-17 00:36:10271 const std::string& encoding) OVERRIDE;
272 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11273 virtual void Close(content::RenderViewHost* render_view_host) OVERRIDE;
[email protected]952a68e2011-11-17 00:36:10274 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11275 virtual void SwappedOut(content::RenderViewHost* render_view_host) OVERRIDE;
[email protected]952a68e2011-11-17 00:36:10276 virtual void DidStartLoading() OVERRIDE;
277 virtual void DidStopLoading() OVERRIDE;
278 virtual void DidCancelLoading() OVERRIDE;
279 virtual void DidChangeLoadProgress(double progress) OVERRIDE;
280 virtual void DocumentAvailableInMainFrame(
[email protected]eaabba22012-03-07 15:02:11281 content::RenderViewHost* render_view_host) OVERRIDE;
[email protected]952a68e2011-11-17 00:36:10282 virtual void DocumentOnLoadCompletedInMainFrame(
[email protected]eaabba22012-03-07 15:02:11283 content::RenderViewHost* render_view_host,
[email protected]952a68e2011-11-17 00:36:10284 int32 page_id) OVERRIDE;
285 virtual void RequestOpenURL(const GURL& url,
[email protected]445e1042011-12-03 21:03:15286 const content::Referrer& referrer,
[email protected]952a68e2011-11-17 00:36:10287 WindowOpenDisposition disposition,
288 int64 source_frame_id) OVERRIDE;
[email protected]4ad5d77d2011-12-03 02:00:48289 virtual void RequestTransferURL(
290 const GURL& url,
[email protected]bce1f1c2011-12-05 15:11:58291 const content::Referrer& referrer,
[email protected]4ad5d77d2011-12-03 02:00:48292 WindowOpenDisposition disposition,
293 int64 source_frame_id,
[email protected]e5d549d2011-12-28 01:29:20294 const content::GlobalRequestID& transferred_global_request_id) OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11295 virtual void RunJavaScriptMessage(content::RenderViewHost* rvh,
[email protected]952a68e2011-11-17 00:36:10296 const string16& message,
297 const string16& default_prompt,
298 const GURL& frame_url,
[email protected]269f86d2011-12-07 02:43:47299 ui::JavascriptMessageType type,
[email protected]952a68e2011-11-17 00:36:10300 IPC::Message* reply_msg,
301 bool* did_suppress_message) OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11302 virtual void RunBeforeUnloadConfirm(content::RenderViewHost* rvh,
[email protected]952a68e2011-11-17 00:36:10303 const string16& message,
[email protected]3b3301f62012-02-29 04:32:32304 bool is_reload,
[email protected]952a68e2011-11-17 00:36:10305 IPC::Message* reply_msg) OVERRIDE;
306 virtual content::RendererPreferences GetRendererPrefs(
307 content::BrowserContext* browser_context) const OVERRIDE;
308 virtual WebPreferences GetWebkitPrefs() OVERRIDE;
309 virtual void OnUserGesture() OVERRIDE;
310 virtual void OnIgnoredUIEvent() OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11311 virtual void RendererUnresponsive(content::RenderViewHost* render_view_host,
[email protected]952a68e2011-11-17 00:36:10312 bool is_during_unload) OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11313 virtual void RendererResponsive(
314 content::RenderViewHost* render_view_host) OVERRIDE;
[email protected]952a68e2011-11-17 00:36:10315 virtual void LoadStateChanged(const GURL& url,
316 const net::LoadStateWithParam& load_state,
317 uint64 upload_position,
318 uint64 upload_size) OVERRIDE;
319 virtual void WorkerCrashed() OVERRIDE;
320 virtual void Activate() OVERRIDE;
321 virtual void Deactivate() OVERRIDE;
322 virtual void LostCapture() OVERRIDE;
323 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
324 bool* is_keyboard_shortcut) OVERRIDE;
325 virtual void HandleKeyboardEvent(
326 const NativeWebKeyboardEvent& event) OVERRIDE;
327 virtual void HandleMouseDown() OVERRIDE;
328 virtual void HandleMouseUp() OVERRIDE;
329 virtual void HandleMouseActivate() OVERRIDE;
[email protected]edc64de2011-11-17 20:07:38330 virtual void RunFileChooser(
[email protected]eaabba22012-03-07 15:02:11331 content::RenderViewHost* render_view_host,
[email protected]8caadeb2011-11-22 02:45:23332 const content::FileChooserParams& params) OVERRIDE;
[email protected]952a68e2011-11-17 00:36:10333 virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE;
334 virtual bool IsFullscreenForCurrentTab() const OVERRIDE;
335 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE;
[email protected]61e2b3cc2012-03-02 16:13:34336 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11337 virtual void WebUISend(content::RenderViewHost* render_view_host,
338 const GURL& source_url,
339 const std::string& name,
340 const base::ListValue& args) OVERRIDE;
[email protected]952a68e2011-11-17 00:36:10341 virtual void RequestToLockMouse() OVERRIDE;
342 virtual void LostMouseLock() OVERRIDE;
343
[email protected]0bfbf882011-12-22 18:19:27344 // RenderViewHostManager::Delegate -------------------------------------------
345
346 virtual bool CreateRenderViewForRenderManager(
[email protected]eaabba22012-03-07 15:02:11347 content::RenderViewHost* render_view_host) OVERRIDE;
[email protected]0bfbf882011-12-22 18:19:27348 virtual void BeforeUnloadFiredFromRenderManager(
349 bool proceed,
350 bool* proceed_to_fire_unload) OVERRIDE;
351 virtual void DidStartLoadingFromRenderManager(
[email protected]eaabba22012-03-07 15:02:11352 content::RenderViewHost* render_view_host) OVERRIDE;
[email protected]0bfbf882011-12-22 18:19:27353 virtual void RenderViewGoneFromRenderManager(
[email protected]eaabba22012-03-07 15:02:11354 content::RenderViewHost* render_view_host) OVERRIDE;
[email protected]0bfbf882011-12-22 18:19:27355 virtual void UpdateRenderViewSizeForRenderManager() OVERRIDE;
356 virtual void NotifySwappedFromRenderManager() OVERRIDE;
[email protected]d202a7c2012-01-04 07:53:47357 virtual NavigationControllerImpl& GetControllerForRenderManager() OVERRIDE;
[email protected]d2353452012-01-19 19:53:56358 virtual WebUIImpl* CreateWebUIForRenderManager(const GURL& url) OVERRIDE;
[email protected]ad23a092011-12-28 07:02:04359 virtual content::NavigationEntry*
[email protected]0bfbf882011-12-22 18:19:27360 GetLastCommittedNavigationEntryForRenderManager() OVERRIDE;
361 virtual bool FocusLocationBarByDefault() OVERRIDE;
362 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE;
[email protected]eaabba22012-03-07 15:02:11363 virtual void CreateViewAndSetSizeForRVH(
364 content::RenderViewHost* rvh) OVERRIDE;
[email protected]0bfbf882011-12-22 18:19:27365
[email protected]0dd3a0ab2011-02-18 08:17:44366 protected:
[email protected]d8c660432011-12-22 20:51:25367 friend class content::WebContentsObserver;
[email protected]553602e12011-04-05 17:01:18368
369 // Add and remove observers for page navigation notifications. Adding or
370 // removing multiple times has no effect. The order in which notifications
371 // are sent to observers is undefined. Clients must be sure to remove the
372 // observer before they go away.
[email protected]d8c660432011-12-22 20:51:25373 void AddObserver(content::WebContentsObserver* observer);
374 void RemoveObserver(content::WebContentsObserver* observer);
[email protected]553602e12011-04-05 17:01:18375
[email protected]0dd3a0ab2011-02-18 08:17:44376 private:
[email protected]d202a7c2012-01-04 07:53:47377 friend class NavigationControllerImpl;
[email protected]0dd3a0ab2011-02-18 08:17:44378
[email protected]2db9bd72012-04-13 20:20:56379 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials);
380 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle);
381 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest,
382 CrossSiteCantPreemptAfterUnload);
[email protected]0dd3a0ab2011-02-18 08:17:44383 FRIEND_TEST_ALL_PREFIXES(FormStructureBrowserTest, HTMLFiles);
384 FRIEND_TEST_ALL_PREFIXES(NavigationControllerTest, HistoryNavigate);
385 FRIEND_TEST_ALL_PREFIXES(RenderViewHostManagerTest, PageDoesBackAndReload);
386
387 // Temporary until the view/contents separation is complete.
[email protected]8643e6d2012-01-18 20:26:10388 friend class content::WebContentsView;
[email protected]9a56a0d2011-05-13 19:03:31389#if defined(TOOLKIT_VIEWS)
[email protected]7e2cef52011-04-11 21:47:23390 friend class TabContentsViewViews;
[email protected]0dd3a0ab2011-02-18 08:17:44391#elif defined(OS_MACOSX)
[email protected]eb668c92012-02-06 15:35:29392 friend class WebContentsViewMac;
[email protected]a13283cc2012-04-05 00:21:22393#elif defined(TOOLKIT_GTK)
[email protected]6eddfd442012-04-11 16:18:35394 friend class WebContentsViewGtk;
[email protected]0dd3a0ab2011-02-18 08:17:44395#endif
396
[email protected]cadaec52012-02-08 21:53:13397 // So InterstitialPageImpl can access SetIsLoading.
398 friend class InterstitialPageImpl;
[email protected]0dd3a0ab2011-02-18 08:17:44399
[email protected]80e776ae2012-03-23 16:17:20400 // TODO(brettw) TestWebContents shouldn't exist!
401 friend class content::TestWebContents;
[email protected]0dd3a0ab2011-02-18 08:17:44402
[email protected]51da7e32012-01-30 19:24:52403 // Callback function when showing JS dialogs.
[email protected]eaabba22012-03-07 15:02:11404 void OnDialogClosed(content::RenderViewHost* rvh,
[email protected]51da7e32012-01-30 19:24:52405 IPC::Message* reply_msg,
406 bool success,
407 const string16& user_input);
408
[email protected]0dd3a0ab2011-02-18 08:17:44409 // Message handlers.
[email protected]8b5af492011-11-28 21:50:58410 void OnRegisterIntentService(const string16& action,
[email protected]63c239322011-10-31 23:56:30411 const string16& type,
412 const string16& href,
413 const string16& title,
414 const string16& disposition);
[email protected]678105012011-12-09 04:01:21415 void OnWebIntentDispatch(const webkit_glue::WebIntentData& intent,
[email protected]63c239322011-10-31 23:56:30416 int intent_id);
[email protected]0dd3a0ab2011-02-18 08:17:44417 void OnDidStartProvisionalLoadForFrame(int64 frame_id,
418 bool main_frame,
[email protected]57b9396c2011-10-07 19:11:59419 const GURL& opener_url,
[email protected]0dd3a0ab2011-02-18 08:17:44420 const GURL& url);
421 void OnDidRedirectProvisionalLoad(int32 page_id,
[email protected]57b9396c2011-10-07 19:11:59422 const GURL& opener_url,
[email protected]0dd3a0ab2011-02-18 08:17:44423 const GURL& source_url,
424 const GURL& target_url);
[email protected]d7b175e2011-10-11 15:31:58425 void OnDidFailProvisionalLoadWithError(
426 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params);
[email protected]0dd3a0ab2011-02-18 08:17:44427 void OnDidLoadResourceFromMemoryCache(const GURL& url,
[email protected]70435962011-08-02 20:13:28428 const std::string& security_info,
429 const std::string& http_request,
430 ResourceType::Type resource_type);
[email protected]0dd3a0ab2011-02-18 08:17:44431 void OnDidDisplayInsecureContent();
432 void OnDidRunInsecureContent(const std::string& security_origin,
433 const GURL& target_url);
434 void OnDocumentLoadedInFrame(int64 frame_id);
[email protected]1a55c5be2011-11-29 11:36:31435 void OnDidFinishLoad(int64 frame_id,
436 const GURL& validated_url,
437 bool is_main_frame);
438 void OnDidFailLoadWithError(int64 frame_id,
439 const GURL& validated_url,
440 bool is_main_frame,
441 int error_code,
442 const string16& error_description);
[email protected]0dd3a0ab2011-02-18 08:17:44443 void OnUpdateContentRestrictions(int restrictions);
[email protected]0dd3a0ab2011-02-18 08:17:44444 void OnGoToEntryAtOffset(int offset);
[email protected]216813952011-05-19 22:21:26445 void OnUpdateZoomLimits(int minimum_percent,
446 int maximum_percent,
447 bool remember);
[email protected]0bfbf882011-12-22 18:19:27448 void OnSaveURL(const GURL& url);
[email protected]3a29a6e2011-08-24 18:26:21449 void OnEnumerateDirectory(int request_id, const FilePath& path);
[email protected]7d189022011-08-25 22:54:20450 void OnJSOutOfMemory();
[email protected]b7a756d42012-01-23 18:08:17451
[email protected]7d189022011-08-25 22:54:20452 void OnRegisterProtocolHandler(const std::string& protocol,
453 const GURL& url,
454 const string16& title);
[email protected]b888919c2011-09-02 00:32:16455 void OnFindReply(int request_id, int number_of_matches,
456 const gfx::Rect& selection_rect, int active_match_ordinal,
457 bool final_update);
[email protected]d952a052011-09-06 18:42:45458 void OnCrashedPlugin(const FilePath& plugin_path);
[email protected]7fc4bbb2011-09-08 21:23:10459 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy);
[email protected]55578b0a2012-04-18 14:31:32460 void OnOpenColorChooser(int color_chooser_id, SkColor color);
[email protected]da8543762012-03-20 08:52:20461 void OnEndColorChooser(int color_chooser_id);
[email protected]55578b0a2012-04-18 14:31:32462 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color);
[email protected]8be45842012-04-13 19:49:29463 void OnPepperPluginHung(int plugin_child_id,
464 const FilePath& path,
465 bool is_hung);
[email protected]0dd3a0ab2011-02-18 08:17:44466
467 // Changes the IsLoading state and notifies delegate as needed
468 // |details| is used to provide details on the load that just finished
469 // (but can be null if not applicable). Can be overridden.
470 void SetIsLoading(bool is_loading,
[email protected]09d31d52012-03-11 22:30:27471 content::LoadNotificationDetails* details);
[email protected]0dd3a0ab2011-02-18 08:17:44472
[email protected]0dd3a0ab2011-02-18 08:17:44473 // Called by derived classes to indicate that we're no longer waiting for a
474 // response. This won't actually update the throbber, but it will get picked
475 // up at the next animation step if the throbber is going.
476 void SetNotWaitingForResponse() { waiting_for_response_ = false; }
477
[email protected]0dd3a0ab2011-02-18 08:17:44478 // Navigation helpers --------------------------------------------------------
479 //
480 // These functions are helpers for Navigate() and DidNavigate().
481
482 // Handles post-navigation tasks in DidNavigate AFTER the entry has been
483 // committed to the navigation controller. Note that the navigation entry is
484 // not provided since it may be invalid/changed after being committed. The
485 // current navigation entry is in the NavigationController at this point.
486 void DidNavigateMainFramePostCommit(
[email protected]8286f51a2011-05-31 17:39:13487 const content::LoadCommittedDetails& details,
[email protected]0dd3a0ab2011-02-18 08:17:44488 const ViewHostMsg_FrameNavigate_Params& params);
489 void DidNavigateAnyFramePostCommit(
[email protected]eaabba22012-03-07 15:02:11490 content::RenderViewHost* render_view_host,
[email protected]8286f51a2011-05-31 17:39:13491 const content::LoadCommittedDetails& details,
[email protected]0dd3a0ab2011-02-18 08:17:44492 const ViewHostMsg_FrameNavigate_Params& params);
493
[email protected]74ce1ad2011-12-16 21:51:46494 // If our controller was restored, update the max page ID associated with the
495 // given RenderViewHost to be larger than the number of restored entries.
496 // This is called in CreateRenderView before any navigations in the RenderView
497 // have begun, to prevent any races in updating RenderView::next_page_id.
[email protected]eaabba22012-03-07 15:02:11498 void UpdateMaxPageIDIfNecessary(content::RenderViewHost* rvh);
[email protected]0dd3a0ab2011-02-18 08:17:44499
[email protected]0dd3a0ab2011-02-18 08:17:44500 // Saves the given title to the navigation entry and does associated work. It
501 // will update history and the view for the new title, and also synthesize
502 // titles for file URLs that have none (so we require that the URL of the
503 // entry already be set).
504 //
505 // This is used as the backend for state updates, which include a new title,
506 // or the dedicated set title message. It returns true if the new title is
507 // different and was therefore updated.
[email protected]10f417c52011-12-28 21:04:23508 bool UpdateTitleForEntry(content::NavigationEntryImpl* entry,
509 const string16& title);
[email protected]0dd3a0ab2011-02-18 08:17:44510
[email protected]b172aee2012-04-10 17:05:26511 // Causes the WebContentsImpl to navigate in the right renderer to |entry|,
512 // which must be already part of the entries in the navigation controller.
[email protected]0dd3a0ab2011-02-18 08:17:44513 // This does not change the NavigationController state.
[email protected]10f417c52011-12-28 21:04:23514 bool NavigateToEntry(const content::NavigationEntryImpl& entry,
[email protected]71fde352011-12-29 03:29:56515 content::NavigationController::ReloadType reload_type);
[email protected]0dd3a0ab2011-02-18 08:17:44516
[email protected]b172aee2012-04-10 17:05:26517 // Sets the history for this WebContentsImpl to |history_length| entries, and
[email protected]796931a92011-08-10 01:32:14518 // moves the current page_id to the last entry in the list if it's valid.
519 // This is mainly used when a prerendered page is swapped into the current
[email protected]9e1ad4b2011-08-14 16:49:19520 // tab. The method is virtual for testing.
[email protected]b6583592012-01-25 19:52:33521 virtual void SetHistoryLengthAndPrune(
522 const content::SiteInstance* site_instance,
523 int merge_history_length,
524 int32 minimum_page_id);
[email protected]796931a92011-08-10 01:32:14525
[email protected]0dd3a0ab2011-02-18 08:17:44526 // Misc non-view stuff -------------------------------------------------------
527
528 // Helper functions for sending notifications.
529 void NotifySwapped();
530 void NotifyConnected();
531 void NotifyDisconnected();
532
[email protected]be1f56ab2011-12-22 06:55:31533 void SetEncoding(const std::string& encoding);
534
[email protected]27678b2a2012-02-04 22:09:14535 // Save a URL to the local filesystem.
[email protected]e30d68d2012-02-09 00:06:26536 void SaveURL(const GURL& url, const GURL& referrer, bool is_main_frame);
[email protected]27678b2a2012-02-04 22:09:14537
[email protected]eaabba22012-03-07 15:02:11538 content::RenderViewHostImpl* GetRenderViewHostImpl();
[email protected]9f76c1e2012-03-05 15:15:58539
[email protected]81898992011-06-14 22:15:00540 // Stores random bits of data for others to associate with this object.
541 // WARNING: this needs to be deleted after NavigationController.
[email protected]45644f62011-11-23 00:58:23542 base::PropertyBag property_bag_;
[email protected]81898992011-06-14 22:15:00543
[email protected]0dd3a0ab2011-02-18 08:17:44544 // Data for core operation ---------------------------------------------------
545
546 // Delegate for notifying our owner about stuff. Not owned by us.
[email protected]674bc592011-12-20 23:00:42547 content::WebContentsDelegate* delegate_;
[email protected]0dd3a0ab2011-02-18 08:17:44548
549 // Handles the back/forward list and loading.
[email protected]d202a7c2012-01-04 07:53:47550 NavigationControllerImpl controller_;
[email protected]0dd3a0ab2011-02-18 08:17:44551
552 // The corresponding view.
[email protected]8643e6d2012-01-18 20:26:10553 scoped_ptr<content::WebContentsView> view_;
[email protected]0dd3a0ab2011-02-18 08:17:44554
[email protected]996042972011-11-08 22:43:59555 // A list of observers notified when page state changes. Weak references.
556 // This MUST be listed above render_manager_ since at destruction time the
557 // latter might cause RenderViewHost's destructor to call us and we might use
558 // the observer list then.
[email protected]d8c660432011-12-22 20:51:25559 ObserverList<content::WebContentsObserver> observers_;
[email protected]996042972011-11-08 22:43:59560
[email protected]0dd3a0ab2011-02-18 08:17:44561 // Helper classes ------------------------------------------------------------
562
563 // Manages creation and swapping of render views.
564 RenderViewHostManager render_manager_;
565
[email protected]483623eb2011-10-25 09:30:00566 // Manages injecting Java objects into all RenderViewHosts associated with
[email protected]b172aee2012-04-10 17:05:26567 // this WebContentsImpl.
[email protected]483623eb2011-10-25 09:30:00568 scoped_ptr<JavaBridgeDispatcherHostManager>
569 java_bridge_dispatcher_host_manager_;
570
[email protected]8dd709fb2012-04-06 00:49:06571 scoped_ptr<content::BrowserPluginWebContentsObserver>
572 browser_plugin_web_contents_observer_;
[email protected]c7dd2f62011-07-18 15:57:59573 // SavePackage, lazily created.
574 scoped_refptr<SavePackage> save_package_;
575
[email protected]0dd3a0ab2011-02-18 08:17:44576 // Data for loading state ----------------------------------------------------
577
578 // Indicates whether we're currently loading a resource.
579 bool is_loading_;
580
581 // Indicates if the tab is considered crashed.
582 base::TerminationStatus crashed_status_;
583 int crashed_error_code_;
584
[email protected]ca13a442012-04-17 14:00:12585 // Whether this WebContents is waiting for a first-response for the
[email protected]be1f56ab2011-12-22 06:55:31586 // main resource of the page. This controls whether the throbber state is
587 // "waiting" or "loading."
[email protected]0dd3a0ab2011-02-18 08:17:44588 bool waiting_for_response_;
589
[email protected]74ce1ad2011-12-16 21:51:46590 // Map of SiteInstance ID to max page ID for this tab. A page ID is specific
591 // to a given tab and SiteInstance, and must be valid for the lifetime of the
[email protected]b172aee2012-04-10 17:05:26592 // WebContentsImpl.
[email protected]74ce1ad2011-12-16 21:51:46593 std::map<int32, int32> max_page_ids_;
[email protected]0dd3a0ab2011-02-18 08:17:44594
595 // System time at which the current load was started.
596 base::TimeTicks current_load_start_;
597
598 // The current load state and the URL associated with it.
[email protected]9c235f042011-08-10 22:28:21599 net::LoadStateWithParam load_state_;
[email protected]0dd3a0ab2011-02-18 08:17:44600 string16 load_state_host_;
601 // Upload progress, for displaying in the status bar.
602 // Set to zero when there is no significant upload happening.
603 uint64 upload_size_;
604 uint64 upload_position_;
605
606 // Data for current page -----------------------------------------------------
607
[email protected]987fc3a2011-05-26 14:18:09608 // When a title cannot be taken from any entry, this title will be used.
609 string16 page_title_when_no_navigation_entry_;
610
[email protected]0dd3a0ab2011-02-18 08:17:44611 // When a navigation occurs, we record its contents MIME type. It can be
612 // used to check whether we can do something for some special contents.
613 std::string contents_mime_type_;
614
615 // Character encoding.
616 std::string encoding_;
617
[email protected]0dd3a0ab2011-02-18 08:17:44618 // True if this is a secure page which displayed insecure content.
619 bool displayed_insecure_content_;
620
[email protected]0dd3a0ab2011-02-18 08:17:44621 // Data for misc internal state ----------------------------------------------
622
[email protected]ca13a442012-04-17 14:00:12623 // Whether the WebContents is currently being screenshotted.
[email protected]0dd3a0ab2011-02-18 08:17:44624 bool capturing_contents_;
625
626 // See getter above.
627 bool is_being_destroyed_;
628
629 // Indicates whether we should notify about disconnection of this
[email protected]b172aee2012-04-10 17:05:26630 // WebContentsImpl. This is used to ensure disconnection notifications only
[email protected]0dd3a0ab2011-02-18 08:17:44631 // happen if a connection notification has happened and that they happen only
632 // once.
633 bool notify_disconnection_;
634
[email protected]2e5b90c2011-08-16 21:11:55635 // Pointer to the JavaScript dialog creator, lazily assigned. Used because the
[email protected]b172aee2012-04-10 17:05:26636 // delegate of this WebContentsImpl is nulled before its destructor is called.
[email protected]2e5b90c2011-08-16 21:11:55637 content::JavaScriptDialogCreator* dialog_creator_;
638
[email protected]0dd3a0ab2011-02-18 08:17:44639#if defined(OS_WIN)
640 // Handle to an event that's set when the page is showing a message box (or
641 // equivalent constrained window). Plugin processes check this to know if
642 // they should pump messages then.
643 base::win::ScopedHandle message_box_active_;
644#endif
645
[email protected]0dd3a0ab2011-02-18 08:17:44646 // Set to true when there is an active "before unload" dialog. When true,
647 // we've forced the throbber to start in Navigate, and we need to remember to
648 // turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled.
649 bool is_showing_before_unload_dialog_;
650
[email protected]0dd3a0ab2011-02-18 08:17:44651 // Settings that get passed to the renderer process.
[email protected]daf82f82011-10-31 22:35:31652 content::RendererPreferences renderer_preferences_;
[email protected]0dd3a0ab2011-02-18 08:17:44653
654 // If this tab was created from a renderer using window.open, this will be
655 // non-NULL and represent the WebUI of the opening renderer.
[email protected]01ec4ec2012-01-18 04:13:47656 content::WebUI::TypeID opener_web_ui_type_;
[email protected]0dd3a0ab2011-02-18 08:17:44657
658 // The time that we started to create the new tab page.
659 base::TimeTicks new_tab_start_time_;
660
[email protected]3bbacc5b2012-04-17 17:46:15661 // The time that we started to close this WebContents.
662 base::TimeTicks close_start_time_;
[email protected]0dd3a0ab2011-02-18 08:17:44663
664 // The time that this tab was last selected.
665 base::TimeTicks last_selected_time_;
666
[email protected]0dd3a0ab2011-02-18 08:17:44667 // See description above setter.
668 bool closed_by_user_gesture_;
669
670 // Minimum/maximum zoom percent.
671 int minimum_zoom_percent_;
672 int maximum_zoom_percent_;
673 // If true, the default zoom limits have been overriden for this tab, in which
674 // case we don't want saved settings to apply to it and we don't want to
675 // remember it.
676 bool temporary_zoom_settings_;
677
[email protected]bcd2815602012-01-14 18:17:23678 // The intrinsic size of the page.
679 gfx::Size preferred_size_;
680
[email protected]0dd3a0ab2011-02-18 08:17:44681 // Content restrictions, used to disable print/copy etc based on content's
682 // (full-page plugins for now only) permissions.
683 int content_restrictions_;
684
[email protected]e018d3b2012-04-17 13:24:15685 // Our view type. Default is VIEW_TYPE_WEB_CONTENTS.
[email protected]32ded2212011-11-10 18:51:43686 content::ViewType view_type_;
687
[email protected]a0358d72012-03-09 14:06:50688 // Is there an opener associated with this?
689 bool has_opener_;
690
[email protected]da8543762012-03-20 08:52:20691 // Color chooser that was opened by this tab.
692 content::ColorChooser* color_chooser_;
693
[email protected]b172aee2012-04-10 17:05:26694 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
[email protected]0dd3a0ab2011-02-18 08:17:44695};
696
[email protected]93ddb3c2012-04-11 21:44:29697#endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_