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