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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 virtual ServiceRegistry* GetServiceRegistry() = 0; | 186 virtual ServiceRegistry* GetServiceRegistry() = 0; |
187 | 187 |
188 // Returns the visibility state of the frame. The different visibility states | 188 // Returns the visibility state of the frame. The different visibility states |
189 // of a frame are defined in Blink. | 189 // of a frame are defined in Blink. |
190 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; | 190 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; |
191 | 191 |
192 // Returns whether the RenderFrame in the renderer process has been created | 192 // Returns whether the RenderFrame in the renderer process has been created |
193 // and still has a connection. This is valid for all frames. | 193 // and still has a connection. This is valid for all frames. |
194 virtual bool IsRenderFrameLive() = 0; | 194 virtual bool IsRenderFrameLive() = 0; |
195 | 195 |
| 196 // Get the number of proxies to this frame, in all processes. Exposed for |
| 197 // use by resource metrics. |
| 198 virtual int GetProxyCount() = 0; |
| 199 |
196 #if defined(OS_ANDROID) | 200 #if defined(OS_ANDROID) |
197 // Selects and zooms to the find result nearest to the point (x,y) | 201 // Selects and zooms to the find result nearest to the point (x,y) |
198 // defined in find-in-page coordinates. | 202 // defined in find-in-page coordinates. |
199 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; | 203 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; |
200 | 204 |
201 // Asks the renderer process to send the rects of the current find matches. | 205 // Asks the renderer process to send the rects of the current find matches. |
202 virtual void RequestFindMatchRects(int current_version) = 0; | 206 virtual void RequestFindMatchRects(int current_version) = 0; |
203 #endif | 207 #endif |
204 | 208 |
205 private: | 209 private: |
206 // This interface should only be implemented inside content. | 210 // This interface should only be implemented inside content. |
207 friend class RenderFrameHostImpl; | 211 friend class RenderFrameHostImpl; |
208 RenderFrameHost() {} | 212 RenderFrameHost() {} |
209 }; | 213 }; |
210 | 214 |
211 } // namespace content | 215 } // namespace content |
212 | 216 |
213 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 217 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |