| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 // Implementation of IPC::Sender. | 299 // Implementation of IPC::Sender. |
| 300 virtual bool Send(IPC::Message* message) OVERRIDE; | 300 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 301 | 301 |
| 302 // RenderFrameHostDelegate --------------------------------------------------- | 302 // RenderFrameHostDelegate --------------------------------------------------- |
| 303 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, | 303 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, |
| 304 const IPC::Message& message) OVERRIDE; | 304 const IPC::Message& message) OVERRIDE; |
| 305 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; | 305 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; |
| 306 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; | 306 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; |
| 307 virtual void DidStartLoading(RenderFrameHost* render_frame_host) OVERRIDE; | 307 virtual void DidStartLoading(RenderFrameHost* render_frame_host) OVERRIDE; |
| 308 virtual void DidStopLoading(RenderFrameHost* render_frame_host) OVERRIDE; | 308 virtual void DidStopLoading(RenderFrameHost* render_frame_host) OVERRIDE; |
| 309 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE; |
| 309 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE; | 310 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE; |
| 310 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 311 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
| 311 const ContextMenuParams& params) OVERRIDE; | 312 const ContextMenuParams& params) OVERRIDE; |
| 312 virtual WebContents* GetAsWebContents() OVERRIDE; | 313 virtual WebContents* GetAsWebContents() OVERRIDE; |
| 313 | 314 |
| 314 // RenderViewHostDelegate ---------------------------------------------------- | 315 // RenderViewHostDelegate ---------------------------------------------------- |
| 315 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; | 316 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; |
| 316 virtual bool OnMessageReceived(RenderViewHost* render_view_host, | 317 virtual bool OnMessageReceived(RenderViewHost* render_view_host, |
| 317 const IPC::Message& message) OVERRIDE; | 318 const IPC::Message& message) OVERRIDE; |
| 318 virtual const GURL& GetURL() const OVERRIDE; | 319 virtual const GURL& GetURL() const OVERRIDE; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 333 const PageState& page_state) OVERRIDE; | 334 const PageState& page_state) OVERRIDE; |
| 334 virtual void UpdateTitle(RenderViewHost* render_view_host, | 335 virtual void UpdateTitle(RenderViewHost* render_view_host, |
| 335 int32 page_id, | 336 int32 page_id, |
| 336 const base::string16& title, | 337 const base::string16& title, |
| 337 base::i18n::TextDirection title_direction) OVERRIDE; | 338 base::i18n::TextDirection title_direction) OVERRIDE; |
| 338 virtual void UpdateEncoding(RenderViewHost* render_view_host, | 339 virtual void UpdateEncoding(RenderViewHost* render_view_host, |
| 339 const std::string& encoding) OVERRIDE; | 340 const std::string& encoding) OVERRIDE; |
| 340 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE; | 341 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE; |
| 341 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; | 342 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; |
| 342 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE; | 343 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE; |
| 343 virtual void SwappedOut(RenderViewHost* render_view_host) OVERRIDE; | |
| 344 virtual void DidCancelLoading() OVERRIDE; | 344 virtual void DidCancelLoading() OVERRIDE; |
| 345 virtual void DidChangeLoadProgress(double progress) OVERRIDE; | 345 virtual void DidChangeLoadProgress(double progress) OVERRIDE; |
| 346 virtual void DidDisownOpener(RenderViewHost* rvh) OVERRIDE; | 346 virtual void DidDisownOpener(RenderViewHost* rvh) OVERRIDE; |
| 347 virtual void DidAccessInitialDocument() OVERRIDE; | 347 virtual void DidAccessInitialDocument() OVERRIDE; |
| 348 virtual void DocumentAvailableInMainFrame( | 348 virtual void DocumentAvailableInMainFrame( |
| 349 RenderViewHost* render_view_host) OVERRIDE; | 349 RenderViewHost* render_view_host) OVERRIDE; |
| 350 virtual void DocumentOnLoadCompletedInMainFrame( | 350 virtual void DocumentOnLoadCompletedInMainFrame( |
| 351 RenderViewHost* render_view_host, | 351 RenderViewHost* render_view_host, |
| 352 int32 page_id) OVERRIDE; | 352 int32 page_id) OVERRIDE; |
| 353 virtual void RouteCloseEvent(RenderViewHost* rvh) OVERRIDE; | 353 virtual void RouteCloseEvent(RenderViewHost* rvh) OVERRIDE; |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 // Whether this WebContents is responsible for displaying a subframe in a | 1040 // Whether this WebContents is responsible for displaying a subframe in a |
| 1041 // different process from its parent page. | 1041 // different process from its parent page. |
| 1042 bool is_subframe_; | 1042 bool is_subframe_; |
| 1043 | 1043 |
| 1044 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1044 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1045 }; | 1045 }; |
| 1046 | 1046 |
| 1047 } // namespace content | 1047 } // namespace content |
| 1048 | 1048 |
| 1049 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1049 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |