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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 // Implementation of IPC::Sender. | 315 // Implementation of IPC::Sender. |
316 virtual bool Send(IPC::Message* message) OVERRIDE; | 316 virtual bool Send(IPC::Message* message) OVERRIDE; |
317 | 317 |
318 // RenderFrameHostDelegate --------------------------------------------------- | 318 // RenderFrameHostDelegate --------------------------------------------------- |
319 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, | 319 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, |
320 const IPC::Message& message) OVERRIDE; | 320 const IPC::Message& message) OVERRIDE; |
321 virtual const GURL& GetMainFrameLastCommittedURL() const OVERRIDE; | 321 virtual const GURL& GetMainFrameLastCommittedURL() const OVERRIDE; |
322 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; | 322 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; |
323 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; | 323 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; |
324 virtual void DidStartLoading(RenderFrameHost* render_frame_host, | |
325 bool to_different_document) OVERRIDE; | |
326 virtual void DidStopLoading(RenderFrameHost* render_frame_host) OVERRIDE; | |
327 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE; | 324 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE; |
328 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE; | 325 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE; |
329 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 326 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
330 const ContextMenuParams& params) OVERRIDE; | 327 const ContextMenuParams& params) OVERRIDE; |
331 virtual void RunJavaScriptMessage(RenderFrameHost* rfh, | 328 virtual void RunJavaScriptMessage(RenderFrameHost* rfh, |
332 const base::string16& message, | 329 const base::string16& message, |
333 const base::string16& default_prompt, | 330 const base::string16& default_prompt, |
334 const GURL& frame_url, | 331 const GURL& frame_url, |
335 JavaScriptMessageType type, | 332 JavaScriptMessageType type, |
336 IPC::Message* reply_msg) OVERRIDE; | 333 IPC::Message* reply_msg) OVERRIDE; |
(...skipping 26 matching lines...) Expand all Loading... |
363 virtual void UpdateTitle(RenderViewHost* render_view_host, | 360 virtual void UpdateTitle(RenderViewHost* render_view_host, |
364 int32 page_id, | 361 int32 page_id, |
365 const base::string16& title, | 362 const base::string16& title, |
366 base::i18n::TextDirection title_direction) OVERRIDE; | 363 base::i18n::TextDirection title_direction) OVERRIDE; |
367 virtual void UpdateEncoding(RenderViewHost* render_view_host, | 364 virtual void UpdateEncoding(RenderViewHost* render_view_host, |
368 const std::string& encoding) OVERRIDE; | 365 const std::string& encoding) OVERRIDE; |
369 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE; | 366 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE; |
370 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; | 367 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; |
371 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE; | 368 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE; |
372 virtual void DidCancelLoading() OVERRIDE; | 369 virtual void DidCancelLoading() OVERRIDE; |
373 virtual void DidChangeLoadProgress(double progress) OVERRIDE; | |
374 virtual void DocumentAvailableInMainFrame( | 370 virtual void DocumentAvailableInMainFrame( |
375 RenderViewHost* render_view_host) OVERRIDE; | 371 RenderViewHost* render_view_host) OVERRIDE; |
376 virtual void DocumentOnLoadCompletedInMainFrame( | 372 virtual void DocumentOnLoadCompletedInMainFrame( |
377 RenderViewHost* render_view_host, | 373 RenderViewHost* render_view_host, |
378 int32 page_id) OVERRIDE; | 374 int32 page_id) OVERRIDE; |
379 virtual void RouteCloseEvent(RenderViewHost* rvh) OVERRIDE; | 375 virtual void RouteCloseEvent(RenderViewHost* rvh) OVERRIDE; |
380 virtual void RouteMessageEvent( | 376 virtual void RouteMessageEvent( |
381 RenderViewHost* rvh, | 377 RenderViewHost* rvh, |
382 const ViewMsg_PostMessage_Params& params) OVERRIDE; | 378 const ViewMsg_PostMessage_Params& params) OVERRIDE; |
383 virtual bool AddMessageToConsole(int32 level, | 379 virtual bool AddMessageToConsole(int32 level, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 virtual void SetMainFrameMimeType(const std::string& mime_type) OVERRIDE; | 476 virtual void SetMainFrameMimeType(const std::string& mime_type) OVERRIDE; |
481 virtual bool CanOverscrollContent() OVERRIDE; | 477 virtual bool CanOverscrollContent() OVERRIDE; |
482 virtual void NotifyChangedNavigationState( | 478 virtual void NotifyChangedNavigationState( |
483 InvalidateTypes changed_flags) OVERRIDE; | 479 InvalidateTypes changed_flags) OVERRIDE; |
484 virtual void AboutToNavigateRenderFrame( | 480 virtual void AboutToNavigateRenderFrame( |
485 RenderFrameHostImpl* render_frame_host) OVERRIDE; | 481 RenderFrameHostImpl* render_frame_host) OVERRIDE; |
486 virtual void DidStartNavigationToPendingEntry( | 482 virtual void DidStartNavigationToPendingEntry( |
487 RenderFrameHostImpl* render_frame_host, | 483 RenderFrameHostImpl* render_frame_host, |
488 const GURL& url, | 484 const GURL& url, |
489 NavigationController::ReloadType reload_type) OVERRIDE; | 485 NavigationController::ReloadType reload_type) OVERRIDE; |
| 486 virtual void DidStartLoading(RenderFrameHostImpl* render_frame_host, |
| 487 bool to_different_document) OVERRIDE; |
| 488 virtual void DidStopLoading(RenderFrameHostImpl* render_frame_host) OVERRIDE; |
| 489 virtual void DidChangeLoadProgress(double progress) OVERRIDE; |
490 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 490 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
491 const OpenURLParams& params) OVERRIDE; | 491 const OpenURLParams& params) OVERRIDE; |
492 virtual bool ShouldPreserveAbortedURLs() OVERRIDE; | 492 virtual bool ShouldPreserveAbortedURLs() OVERRIDE; |
493 | 493 |
494 // RenderWidgetHostDelegate -------------------------------------------------- | 494 // RenderWidgetHostDelegate -------------------------------------------------- |
495 | 495 |
496 virtual void RenderWidgetDeleted( | 496 virtual void RenderWidgetDeleted( |
497 RenderWidgetHostImpl* render_widget_host) OVERRIDE; | 497 RenderWidgetHostImpl* render_widget_host) OVERRIDE; |
498 virtual bool PreHandleKeyboardEvent( | 498 virtual bool PreHandleKeyboardEvent( |
499 const NativeWebKeyboardEvent& event, | 499 const NativeWebKeyboardEvent& event, |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 | 1097 |
1098 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1098 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
1099 bool last_dialog_suppressed_; | 1099 bool last_dialog_suppressed_; |
1100 | 1100 |
1101 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1101 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1102 }; | 1102 }; |
1103 | 1103 |
1104 } // namespace content | 1104 } // namespace content |
1105 | 1105 |
1106 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1106 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |