Save errno for logging before potentially overwriting it.
[chromium-blink-merge.git] / content / browser / renderer_host / render_frame_host_impl.h
blobbb94c8e63c2cddfadfa6366a58468812ab2a1ff1
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_
8 #include "base/compiler_specific.h"
9 #include "content/public/browser/render_frame_host.h"
11 namespace content {
13 class RenderViewHostImpl;
15 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost {
16 public:
17 RenderFrameHostImpl(
18 RenderViewHostImpl* render_view_host,
19 int routing_id,
20 bool swapped_out);
21 virtual ~RenderFrameHostImpl();
23 // IPC::Sender
24 virtual bool Send(IPC::Message* msg) OVERRIDE;
26 // IPC::Listener
27 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
29 int routing_id() { return routing_id_; }
31 private:
32 RenderViewHostImpl* render_view_host_;
34 int routing_id_;
36 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
39 } // namespace content
41 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_FRAME_HOST_IMPL_H_