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

Side by Side Diff: content/public/browser/render_frame_host.h

Issue 21388003: Move routing to RenderFrameHost instead of RenderViewHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move global map to .cc file. Created 7 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "ipc/ipc_listener.h" 9 #include "ipc/ipc_listener.h"
10 #include "ipc/ipc_sender.h" 10 #include "ipc/ipc_sender.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class RenderViewHost;
15
14 // The interface provides a communication conduit with a frame in the renderer. 16 // The interface provides a communication conduit with a frame in the renderer.
15 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, 17 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
16 public IPC::Sender { 18 public IPC::Sender {
19 public:
20 // Returns the RenderFrameHost given its routing id and the id of its render
21 // process. Returns NULL if the ids do not correspond to a live
22 // RenderFrameHost.
23 static RenderFrameHost* FromID(int process_id, int routing_id);
24
25 virtual ~RenderFrameHost() {}
26
27 // Returns the RenderViewHost associated with this RenderFrameHost.
28 virtual RenderViewHost* GetRenderViewHost() const = 0;
29
30 virtual int GetRoutingID() const = 0;
31
17 private: 32 private:
18 // This interface should only be implemented inside content. 33 // This interface should only be implemented inside content.
19 friend class RenderFrameHostImpl; 34 friend class RenderFrameHostImpl;
20 RenderFrameHost() {} 35 RenderFrameHost() {}
21 }; 36 };
22 37
23 } // namespace content 38 } // namespace content
24 39
25 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 40 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698