OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 class CONTENT_EXPORT WebContentsImpl | 92 class CONTENT_EXPORT WebContentsImpl |
93 : public NON_EXPORTED_BASE(WebContents), | 93 : public NON_EXPORTED_BASE(WebContents), |
94 public NON_EXPORTED_BASE(RenderFrameHostDelegate), | 94 public NON_EXPORTED_BASE(RenderFrameHostDelegate), |
95 public RenderViewHostDelegate, | 95 public RenderViewHostDelegate, |
96 public RenderWidgetHostDelegate, | 96 public RenderWidgetHostDelegate, |
97 public RenderFrameHostManager::Delegate, | 97 public RenderFrameHostManager::Delegate, |
98 public NotificationObserver, | 98 public NotificationObserver, |
99 public NON_EXPORTED_BASE(NavigationControllerDelegate), | 99 public NON_EXPORTED_BASE(NavigationControllerDelegate), |
100 public NON_EXPORTED_BASE(NavigatorDelegate) { | 100 public NON_EXPORTED_BASE(NavigatorDelegate) { |
101 public: | 101 public: |
102 virtual ~WebContentsImpl(); | 102 ~WebContentsImpl() override; |
103 | 103 |
104 static WebContentsImpl* CreateWithOpener( | 104 static WebContentsImpl* CreateWithOpener( |
105 const WebContents::CreateParams& params, | 105 const WebContents::CreateParams& params, |
106 WebContentsImpl* opener); | 106 WebContentsImpl* opener); |
107 | 107 |
108 static std::vector<WebContentsImpl*> GetAllWebContents(); | 108 static std::vector<WebContentsImpl*> GetAllWebContents(); |
109 | 109 |
110 // Returns the opener WebContentsImpl, if any. This can be set to null if the | 110 // Returns the opener WebContentsImpl, if any. This can be set to null if the |
111 // opener is closed or the page clears its window.opener. | 111 // opener is closed or the page clears its window.opener. |
112 WebContentsImpl* opener() const { return opener_; } | 112 WebContentsImpl* opener() const { return opener_; } |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // bitmap. | 190 // bitmap. |
191 void AddAccessibilityMode(AccessibilityMode mode); | 191 void AddAccessibilityMode(AccessibilityMode mode); |
192 | 192 |
193 // Removes the given accessibility mode from the current accessibility | 193 // Removes the given accessibility mode from the current accessibility |
194 // mode bitmap, managing the bits that are shared with other modes such | 194 // mode bitmap, managing the bits that are shared with other modes such |
195 // that a bit will only be turned off when all modes that depend on it | 195 // that a bit will only be turned off when all modes that depend on it |
196 // have been removed. | 196 // have been removed. |
197 void RemoveAccessibilityMode(AccessibilityMode mode); | 197 void RemoveAccessibilityMode(AccessibilityMode mode); |
198 | 198 |
199 // WebContents ------------------------------------------------------ | 199 // WebContents ------------------------------------------------------ |
200 virtual WebContentsDelegate* GetDelegate() override; | 200 WebContentsDelegate* GetDelegate() override; |
201 virtual void SetDelegate(WebContentsDelegate* delegate) override; | 201 void SetDelegate(WebContentsDelegate* delegate) override; |
202 virtual NavigationControllerImpl& GetController() override; | 202 NavigationControllerImpl& GetController() override; |
203 virtual const NavigationControllerImpl& GetController() const override; | 203 const NavigationControllerImpl& GetController() const override; |
204 virtual BrowserContext* GetBrowserContext() const override; | 204 BrowserContext* GetBrowserContext() const override; |
205 virtual const GURL& GetURL() const override; | 205 const GURL& GetURL() const override; |
206 virtual const GURL& GetVisibleURL() const override; | 206 const GURL& GetVisibleURL() const override; |
207 virtual const GURL& GetLastCommittedURL() const override; | 207 const GURL& GetLastCommittedURL() const override; |
208 virtual RenderProcessHost* GetRenderProcessHost() const override; | 208 RenderProcessHost* GetRenderProcessHost() const override; |
209 virtual RenderFrameHost* GetMainFrame() override; | 209 RenderFrameHost* GetMainFrame() override; |
210 virtual RenderFrameHost* GetFocusedFrame() override; | 210 RenderFrameHost* GetFocusedFrame() override; |
211 virtual void ForEachFrame( | 211 void ForEachFrame( |
212 const base::Callback<void(RenderFrameHost*)>& on_frame) override; | 212 const base::Callback<void(RenderFrameHost*)>& on_frame) override; |
213 virtual void SendToAllFrames(IPC::Message* message) override; | 213 void SendToAllFrames(IPC::Message* message) override; |
214 virtual RenderViewHost* GetRenderViewHost() const override; | 214 RenderViewHost* GetRenderViewHost() const override; |
215 virtual int GetRoutingID() const override; | 215 int GetRoutingID() const override; |
216 virtual RenderWidgetHostView* GetRenderWidgetHostView() const override; | 216 RenderWidgetHostView* GetRenderWidgetHostView() const override; |
217 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const | 217 RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const override; |
218 override; | 218 WebUI* CreateWebUI(const GURL& url) override; |
219 virtual WebUI* CreateWebUI(const GURL& url) override; | 219 WebUI* GetWebUI() const override; |
220 virtual WebUI* GetWebUI() const override; | 220 WebUI* GetCommittedWebUI() const override; |
221 virtual WebUI* GetCommittedWebUI() const override; | 221 void SetUserAgentOverride(const std::string& override) override; |
222 virtual void SetUserAgentOverride(const std::string& override) override; | 222 const std::string& GetUserAgentOverride() const override; |
223 virtual const std::string& GetUserAgentOverride() const override; | 223 void EnableTreeOnlyAccessibilityMode() override; |
224 virtual void EnableTreeOnlyAccessibilityMode() override; | 224 bool IsTreeOnlyAccessibilityModeForTesting() const override; |
225 virtual bool IsTreeOnlyAccessibilityModeForTesting() const override; | 225 bool IsFullAccessibilityModeForTesting() const override; |
226 virtual bool IsFullAccessibilityModeForTesting() const override; | |
227 #if defined(OS_WIN) | 226 #if defined(OS_WIN) |
228 virtual void SetParentNativeViewAccessible( | 227 virtual void SetParentNativeViewAccessible( |
229 gfx::NativeViewAccessible accessible_parent) override; | 228 gfx::NativeViewAccessible accessible_parent) override; |
230 #endif | 229 #endif |
231 virtual const base::string16& GetTitle() const override; | 230 const base::string16& GetTitle() const override; |
232 virtual int32 GetMaxPageID() override; | 231 int32 GetMaxPageID() override; |
233 virtual int32 GetMaxPageIDForSiteInstance( | 232 int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) override; |
234 SiteInstance* site_instance) override; | 233 SiteInstanceImpl* GetSiteInstance() const override; |
235 virtual SiteInstanceImpl* GetSiteInstance() const override; | 234 SiteInstanceImpl* GetPendingSiteInstance() const override; |
236 virtual SiteInstanceImpl* GetPendingSiteInstance() const override; | 235 bool IsLoading() const override; |
237 virtual bool IsLoading() const override; | 236 bool IsLoadingToDifferentDocument() const override; |
238 virtual bool IsLoadingToDifferentDocument() const override; | 237 bool IsWaitingForResponse() const override; |
239 virtual bool IsWaitingForResponse() const override; | 238 const net::LoadStateWithParam& GetLoadState() const override; |
240 virtual const net::LoadStateWithParam& GetLoadState() const override; | 239 const base::string16& GetLoadStateHost() const override; |
241 virtual const base::string16& GetLoadStateHost() const override; | 240 uint64 GetUploadSize() const override; |
242 virtual uint64 GetUploadSize() const override; | 241 uint64 GetUploadPosition() const override; |
243 virtual uint64 GetUploadPosition() const override; | 242 std::set<GURL> GetSitesInTab() const override; |
244 virtual std::set<GURL> GetSitesInTab() const override; | 243 const std::string& GetEncoding() const override; |
245 virtual const std::string& GetEncoding() const override; | 244 bool DisplayedInsecureContent() const override; |
246 virtual bool DisplayedInsecureContent() const override; | 245 void IncrementCapturerCount(const gfx::Size& capture_size) override; |
247 virtual void IncrementCapturerCount(const gfx::Size& capture_size) override; | 246 void DecrementCapturerCount() override; |
248 virtual void DecrementCapturerCount() override; | 247 int GetCapturerCount() const override; |
249 virtual int GetCapturerCount() const override; | 248 bool IsAudioMuted() const override; |
250 virtual bool IsAudioMuted() const override; | 249 void SetAudioMuted(bool mute) override; |
251 virtual void SetAudioMuted(bool mute) override; | 250 bool IsCrashed() const override; |
252 virtual bool IsCrashed() const override; | 251 void SetIsCrashed(base::TerminationStatus status, int error_code) override; |
253 virtual void SetIsCrashed(base::TerminationStatus status, | 252 base::TerminationStatus GetCrashedStatus() const override; |
254 int error_code) override; | 253 bool IsBeingDestroyed() const override; |
255 virtual base::TerminationStatus GetCrashedStatus() const override; | 254 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; |
256 virtual bool IsBeingDestroyed() const override; | 255 base::TimeTicks GetLastActiveTime() const override; |
257 virtual void NotifyNavigationStateChanged( | 256 void WasShown() override; |
258 InvalidateTypes changed_flags) override; | 257 void WasHidden() override; |
259 virtual base::TimeTicks GetLastActiveTime() const override; | 258 bool NeedToFireBeforeUnload() override; |
260 virtual void WasShown() override; | 259 void DispatchBeforeUnload(bool for_cross_site_transition) override; |
261 virtual void WasHidden() override; | 260 void Stop() override; |
262 virtual bool NeedToFireBeforeUnload() override; | 261 WebContents* Clone() override; |
263 virtual void DispatchBeforeUnload(bool for_cross_site_transition) override; | 262 void ReloadFocusedFrame(bool ignore_cache) override; |
264 virtual void Stop() override; | 263 void Undo() override; |
265 virtual WebContents* Clone() override; | 264 void Redo() override; |
266 virtual void ReloadFocusedFrame(bool ignore_cache) override; | 265 void Cut() override; |
267 virtual void Undo() override; | 266 void Copy() override; |
268 virtual void Redo() override; | 267 void CopyToFindPboard() override; |
269 virtual void Cut() override; | 268 void Paste() override; |
270 virtual void Copy() override; | 269 void PasteAndMatchStyle() override; |
271 virtual void CopyToFindPboard() override; | 270 void Delete() override; |
272 virtual void Paste() override; | 271 void SelectAll() override; |
273 virtual void PasteAndMatchStyle() override; | 272 void Unselect() override; |
274 virtual void Delete() override; | 273 void Replace(const base::string16& word) override; |
275 virtual void SelectAll() override; | 274 void ReplaceMisspelling(const base::string16& word) override; |
276 virtual void Unselect() override; | 275 void NotifyContextMenuClosed( |
277 virtual void Replace(const base::string16& word) override; | |
278 virtual void ReplaceMisspelling(const base::string16& word) override; | |
279 virtual void NotifyContextMenuClosed( | |
280 const CustomContextMenuContext& context) override; | 276 const CustomContextMenuContext& context) override; |
281 virtual void ExecuteCustomContextMenuCommand( | 277 void ExecuteCustomContextMenuCommand( |
282 int action, const CustomContextMenuContext& context) override; | 278 int action, |
283 virtual gfx::NativeView GetNativeView() override; | 279 const CustomContextMenuContext& context) override; |
284 virtual gfx::NativeView GetContentNativeView() override; | 280 gfx::NativeView GetNativeView() override; |
285 virtual gfx::NativeWindow GetTopLevelNativeWindow() override; | 281 gfx::NativeView GetContentNativeView() override; |
286 virtual gfx::Rect GetContainerBounds() override; | 282 gfx::NativeWindow GetTopLevelNativeWindow() override; |
287 virtual gfx::Rect GetViewBounds() override; | 283 gfx::Rect GetContainerBounds() override; |
288 virtual DropData* GetDropData() override; | 284 gfx::Rect GetViewBounds() override; |
289 virtual void Focus() override; | 285 DropData* GetDropData() override; |
290 virtual void SetInitialFocus() override; | 286 void Focus() override; |
291 virtual void StoreFocus() override; | 287 void SetInitialFocus() override; |
292 virtual void RestoreFocus() override; | 288 void StoreFocus() override; |
293 virtual void FocusThroughTabTraversal(bool reverse) override; | 289 void RestoreFocus() override; |
294 virtual bool ShowingInterstitialPage() const override; | 290 void FocusThroughTabTraversal(bool reverse) override; |
295 virtual InterstitialPage* GetInterstitialPage() const override; | 291 bool ShowingInterstitialPage() const override; |
296 virtual bool IsSavable() override; | 292 InterstitialPage* GetInterstitialPage() const override; |
297 virtual void OnSavePage() override; | 293 bool IsSavable() override; |
298 virtual bool SavePage(const base::FilePath& main_file, | 294 void OnSavePage() override; |
299 const base::FilePath& dir_path, | 295 bool SavePage(const base::FilePath& main_file, |
300 SavePageType save_type) override; | 296 const base::FilePath& dir_path, |
301 virtual void SaveFrame(const GURL& url, | 297 SavePageType save_type) override; |
302 const Referrer& referrer) override; | 298 void SaveFrame(const GURL& url, const Referrer& referrer) override; |
303 virtual void GenerateMHTML( | 299 void GenerateMHTML(const base::FilePath& file, |
304 const base::FilePath& file, | 300 const base::Callback<void(int64)>& callback) override; |
305 const base::Callback<void(int64)>& callback) | 301 const std::string& GetContentsMimeType() const override; |
306 override; | 302 bool WillNotifyDisconnection() const override; |
307 virtual const std::string& GetContentsMimeType() const override; | 303 void SetOverrideEncoding(const std::string& encoding) override; |
308 virtual bool WillNotifyDisconnection() const override; | 304 void ResetOverrideEncoding() override; |
309 virtual void SetOverrideEncoding(const std::string& encoding) override; | 305 RendererPreferences* GetMutableRendererPrefs() override; |
310 virtual void ResetOverrideEncoding() override; | 306 void Close() override; |
311 virtual RendererPreferences* GetMutableRendererPrefs() override; | 307 void SystemDragEnded() override; |
312 virtual void Close() override; | 308 void UserGestureDone() override; |
313 virtual void SystemDragEnded() override; | 309 void SetClosedByUserGesture(bool value) override; |
314 virtual void UserGestureDone() override; | 310 bool GetClosedByUserGesture() const override; |
315 virtual void SetClosedByUserGesture(bool value) override; | 311 void ViewSource() override; |
316 virtual bool GetClosedByUserGesture() const override; | 312 void ViewFrameSource(const GURL& url, const PageState& page_state) override; |
317 virtual void ViewSource() override; | 313 int GetMinimumZoomPercent() const override; |
318 virtual void ViewFrameSource(const GURL& url, | 314 int GetMaximumZoomPercent() const override; |
319 const PageState& page_state) override; | 315 gfx::Size GetPreferredSize() const override; |
320 virtual int GetMinimumZoomPercent() const override; | 316 bool GotResponseToLockMouseRequest(bool allowed) override; |
321 virtual int GetMaximumZoomPercent() const override; | 317 bool HasOpener() const override; |
322 virtual gfx::Size GetPreferredSize() const override; | 318 void DidChooseColorInColorChooser(SkColor color) override; |
323 virtual bool GotResponseToLockMouseRequest(bool allowed) override; | 319 void DidEndColorChooser() override; |
324 virtual bool HasOpener() const override; | 320 int DownloadImage(const GURL& url, |
325 virtual void DidChooseColorInColorChooser(SkColor color) override; | 321 bool is_favicon, |
326 virtual void DidEndColorChooser() override; | 322 uint32_t max_bitmap_size, |
327 virtual int DownloadImage(const GURL& url, | 323 const ImageDownloadCallback& callback) override; |
328 bool is_favicon, | 324 bool IsSubframe() const override; |
329 uint32_t max_bitmap_size, | 325 void Find(int request_id, |
330 const ImageDownloadCallback& callback) override; | 326 const base::string16& search_text, |
331 virtual bool IsSubframe() const override; | 327 const blink::WebFindOptions& options) override; |
332 virtual void Find(int request_id, | 328 void StopFinding(StopFindAction action) override; |
333 const base::string16& search_text, | 329 void InsertCSS(const std::string& css) override; |
334 const blink::WebFindOptions& options) override; | 330 bool WasRecentlyAudible() override; |
335 virtual void StopFinding(StopFindAction action) override; | 331 void GetManifest(const GetManifestCallback&) override; |
336 virtual void InsertCSS(const std::string& css) override; | |
337 virtual bool WasRecentlyAudible() override; | |
338 virtual void GetManifest(const GetManifestCallback&) override; | |
339 #if defined(OS_ANDROID) | 332 #if defined(OS_ANDROID) |
340 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() | 333 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() |
341 override; | 334 override; |
342 virtual WebContentsAndroid* GetWebContentsAndroid(); | 335 virtual WebContentsAndroid* GetWebContentsAndroid(); |
343 #elif defined(OS_MACOSX) | 336 #elif defined(OS_MACOSX) |
344 virtual void SetAllowOtherViews(bool allow) override; | 337 void SetAllowOtherViews(bool allow) override; |
345 virtual bool GetAllowOtherViews() override; | 338 bool GetAllowOtherViews() override; |
346 #endif | 339 #endif |
347 | 340 |
348 // Implementation of PageNavigator. | 341 // Implementation of PageNavigator. |
349 virtual WebContents* OpenURL(const OpenURLParams& params) override; | 342 WebContents* OpenURL(const OpenURLParams& params) override; |
350 | 343 |
351 // Implementation of IPC::Sender. | 344 // Implementation of IPC::Sender. |
352 virtual bool Send(IPC::Message* message) override; | 345 bool Send(IPC::Message* message) override; |
353 | 346 |
354 // RenderFrameHostDelegate --------------------------------------------------- | 347 // RenderFrameHostDelegate --------------------------------------------------- |
355 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, | 348 bool OnMessageReceived(RenderFrameHost* render_frame_host, |
356 const IPC::Message& message) override; | 349 const IPC::Message& message) override; |
357 virtual const GURL& GetMainFrameLastCommittedURL() const override; | 350 const GURL& GetMainFrameLastCommittedURL() const override; |
358 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) override; | 351 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; |
359 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) override; | 352 void RenderFrameDeleted(RenderFrameHost* render_frame_host) override; |
360 virtual void DidStartLoading(RenderFrameHost* render_frame_host, | 353 void DidStartLoading(RenderFrameHost* render_frame_host, |
361 bool to_different_document) override; | 354 bool to_different_document) override; |
362 virtual void SwappedOut(RenderFrameHost* render_frame_host) override; | 355 void SwappedOut(RenderFrameHost* render_frame_host) override; |
363 virtual void DidDeferAfterResponseStarted( | 356 void DidDeferAfterResponseStarted( |
364 const TransitionLayerData& transition_data) override; | 357 const TransitionLayerData& transition_data) override; |
365 virtual bool WillHandleDeferAfterResponseStarted() override; | 358 bool WillHandleDeferAfterResponseStarted() override; |
366 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) override; | 359 void WorkerCrashed(RenderFrameHost* render_frame_host) override; |
367 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 360 void ShowContextMenu(RenderFrameHost* render_frame_host, |
368 const ContextMenuParams& params) override; | 361 const ContextMenuParams& params) override; |
369 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, | 362 void RunJavaScriptMessage(RenderFrameHost* render_frame_host, |
370 const base::string16& message, | 363 const base::string16& message, |
371 const base::string16& default_prompt, | 364 const base::string16& default_prompt, |
372 const GURL& frame_url, | 365 const GURL& frame_url, |
373 JavaScriptMessageType type, | 366 JavaScriptMessageType type, |
374 IPC::Message* reply_msg) override; | 367 IPC::Message* reply_msg) override; |
375 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, | 368 void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, |
376 const base::string16& message, | 369 const base::string16& message, |
377 bool is_reload, | 370 bool is_reload, |
378 IPC::Message* reply_msg) override; | 371 IPC::Message* reply_msg) override; |
379 virtual void DidAccessInitialDocument() override; | 372 void DidAccessInitialDocument() override; |
380 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) override; | 373 void DidDisownOpener(RenderFrameHost* render_frame_host) override; |
381 virtual void DocumentOnLoadCompleted( | 374 void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) override; |
382 RenderFrameHost* render_frame_host) override; | 375 void UpdateTitle(RenderFrameHost* render_frame_host, |
383 virtual void UpdateTitle(RenderFrameHost* render_frame_host, | 376 int32 page_id, |
384 int32 page_id, | 377 const base::string16& title, |
385 const base::string16& title, | 378 base::i18n::TextDirection title_direction) override; |
386 base::i18n::TextDirection title_direction) override; | 379 void UpdateEncoding(RenderFrameHost* render_frame_host, |
387 virtual void UpdateEncoding(RenderFrameHost* render_frame_host, | 380 const std::string& encoding) override; |
388 const std::string& encoding) override; | 381 WebContents* GetAsWebContents() override; |
389 virtual WebContents* GetAsWebContents() override; | 382 bool IsNeverVisible() override; |
390 virtual bool IsNeverVisible() override; | 383 AccessibilityMode GetAccessibilityMode() const override; |
391 virtual AccessibilityMode GetAccessibilityMode() const override; | 384 void AccessibilityEventReceived( |
392 virtual void AccessibilityEventReceived( | |
393 const std::vector<AXEventNotificationDetails>& details) override; | 385 const std::vector<AXEventNotificationDetails>& details) override; |
394 virtual RenderFrameHost* GetGuestByInstanceID(int browser_plugin_instance_id) | 386 RenderFrameHost* GetGuestByInstanceID( |
395 override; | 387 int browser_plugin_instance_id) override; |
396 #if defined(OS_WIN) | 388 #if defined(OS_WIN) |
397 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() override; | 389 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() override; |
398 #endif | 390 #endif |
399 | 391 |
400 // RenderViewHostDelegate ---------------------------------------------------- | 392 // RenderViewHostDelegate ---------------------------------------------------- |
401 virtual RenderViewHostDelegateView* GetDelegateView() override; | 393 RenderViewHostDelegateView* GetDelegateView() override; |
402 virtual bool OnMessageReceived(RenderViewHost* render_view_host, | 394 bool OnMessageReceived(RenderViewHost* render_view_host, |
403 const IPC::Message& message) override; | 395 const IPC::Message& message) override; |
404 // RenderFrameHostDelegate has the same method, so list it there because this | 396 // RenderFrameHostDelegate has the same method, so list it there because this |
405 // interface is going away. | 397 // interface is going away. |
406 // virtual WebContents* GetAsWebContents() override; | 398 // virtual WebContents* GetAsWebContents() override; |
407 virtual gfx::Rect GetRootWindowResizerRect() const override; | 399 gfx::Rect GetRootWindowResizerRect() const override; |
408 virtual void RenderViewCreated(RenderViewHost* render_view_host) override; | 400 void RenderViewCreated(RenderViewHost* render_view_host) override; |
409 virtual void RenderViewReady(RenderViewHost* render_view_host) override; | 401 void RenderViewReady(RenderViewHost* render_view_host) override; |
410 virtual void RenderViewTerminated(RenderViewHost* render_view_host, | 402 void RenderViewTerminated(RenderViewHost* render_view_host, |
411 base::TerminationStatus status, | 403 base::TerminationStatus status, |
412 int error_code) override; | 404 int error_code) override; |
413 virtual void RenderViewDeleted(RenderViewHost* render_view_host) override; | 405 void RenderViewDeleted(RenderViewHost* render_view_host) override; |
414 virtual void UpdateState(RenderViewHost* render_view_host, | 406 void UpdateState(RenderViewHost* render_view_host, |
415 int32 rvh_page_id, | 407 int32 rvh_page_id, |
416 int32 page_id, | 408 int32 page_id, |
417 const PageState& page_state) override; | 409 const PageState& page_state) override; |
418 virtual void UpdateTargetURL(const GURL& url) override; | 410 void UpdateTargetURL(const GURL& url) override; |
419 virtual void Close(RenderViewHost* render_view_host) override; | 411 void Close(RenderViewHost* render_view_host) override; |
420 virtual void RequestMove(const gfx::Rect& new_bounds) override; | 412 void RequestMove(const gfx::Rect& new_bounds) override; |
421 virtual void DidCancelLoading() override; | 413 void DidCancelLoading() override; |
422 virtual void DocumentAvailableInMainFrame( | 414 void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) override; |
423 RenderViewHost* render_view_host) override; | 415 void RouteCloseEvent(RenderViewHost* rvh) override; |
424 virtual void RouteCloseEvent(RenderViewHost* rvh) override; | 416 void RouteMessageEvent(RenderViewHost* rvh, |
425 virtual void RouteMessageEvent( | 417 const ViewMsg_PostMessage_Params& params) override; |
426 RenderViewHost* rvh, | 418 bool AddMessageToConsole(int32 level, |
427 const ViewMsg_PostMessage_Params& params) override; | 419 const base::string16& message, |
428 virtual bool AddMessageToConsole(int32 level, | 420 int32 line_no, |
429 const base::string16& message, | 421 const base::string16& source_id) override; |
430 int32 line_no, | 422 RendererPreferences GetRendererPrefs( |
431 const base::string16& source_id) override; | |
432 virtual RendererPreferences GetRendererPrefs( | |
433 BrowserContext* browser_context) const override; | 423 BrowserContext* browser_context) const override; |
434 virtual WebPreferences ComputeWebkitPrefs() override; | 424 WebPreferences ComputeWebkitPrefs() override; |
435 virtual void OnUserGesture() override; | 425 void OnUserGesture() override; |
436 virtual void OnIgnoredUIEvent() override; | 426 void OnIgnoredUIEvent() override; |
437 virtual void RendererUnresponsive(RenderViewHost* render_view_host) override; | 427 void RendererUnresponsive(RenderViewHost* render_view_host) override; |
438 virtual void RendererResponsive(RenderViewHost* render_view_host) override; | 428 void RendererResponsive(RenderViewHost* render_view_host) override; |
439 virtual void LoadStateChanged(const GURL& url, | 429 void LoadStateChanged(const GURL& url, |
440 const net::LoadStateWithParam& load_state, | 430 const net::LoadStateWithParam& load_state, |
441 uint64 upload_position, | 431 uint64 upload_position, |
442 uint64 upload_size) override; | 432 uint64 upload_size) override; |
443 virtual void Activate() override; | 433 void Activate() override; |
444 virtual void Deactivate() override; | 434 void Deactivate() override; |
445 virtual void LostCapture() override; | 435 void LostCapture() override; |
446 virtual void HandleMouseDown() override; | 436 void HandleMouseDown() override; |
447 virtual void HandleMouseUp() override; | 437 void HandleMouseUp() override; |
448 virtual void HandlePointerActivate() override; | 438 void HandlePointerActivate() override; |
449 virtual void HandleGestureBegin() override; | 439 void HandleGestureBegin() override; |
450 virtual void HandleGestureEnd() override; | 440 void HandleGestureEnd() override; |
451 virtual void RunFileChooser( | 441 void RunFileChooser(RenderViewHost* render_view_host, |
452 RenderViewHost* render_view_host, | 442 const FileChooserParams& params) override; |
453 const FileChooserParams& params) override; | 443 void ToggleFullscreenMode(bool enter_fullscreen) override; |
454 virtual void ToggleFullscreenMode(bool enter_fullscreen) override; | 444 bool IsFullscreenForCurrentTab() const override; |
455 virtual bool IsFullscreenForCurrentTab() const override; | 445 void UpdatePreferredSize(const gfx::Size& pref_size) override; |
456 virtual void UpdatePreferredSize(const gfx::Size& pref_size) override; | 446 void ResizeDueToAutoResize(const gfx::Size& new_size) override; |
457 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) override; | 447 void RequestToLockMouse(bool user_gesture, |
458 virtual void RequestToLockMouse(bool user_gesture, | 448 bool last_unlocked_by_target) override; |
459 bool last_unlocked_by_target) override; | 449 void LostMouseLock() override; |
460 virtual void LostMouseLock() override; | 450 void CreateNewWindow( |
461 virtual void CreateNewWindow( | |
462 int render_process_id, | 451 int render_process_id, |
463 int route_id, | 452 int route_id, |
464 int main_frame_route_id, | 453 int main_frame_route_id, |
465 const ViewHostMsg_CreateWindow_Params& params, | 454 const ViewHostMsg_CreateWindow_Params& params, |
466 SessionStorageNamespace* session_storage_namespace) override; | 455 SessionStorageNamespace* session_storage_namespace) override; |
467 virtual void CreateNewWidget(int render_process_id, | 456 void CreateNewWidget(int render_process_id, |
468 int route_id, | 457 int route_id, |
469 blink::WebPopupType popup_type) override; | 458 blink::WebPopupType popup_type) override; |
470 virtual void CreateNewFullscreenWidget(int render_process_id, | 459 void CreateNewFullscreenWidget(int render_process_id, int route_id) override; |
471 int route_id) override; | 460 void ShowCreatedWindow(int route_id, |
472 virtual void ShowCreatedWindow(int route_id, | 461 WindowOpenDisposition disposition, |
473 WindowOpenDisposition disposition, | 462 const gfx::Rect& initial_pos, |
474 const gfx::Rect& initial_pos, | 463 bool user_gesture) override; |
475 bool user_gesture) override; | 464 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos) override; |
476 virtual void ShowCreatedWidget(int route_id, | 465 void ShowCreatedFullscreenWidget(int route_id) override; |
477 const gfx::Rect& initial_pos) override; | 466 void RequestMediaAccessPermission( |
478 virtual void ShowCreatedFullscreenWidget(int route_id) override; | |
479 virtual void RequestMediaAccessPermission( | |
480 const MediaStreamRequest& request, | 467 const MediaStreamRequest& request, |
481 const MediaResponseCallback& callback) override; | 468 const MediaResponseCallback& callback) override; |
482 virtual bool CheckMediaAccessPermission(const GURL& security_origin, | 469 bool CheckMediaAccessPermission(const GURL& security_origin, |
483 MediaStreamType type) override; | 470 MediaStreamType type) override; |
484 virtual SessionStorageNamespace* GetSessionStorageNamespace( | 471 SessionStorageNamespace* GetSessionStorageNamespace( |
485 SiteInstance* instance) override; | 472 SiteInstance* instance) override; |
486 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; | 473 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; |
487 virtual FrameTree* GetFrameTree() override; | 474 FrameTree* GetFrameTree() override; |
488 | 475 |
489 // NavigatorDelegate --------------------------------------------------------- | 476 // NavigatorDelegate --------------------------------------------------------- |
490 | 477 |
491 virtual void DidStartProvisionalLoad( | 478 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
492 RenderFrameHostImpl* render_frame_host, | 479 const GURL& validated_url, |
493 const GURL& validated_url, | 480 bool is_error_page, |
494 bool is_error_page, | 481 bool is_iframe_srcdoc) override; |
495 bool is_iframe_srcdoc) override; | 482 void DidStartNavigationTransition( |
496 virtual void DidStartNavigationTransition( | |
497 RenderFrameHostImpl* render_frame_host) override; | 483 RenderFrameHostImpl* render_frame_host) override; |
498 virtual void DidFailProvisionalLoadWithError( | 484 void DidFailProvisionalLoadWithError( |
499 RenderFrameHostImpl* render_frame_host, | 485 RenderFrameHostImpl* render_frame_host, |
500 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) | 486 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) |
501 override; | 487 override; |
502 virtual void DidFailLoadWithError( | 488 void DidFailLoadWithError(RenderFrameHostImpl* render_frame_host, |
503 RenderFrameHostImpl* render_frame_host, | 489 const GURL& url, |
504 const GURL& url, | 490 int error_code, |
505 int error_code, | 491 const base::string16& error_description) override; |
506 const base::string16& error_description) override; | 492 void DidCommitProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
507 virtual void DidCommitProvisionalLoad( | 493 const GURL& url, |
508 RenderFrameHostImpl* render_frame_host, | 494 ui::PageTransition transition_type) override; |
509 const GURL& url, | 495 void DidNavigateMainFramePreCommit(bool navigation_is_within_page) override; |
510 ui::PageTransition transition_type) override; | 496 void DidNavigateMainFramePostCommit( |
511 virtual void DidNavigateMainFramePreCommit( | |
512 bool navigation_is_within_page) override; | |
513 virtual void DidNavigateMainFramePostCommit( | |
514 const LoadCommittedDetails& details, | 497 const LoadCommittedDetails& details, |
515 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override; | 498 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override; |
516 virtual void DidNavigateAnyFramePostCommit( | 499 void DidNavigateAnyFramePostCommit( |
517 RenderFrameHostImpl* render_frame_host, | 500 RenderFrameHostImpl* render_frame_host, |
518 const LoadCommittedDetails& details, | 501 const LoadCommittedDetails& details, |
519 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override; | 502 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override; |
520 virtual void SetMainFrameMimeType(const std::string& mime_type) override; | 503 void SetMainFrameMimeType(const std::string& mime_type) override; |
521 virtual bool CanOverscrollContent() const override; | 504 bool CanOverscrollContent() const override; |
522 virtual void NotifyChangedNavigationState( | 505 void NotifyChangedNavigationState(InvalidateTypes changed_flags) override; |
523 InvalidateTypes changed_flags) override; | 506 void AboutToNavigateRenderFrame( |
524 virtual void AboutToNavigateRenderFrame( | |
525 RenderFrameHostImpl* render_frame_host) override; | 507 RenderFrameHostImpl* render_frame_host) override; |
526 virtual void DidStartNavigationToPendingEntry( | 508 void DidStartNavigationToPendingEntry( |
527 RenderFrameHostImpl* render_frame_host, | 509 RenderFrameHostImpl* render_frame_host, |
528 const GURL& url, | 510 const GURL& url, |
529 NavigationController::ReloadType reload_type) override; | 511 NavigationController::ReloadType reload_type) override; |
530 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 512 void RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
531 const OpenURLParams& params) override; | 513 const OpenURLParams& params) override; |
532 virtual bool ShouldPreserveAbortedURLs() override; | 514 bool ShouldPreserveAbortedURLs() override; |
533 | 515 |
534 // RenderWidgetHostDelegate -------------------------------------------------- | 516 // RenderWidgetHostDelegate -------------------------------------------------- |
535 | 517 |
536 virtual void RenderWidgetDeleted( | 518 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; |
537 RenderWidgetHostImpl* render_widget_host) override; | 519 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
538 virtual bool PreHandleKeyboardEvent( | 520 bool* is_keyboard_shortcut) override; |
539 const NativeWebKeyboardEvent& event, | 521 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
540 bool* is_keyboard_shortcut) override; | 522 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override; |
541 virtual void HandleKeyboardEvent( | 523 bool PreHandleGestureEvent(const blink::WebGestureEvent& event) override; |
542 const NativeWebKeyboardEvent& event) override; | 524 bool HandleGestureEvent(const blink::WebGestureEvent& event) override; |
543 virtual bool HandleWheelEvent( | 525 void DidSendScreenRects(RenderWidgetHostImpl* rwh) override; |
544 const blink::WebMouseWheelEvent& event) override; | 526 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() override; |
545 virtual bool PreHandleGestureEvent( | 527 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager() |
546 const blink::WebGestureEvent& event) override; | |
547 virtual bool HandleGestureEvent( | |
548 const blink::WebGestureEvent& event) override; | |
549 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) override; | |
550 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() | |
551 override; | 528 override; |
552 virtual BrowserAccessibilityManager* | |
553 GetOrCreateRootBrowserAccessibilityManager() override; | |
554 | 529 |
555 // RenderFrameHostManager::Delegate ------------------------------------------ | 530 // RenderFrameHostManager::Delegate ------------------------------------------ |
556 | 531 |
557 virtual bool CreateRenderViewForRenderManager( | 532 bool CreateRenderViewForRenderManager( |
558 RenderViewHost* render_view_host, | 533 RenderViewHost* render_view_host, |
559 int opener_route_id, | 534 int opener_route_id, |
560 int proxy_routing_id, | 535 int proxy_routing_id, |
561 bool for_main_frame_navigation) override; | 536 bool for_main_frame_navigation) override; |
562 virtual bool CreateRenderFrameForRenderManager( | 537 bool CreateRenderFrameForRenderManager(RenderFrameHost* render_frame_host, |
563 RenderFrameHost* render_frame_host, | 538 int parent_routing_id) override; |
564 int parent_routing_id) override; | 539 void BeforeUnloadFiredFromRenderManager( |
565 virtual void BeforeUnloadFiredFromRenderManager( | 540 bool proceed, |
566 bool proceed, const base::TimeTicks& proceed_time, | 541 const base::TimeTicks& proceed_time, |
567 bool* proceed_to_fire_unload) override; | 542 bool* proceed_to_fire_unload) override; |
568 virtual void RenderProcessGoneFromRenderManager( | 543 void RenderProcessGoneFromRenderManager( |
569 RenderViewHost* render_view_host) override; | 544 RenderViewHost* render_view_host) override; |
570 virtual void UpdateRenderViewSizeForRenderManager() override; | 545 void UpdateRenderViewSizeForRenderManager() override; |
571 virtual void CancelModalDialogsForRenderManager() override; | 546 void CancelModalDialogsForRenderManager() override; |
572 virtual void NotifySwappedFromRenderManager(RenderFrameHost* old_host, | 547 void NotifySwappedFromRenderManager(RenderFrameHost* old_host, |
573 RenderFrameHost* new_host, | 548 RenderFrameHost* new_host, |
574 bool is_main_frame) override; | 549 bool is_main_frame) override; |
575 virtual int CreateOpenerRenderViewsForRenderManager( | 550 int CreateOpenerRenderViewsForRenderManager(SiteInstance* instance) override; |
576 SiteInstance* instance) override; | 551 NavigationControllerImpl& GetControllerForRenderManager() override; |
577 virtual NavigationControllerImpl& | 552 WebUIImpl* CreateWebUIForRenderManager(const GURL& url) override; |
578 GetControllerForRenderManager() override; | 553 NavigationEntry* GetLastCommittedNavigationEntryForRenderManager() override; |
579 virtual WebUIImpl* CreateWebUIForRenderManager(const GURL& url) override; | 554 bool FocusLocationBarByDefault() override; |
580 virtual NavigationEntry* | 555 void SetFocusToLocationBar(bool select_all) override; |
581 GetLastCommittedNavigationEntryForRenderManager() override; | 556 bool IsHidden() override; |
582 virtual bool FocusLocationBarByDefault() override; | |
583 virtual void SetFocusToLocationBar(bool select_all) override; | |
584 virtual bool IsHidden() override; | |
585 | 557 |
586 // NotificationObserver ------------------------------------------------------ | 558 // NotificationObserver ------------------------------------------------------ |
587 | 559 |
588 virtual void Observe(int type, | 560 void Observe(int type, |
589 const NotificationSource& source, | 561 const NotificationSource& source, |
590 const NotificationDetails& details) override; | 562 const NotificationDetails& details) override; |
591 | 563 |
592 // NavigationControllerDelegate ---------------------------------------------- | 564 // NavigationControllerDelegate ---------------------------------------------- |
593 | 565 |
594 virtual WebContents* GetWebContents() override; | 566 WebContents* GetWebContents() override; |
595 virtual void NotifyNavigationEntryCommitted( | 567 void NotifyNavigationEntryCommitted( |
596 const LoadCommittedDetails& load_details) override; | 568 const LoadCommittedDetails& load_details) override; |
597 | 569 |
598 // Invoked before a form repost warning is shown. | 570 // Invoked before a form repost warning is shown. |
599 virtual void NotifyBeforeFormRepostWarningShow() override; | 571 void NotifyBeforeFormRepostWarningShow() override; |
600 | 572 |
601 // Activate this WebContents and show a form repost warning. | 573 // Activate this WebContents and show a form repost warning. |
602 virtual void ActivateAndShowRepostFormWarningDialog() override; | 574 void ActivateAndShowRepostFormWarningDialog() override; |
603 | 575 |
604 // Whether the initial empty page of this view has been accessed by another | 576 // Whether the initial empty page of this view has been accessed by another |
605 // page, making it unsafe to show the pending URL. Always false after the | 577 // page, making it unsafe to show the pending URL. Always false after the |
606 // first commit. | 578 // first commit. |
607 virtual bool HasAccessedInitialDocument() override; | 579 bool HasAccessedInitialDocument() override; |
608 | 580 |
609 // Updates the max page ID for the current SiteInstance in this | 581 // Updates the max page ID for the current SiteInstance in this |
610 // WebContentsImpl to be at least |page_id|. | 582 // WebContentsImpl to be at least |page_id|. |
611 virtual void UpdateMaxPageID(int32 page_id) override; | 583 void UpdateMaxPageID(int32 page_id) override; |
612 | 584 |
613 // Updates the max page ID for the given SiteInstance in this WebContentsImpl | 585 // Updates the max page ID for the given SiteInstance in this WebContentsImpl |
614 // to be at least |page_id|. | 586 // to be at least |page_id|. |
615 virtual void UpdateMaxPageIDForSiteInstance(SiteInstance* site_instance, | 587 void UpdateMaxPageIDForSiteInstance(SiteInstance* site_instance, |
616 int32 page_id) override; | 588 int32 page_id) override; |
617 | 589 |
618 // Copy the current map of SiteInstance ID to max page ID from another tab. | 590 // Copy the current map of SiteInstance ID to max page ID from another tab. |
619 // This is necessary when this tab adopts the NavigationEntries from | 591 // This is necessary when this tab adopts the NavigationEntries from |
620 // |web_contents|. | 592 // |web_contents|. |
621 virtual void CopyMaxPageIDsFrom(WebContents* web_contents) override; | 593 void CopyMaxPageIDsFrom(WebContents* web_contents) override; |
622 | 594 |
623 // Called by the NavigationController to cause the WebContentsImpl to navigate | 595 // Called by the NavigationController to cause the WebContentsImpl to navigate |
624 // to the current pending entry. The NavigationController should be called | 596 // to the current pending entry. The NavigationController should be called |
625 // back with RendererDidNavigate on success or DiscardPendingEntry on failure. | 597 // back with RendererDidNavigate on success or DiscardPendingEntry on failure. |
626 // The callbacks can be inside of this function, or at some future time. | 598 // The callbacks can be inside of this function, or at some future time. |
627 // | 599 // |
628 // The entry has a PageID of -1 if newly created (corresponding to navigation | 600 // The entry has a PageID of -1 if newly created (corresponding to navigation |
629 // to a new URL). | 601 // to a new URL). |
630 // | 602 // |
631 // If this method returns false, then the navigation is discarded (equivalent | 603 // If this method returns false, then the navigation is discarded (equivalent |
632 // to calling DiscardPendingEntry on the NavigationController). | 604 // to calling DiscardPendingEntry on the NavigationController). |
633 virtual bool NavigateToPendingEntry( | 605 bool NavigateToPendingEntry( |
634 NavigationController::ReloadType reload_type) override; | 606 NavigationController::ReloadType reload_type) override; |
635 | 607 |
636 // Sets the history for this WebContentsImpl to |history_length| entries, and | 608 // Sets the history for this WebContentsImpl to |history_length| entries, and |
637 // moves the current page_id to the last entry in the list if it's valid. | 609 // moves the current page_id to the last entry in the list if it's valid. |
638 // This is mainly used when a prerendered page is swapped into the current | 610 // This is mainly used when a prerendered page is swapped into the current |
639 // tab. The method is virtual for testing. | 611 // tab. The method is virtual for testing. |
640 virtual void SetHistoryLengthAndPrune( | 612 void SetHistoryLengthAndPrune(const SiteInstance* site_instance, |
641 const SiteInstance* site_instance, | 613 int merge_history_length, |
642 int merge_history_length, | 614 int32 minimum_page_id) override; |
643 int32 minimum_page_id) override; | |
644 | 615 |
645 // Called by InterstitialPageImpl when it creates a RenderFrameHost. | 616 // Called by InterstitialPageImpl when it creates a RenderFrameHost. |
646 virtual void RenderFrameForInterstitialPageCreated( | 617 void RenderFrameForInterstitialPageCreated( |
647 RenderFrameHost* render_frame_host) override; | 618 RenderFrameHost* render_frame_host) override; |
648 | 619 |
649 // Sets the passed interstitial as the currently showing interstitial. | 620 // Sets the passed interstitial as the currently showing interstitial. |
650 // No interstitial page should already be attached. | 621 // No interstitial page should already be attached. |
651 virtual void AttachInterstitialPage( | 622 void AttachInterstitialPage(InterstitialPageImpl* interstitial_page) override; |
652 InterstitialPageImpl* interstitial_page) override; | |
653 | 623 |
654 // Unsets the currently showing interstitial. | 624 // Unsets the currently showing interstitial. |
655 virtual void DetachInterstitialPage() override; | 625 void DetachInterstitialPage() override; |
656 | 626 |
657 // Changes the IsLoading state and notifies the delegate as needed. | 627 // Changes the IsLoading state and notifies the delegate as needed. |
658 // |details| is used to provide details on the load that just finished | 628 // |details| is used to provide details on the load that just finished |
659 // (but can be null if not applicable). | 629 // (but can be null if not applicable). |
660 virtual void SetIsLoading(RenderViewHost* render_view_host, | 630 void SetIsLoading(RenderViewHost* render_view_host, |
661 bool is_loading, | 631 bool is_loading, |
662 bool to_different_document, | 632 bool to_different_document, |
663 LoadNotificationDetails* details) override; | 633 LoadNotificationDetails* details) override; |
664 | 634 |
665 typedef base::Callback<void(WebContents*)> CreatedCallback; | 635 typedef base::Callback<void(WebContents*)> CreatedCallback; |
666 | 636 |
667 // Requests the renderer to select the region between two points in the | 637 // Requests the renderer to select the region between two points in the |
668 // currently focused frame. | 638 // currently focused frame. |
669 void SelectRange(const gfx::Point& start, const gfx::Point& end); | 639 void SelectRange(const gfx::Point& start, const gfx::Point& end); |
670 | 640 |
671 // Notifies the main frame that it can continue navigation (if it was deferred | 641 // Notifies the main frame that it can continue navigation (if it was deferred |
672 // immediately at first response). | 642 // immediately at first response). |
673 void ResumeResponseDeferredAtStart(); | 643 void ResumeResponseDeferredAtStart(); |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1214 scoped_ptr<WebContentsAudioMuter> audio_muter_; |
1245 | 1215 |
1246 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1216 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
1247 | 1217 |
1248 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1218 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1249 }; | 1219 }; |
1250 | 1220 |
1251 } // namespace content | 1221 } // namespace content |
1252 | 1222 |
1253 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1223 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |