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_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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // Roundtrips through the renderer and compositor pipeline to ensure that any | 157 // Roundtrips through the renderer and compositor pipeline to ensure that any |
158 // changes to the contents resulting from operations executed prior to this | 158 // changes to the contents resulting from operations executed prior to this |
159 // call are visible on screen. The call completes asynchronously by running | 159 // call are visible on screen. The call completes asynchronously by running |
160 // the supplied |callback| with a value of true upon successful completion and | 160 // the supplied |callback| with a value of true upon successful completion and |
161 // false otherwise (when the frame is destroyed, detached, etc..). | 161 // false otherwise (when the frame is destroyed, detached, etc..). |
162 typedef base::Callback<void(bool)> VisualStateCallback; | 162 typedef base::Callback<void(bool)> VisualStateCallback; |
163 virtual void InsertVisualStateCallback( | 163 virtual void InsertVisualStateCallback( |
164 const VisualStateCallback& callback) = 0; | 164 const VisualStateCallback& callback) = 0; |
165 | 165 |
166 // Temporary until we get rid of RenderViewHost. | 166 // RenderViewHost for this frame. |
167 virtual RenderViewHost* GetRenderViewHost() = 0; | 167 virtual RenderViewHost* GetRenderViewHost() = 0; |
168 | 168 |
169 // Returns the ServiceRegistry for this frame. | 169 // Returns the ServiceRegistry for this frame. |
170 virtual ServiceRegistry* GetServiceRegistry() = 0; | 170 virtual ServiceRegistry* GetServiceRegistry() = 0; |
171 | 171 |
172 // Returns the visibility state of the frame. The different visibility states | 172 // Returns the visibility state of the frame. The different visibility states |
173 // of a frame are defined in Blink. | 173 // of a frame are defined in Blink. |
174 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; | 174 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; |
175 | 175 |
176 // Returns whether the RenderFrame in the renderer process has been created | 176 // Returns whether the RenderFrame in the renderer process has been created |
177 // and still has a connection. This is valid for all frames. | 177 // and still has a connection. This is valid for all frames. |
178 virtual bool IsRenderFrameLive() = 0; | 178 virtual bool IsRenderFrameLive() = 0; |
179 | 179 |
180 // Get the number of proxies to this frame, in all processes. Exposed for | 180 // Get the number of proxies to this frame, in all processes. Exposed for |
181 // use by resource metrics. | 181 // use by resource metrics. |
182 virtual int GetProxyCount() = 0; | 182 virtual int GetProxyCount() = 0; |
183 | 183 |
184 private: | 184 private: |
185 // This interface should only be implemented inside content. | 185 // This interface should only be implemented inside content. |
186 friend class RenderFrameHostImpl; | 186 friend class RenderFrameHostImpl; |
187 RenderFrameHost() {} | 187 RenderFrameHost() {} |
188 }; | 188 }; |
189 | 189 |
190 } // namespace content | 190 } // namespace content |
191 | 191 |
192 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 192 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |