OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROXY_HOST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/browser/frame_host/render_frame_host_impl.h" | 9 #include "content/browser/frame_host/render_frame_host_impl.h" |
10 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 RenderFrameHostImpl* render_frame_host() { | 86 RenderFrameHostImpl* render_frame_host() { |
87 return render_frame_host_.get(); | 87 return render_frame_host_.get(); |
88 } | 88 } |
89 RenderViewHostImpl* GetRenderViewHost(); | 89 RenderViewHostImpl* GetRenderViewHost(); |
90 | 90 |
91 void TakeFrameHostOwnership( | 91 void TakeFrameHostOwnership( |
92 scoped_ptr<RenderFrameHostImpl> render_frame_host); | 92 scoped_ptr<RenderFrameHostImpl> render_frame_host); |
93 scoped_ptr<RenderFrameHostImpl> PassFrameHostOwnership(); | 93 scoped_ptr<RenderFrameHostImpl> PassFrameHostOwnership(); |
94 | 94 |
95 // IPC::Sender | 95 // IPC::Sender |
96 virtual bool Send(IPC::Message* msg) OVERRIDE; | 96 virtual bool Send(IPC::Message* msg) override; |
97 | 97 |
98 // IPC::Listener | 98 // IPC::Listener |
99 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 99 virtual bool OnMessageReceived(const IPC::Message& msg) override; |
100 | 100 |
101 CrossProcessFrameConnector* cross_process_frame_connector() { | 101 CrossProcessFrameConnector* cross_process_frame_connector() { |
102 return cross_process_frame_connector_.get(); | 102 return cross_process_frame_connector_.get(); |
103 } | 103 } |
104 | 104 |
105 // Set the frame's opener to null in the renderer process in response to an | 105 // Set the frame's opener to null in the renderer process in response to an |
106 // action in another renderer process. | 106 // action in another renderer process. |
107 void DisownOpener(); | 107 void DisownOpener(); |
108 | 108 |
109 private: | 109 private: |
(...skipping 18 matching lines...) Expand all Loading... |
128 // TODO(nasko): This can be removed once we don't have a swapped out state on | 128 // TODO(nasko): This can be removed once we don't have a swapped out state on |
129 // RenderFrameHosts. See https://crbug.com/357747. | 129 // RenderFrameHosts. See https://crbug.com/357747. |
130 scoped_ptr<RenderFrameHostImpl> render_frame_host_; | 130 scoped_ptr<RenderFrameHostImpl> render_frame_host_; |
131 | 131 |
132 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); | 132 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); |
133 }; | 133 }; |
134 | 134 |
135 } // namespace | 135 } // namespace |
136 | 136 |
137 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 137 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
OLD | NEW |