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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 void DidGetRedirectForResourceRequest( | 179 void DidGetRedirectForResourceRequest( |
180 RenderViewHost* render_view_host, | 180 RenderViewHost* render_view_host, |
181 const ResourceRedirectDetails& details); | 181 const ResourceRedirectDetails& details); |
182 | 182 |
183 // WebContents ------------------------------------------------------ | 183 // WebContents ------------------------------------------------------ |
184 virtual WebContentsDelegate* GetDelegate() OVERRIDE; | 184 virtual WebContentsDelegate* GetDelegate() OVERRIDE; |
185 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; | 185 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; |
186 virtual NavigationControllerImpl& GetController() OVERRIDE; | 186 virtual NavigationControllerImpl& GetController() OVERRIDE; |
187 virtual const NavigationControllerImpl& GetController() const OVERRIDE; | 187 virtual const NavigationControllerImpl& GetController() const OVERRIDE; |
188 virtual BrowserContext* GetBrowserContext() const OVERRIDE; | 188 virtual BrowserContext* GetBrowserContext() const OVERRIDE; |
| 189 virtual const GURL& GetURL() const OVERRIDE; |
| 190 virtual const GURL& GetVisibleURL() const OVERRIDE; |
| 191 virtual const GURL& GetLastCommittedURL() const OVERRIDE; |
189 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; | 192 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; |
190 virtual RenderFrameHost* GetMainFrame() OVERRIDE; | 193 virtual RenderFrameHost* GetMainFrame() OVERRIDE; |
191 virtual RenderFrameHost* GetFocusedFrame() OVERRIDE; | 194 virtual RenderFrameHost* GetFocusedFrame() OVERRIDE; |
192 virtual void ForEachFrame( | 195 virtual void ForEachFrame( |
193 const base::Callback<void(RenderFrameHost*)>& on_frame) OVERRIDE; | 196 const base::Callback<void(RenderFrameHost*)>& on_frame) OVERRIDE; |
194 virtual void SendToAllFrames(IPC::Message* message) OVERRIDE; | 197 virtual void SendToAllFrames(IPC::Message* message) OVERRIDE; |
195 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; | 198 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; |
196 virtual WebContents* GetEmbedderWebContents() const OVERRIDE; | 199 virtual WebContents* GetEmbedderWebContents() const OVERRIDE; |
197 virtual int GetEmbeddedInstanceID() const OVERRIDE; | 200 virtual int GetEmbeddedInstanceID() const OVERRIDE; |
198 virtual int GetRoutingID() const OVERRIDE; | 201 virtual int GetRoutingID() const OVERRIDE; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 | 299 |
297 // Implementation of PageNavigator. | 300 // Implementation of PageNavigator. |
298 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; | 301 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; |
299 | 302 |
300 // Implementation of IPC::Sender. | 303 // Implementation of IPC::Sender. |
301 virtual bool Send(IPC::Message* message) OVERRIDE; | 304 virtual bool Send(IPC::Message* message) OVERRIDE; |
302 | 305 |
303 // RenderFrameHostDelegate --------------------------------------------------- | 306 // RenderFrameHostDelegate --------------------------------------------------- |
304 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, | 307 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, |
305 const IPC::Message& message) OVERRIDE; | 308 const IPC::Message& message) OVERRIDE; |
| 309 virtual const GURL& GetMainFrameLastCommittedURL() const OVERRIDE; |
306 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; | 310 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; |
307 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; | 311 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; |
308 virtual void DidStartLoading(RenderFrameHost* render_frame_host, | 312 virtual void DidStartLoading(RenderFrameHost* render_frame_host, |
309 bool to_different_document) OVERRIDE; | 313 bool to_different_document) OVERRIDE; |
310 virtual void DidStopLoading(RenderFrameHost* render_frame_host) OVERRIDE; | 314 virtual void DidStopLoading(RenderFrameHost* render_frame_host) OVERRIDE; |
311 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE; | 315 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE; |
312 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE; | 316 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE; |
313 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 317 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
314 const ContextMenuParams& params) OVERRIDE; | 318 const ContextMenuParams& params) OVERRIDE; |
315 virtual WebContents* GetAsWebContents() OVERRIDE; | 319 virtual WebContents* GetAsWebContents() OVERRIDE; |
316 | 320 |
317 // RenderViewHostDelegate ---------------------------------------------------- | 321 // RenderViewHostDelegate ---------------------------------------------------- |
318 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; | 322 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; |
319 virtual bool OnMessageReceived(RenderViewHost* render_view_host, | 323 virtual bool OnMessageReceived(RenderViewHost* render_view_host, |
320 const IPC::Message& message) OVERRIDE; | 324 const IPC::Message& message) OVERRIDE; |
321 virtual const GURL& GetURL() const OVERRIDE; | |
322 virtual const GURL& GetVisibleURL() const OVERRIDE; | |
323 virtual const GURL& GetLastCommittedURL() const OVERRIDE; | |
324 // RenderFrameHostDelegate has the same method, so list it there because this | 325 // RenderFrameHostDelegate has the same method, so list it there because this |
325 // interface is going away. | 326 // interface is going away. |
326 // virtual WebContents* GetAsWebContents() OVERRIDE; | 327 // virtual WebContents* GetAsWebContents() OVERRIDE; |
327 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; | 328 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; |
328 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 329 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
329 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; | 330 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; |
330 virtual void RenderViewTerminated(RenderViewHost* render_view_host, | 331 virtual void RenderViewTerminated(RenderViewHost* render_view_host, |
331 base::TerminationStatus status, | 332 base::TerminationStatus status, |
332 int error_code) OVERRIDE; | 333 int error_code) OVERRIDE; |
333 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; | 334 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 // Whether this WebContents is responsible for displaying a subframe in a | 1053 // Whether this WebContents is responsible for displaying a subframe in a |
1053 // different process from its parent page. | 1054 // different process from its parent page. |
1054 bool is_subframe_; | 1055 bool is_subframe_; |
1055 | 1056 |
1056 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1057 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1057 }; | 1058 }; |
1058 | 1059 |
1059 } // namespace content | 1060 } // namespace content |
1060 | 1061 |
1061 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1062 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |