Chromium Code Reviews| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 191 virtual AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() = 0; | 191 virtual AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() = 0; |
| 192 | 192 |
| 193 // Returns the visibility state of the frame. The different visibility states | 193 // Returns the visibility state of the frame. The different visibility states |
| 194 // of a frame are defined in Blink. | 194 // of a frame are defined in Blink. |
| 195 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; | 195 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; |
| 196 | 196 |
| 197 // Returns whether the RenderFrame in the renderer process has been created | 197 // Returns whether the RenderFrame in the renderer process has been created |
| 198 // and still has a connection. This is valid for all frames. | 198 // and still has a connection. This is valid for all frames. |
| 199 virtual bool IsRenderFrameLive() = 0; | 199 virtual bool IsRenderFrameLive() = 0; |
| 200 | 200 |
| 201 // This method returns false only for RenderFrameHost created for the purpose | |
| 202 // of swapping out another RenderFrameHost, until the swap actually happens. | |
|
ncarter (slow)
2017/05/16 20:50:57
// Returns true if this is the currently-visible R
Łukasz Anforowicz
2017/05/16 21:33:44
Done.
| |
| 203 virtual bool IsCurrent() = 0; | |
| 204 | |
| 201 // Get the number of proxies to this frame, in all processes. Exposed for | 205 // Get the number of proxies to this frame, in all processes. Exposed for |
| 202 // use by resource metrics. | 206 // use by resource metrics. |
| 203 virtual int GetProxyCount() = 0; | 207 virtual int GetProxyCount() = 0; |
| 204 | 208 |
| 205 // Notifies the Listener that one or more files have been chosen by the user | 209 // Notifies the Listener that one or more files have been chosen by the user |
| 206 // from a file chooser dialog for the form. |permissions| is the file | 210 // from a file chooser dialog for the form. |permissions| is the file |
| 207 // selection mode in which the chooser dialog was created. | 211 // selection mode in which the chooser dialog was created. |
| 208 virtual void FilesSelectedInChooser( | 212 virtual void FilesSelectedInChooser( |
| 209 const std::vector<content::FileChooserFileInfo>& files, | 213 const std::vector<content::FileChooserFileInfo>& files, |
| 210 FileChooserParams::Mode permissions) = 0; | 214 FileChooserParams::Mode permissions) = 0; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 | 259 |
| 256 private: | 260 private: |
| 257 // This interface should only be implemented inside content. | 261 // This interface should only be implemented inside content. |
| 258 friend class RenderFrameHostImpl; | 262 friend class RenderFrameHostImpl; |
| 259 RenderFrameHost() {} | 263 RenderFrameHost() {} |
| 260 }; | 264 }; |
| 261 | 265 |
| 262 } // namespace content | 266 } // namespace content |
| 263 | 267 |
| 264 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 268 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |