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

Side by Side Diff: content/browser/renderer_host/render_frame_host_impl.h

Issue 16032007: Create RenderFrame/RenderFrameHost for the main frame of a page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added basic renderer and browser test for existence. Created 7 years, 6 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_
7
8 #include "base/compiler_specific.h"
9 #include "content/public/browser/render_frame_host.h"
10
11 namespace content {
12
13 class RenderViewHostImpl;
14
15
Charlie Reis 2013/05/30 00:41:53 nit: Remove extra blank line.
nasko 2013/05/30 17:07:03 Done.
16 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost {
17 public:
18 RenderFrameHostImpl(
19 RenderViewHostImpl* render_view_host,
20 int routing_id,
21 bool swapped_out);
22 virtual ~RenderFrameHostImpl();
23
24 // IPC::Sender
25 virtual bool Send(IPC::Message* msg) OVERRIDE;
26
27 // IPC::Listener
28 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
29
30 int routing_id() { return routing_id_; }
31
32 private:
33 friend class TestRenderViewHost;
34
35 RenderViewHostImpl* render_view_host_;
36
37 int routing_id_;
38
39 // Whether this RenderFrameHost is currently swapped out, such that the
40 // frame is being rendered by another process.
41 bool is_swapped_out_;
Charlie Reis 2013/05/30 00:41:53 Do we need this yet?
nasko 2013/05/30 17:07:03 Not yet, but it made the pattern of constructing t
Charlie Reis 2013/05/30 18:26:59 I just don't want people (myself included) to thin
nasko 2013/05/30 19:03:48 Done.
42
43 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
44 };
45
46 } // namespace content
47
48 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698