Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 217183004: Migrate addMessageToConsole API to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 298
296 // Implementation of PageNavigator. 299 // Implementation of PageNavigator.
297 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; 300 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE;
298 301
299 // Implementation of IPC::Sender. 302 // Implementation of IPC::Sender.
300 virtual bool Send(IPC::Message* message) OVERRIDE; 303 virtual bool Send(IPC::Message* message) OVERRIDE;
301 304
302 // RenderFrameHostDelegate --------------------------------------------------- 305 // RenderFrameHostDelegate ---------------------------------------------------
303 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, 306 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host,
304 const IPC::Message& message) OVERRIDE; 307 const IPC::Message& message) OVERRIDE;
308 virtual const GURL& GetMainFrameVisibleURL() const;
305 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; 309 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE;
306 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; 310 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE;
307 virtual void DidStartLoading(RenderFrameHost* render_frame_host, 311 virtual void DidStartLoading(RenderFrameHost* render_frame_host,
308 bool to_different_document) OVERRIDE; 312 bool to_different_document) OVERRIDE;
309 virtual void DidStopLoading(RenderFrameHost* render_frame_host) OVERRIDE; 313 virtual void DidStopLoading(RenderFrameHost* render_frame_host) OVERRIDE;
310 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE; 314 virtual void SwappedOut(RenderFrameHost* render_frame_host) OVERRIDE;
311 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE; 315 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) OVERRIDE;
312 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 316 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
313 const ContextMenuParams& params) OVERRIDE; 317 const ContextMenuParams& params) OVERRIDE;
314 virtual WebContents* GetAsWebContents() OVERRIDE; 318 virtual WebContents* GetAsWebContents() OVERRIDE;
315 319
316 // RenderViewHostDelegate ---------------------------------------------------- 320 // RenderViewHostDelegate ----------------------------------------------------
317 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; 321 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
318 virtual bool OnMessageReceived(RenderViewHost* render_view_host, 322 virtual bool OnMessageReceived(RenderViewHost* render_view_host,
319 const IPC::Message& message) OVERRIDE; 323 const IPC::Message& message) OVERRIDE;
320 virtual const GURL& GetURL() const OVERRIDE;
321 virtual const GURL& GetVisibleURL() const OVERRIDE;
322 virtual const GURL& GetLastCommittedURL() const OVERRIDE;
323 // RenderFrameHostDelegate has the same method, so list it there because this 324 // RenderFrameHostDelegate has the same method, so list it there because this
324 // interface is going away. 325 // interface is going away.
325 // virtual WebContents* GetAsWebContents() OVERRIDE; 326 // virtual WebContents* GetAsWebContents() OVERRIDE;
326 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; 327 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
327 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; 328 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
328 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; 329 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE;
329 virtual void RenderViewTerminated(RenderViewHost* render_view_host, 330 virtual void RenderViewTerminated(RenderViewHost* render_view_host,
330 base::TerminationStatus status, 331 base::TerminationStatus status,
331 int error_code) OVERRIDE; 332 int error_code) OVERRIDE;
332 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; 333 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE;
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 // Whether this WebContents is responsible for displaying a subframe in a 1050 // Whether this WebContents is responsible for displaying a subframe in a
1050 // different process from its parent page. 1051 // different process from its parent page.
1051 bool is_subframe_; 1052 bool is_subframe_;
1052 1053
1053 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1054 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1054 }; 1055 };
1055 1056
1056 } // namespace content 1057 } // namespace content
1057 1058
1058 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1059 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698