| OLD | NEW |
| 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 class RenderViewHostImpl; | 31 class RenderViewHostImpl; |
| 32 struct ContextMenuParams; | 32 struct ContextMenuParams; |
| 33 | 33 |
| 34 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost { | 34 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost { |
| 35 public: | 35 public: |
| 36 static RenderFrameHostImpl* FromID(int process_id, int routing_id); | 36 static RenderFrameHostImpl* FromID(int process_id, int routing_id); |
| 37 | 37 |
| 38 virtual ~RenderFrameHostImpl(); | 38 virtual ~RenderFrameHostImpl(); |
| 39 | 39 |
| 40 // RenderFrameHost | 40 // RenderFrameHost |
| 41 virtual SiteInstance* GetSiteInstance() OVERRIDE; | 41 virtual int GetRoutingID() const OVERRIDE; |
| 42 virtual RenderProcessHost* GetProcess() OVERRIDE; | 42 virtual SiteInstance* GetSiteInstance() const OVERRIDE; |
| 43 virtual int GetRoutingID() OVERRIDE; | 43 virtual int GetEnabledBindings() const OVERRIDE; |
| 44 virtual RenderFrameHost* GetParent() OVERRIDE; | 44 virtual RenderProcessHost* GetProcess() const OVERRIDE; |
| 45 virtual bool IsCrossProcessSubframe() OVERRIDE; | 45 virtual RenderFrameHost* GetParent() const OVERRIDE; |
| 46 virtual GURL GetLastCommittedURL() OVERRIDE; | 46 virtual bool IsCrossProcessSubframe() const OVERRIDE; |
| 47 virtual gfx::NativeView GetNativeView() OVERRIDE; | 47 virtual GURL GetLastCommittedURL() const OVERRIDE; |
| 48 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| 48 virtual void NotifyContextMenuClosed( | 49 virtual void NotifyContextMenuClosed( |
| 49 const CustomContextMenuContext& context) OVERRIDE; | 50 const CustomContextMenuContext& context) OVERRIDE; |
| 50 virtual void ExecuteCustomContextMenuCommand( | 51 virtual void ExecuteCustomContextMenuCommand( |
| 51 int action, const CustomContextMenuContext& context) OVERRIDE; | 52 int action, const CustomContextMenuContext& context) OVERRIDE; |
| 52 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; | 53 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; |
| 53 | 54 |
| 54 // IPC::Sender | 55 // IPC::Sender |
| 55 virtual bool Send(IPC::Message* msg) OVERRIDE; | 56 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 56 | 57 |
| 57 // IPC::Listener | 58 // IPC::Listener |
| 58 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 59 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 59 | 60 |
| 60 void Init(); | 61 void Init(); |
| 61 int routing_id() const { return routing_id_; } | 62 int routing_id() const { return routing_id_; } |
| 62 void OnCreateChildFrame(int new_routing_id, | 63 void OnCreateChildFrame(int new_routing_id, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 182 |
| 182 int routing_id_; | 183 int routing_id_; |
| 183 bool is_swapped_out_; | 184 bool is_swapped_out_; |
| 184 | 185 |
| 185 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 186 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 186 }; | 187 }; |
| 187 | 188 |
| 188 } // namespace content | 189 } // namespace content |
| 189 | 190 |
| 190 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 191 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |