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