| 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 // Returns true if this is the currently-visible RenderFrameHost for our frame |
| 202 // tree node. During process transfer, a RenderFrameHost may be created that |
| 203 // is not current. After process transfer, the old RenderFrameHost becomes |
| 204 // non-current until it is deleted (which may not happen until its unload |
| 205 // handler runs). |
| 206 // |
| 207 // Changes to the IsCurrent() state of a RenderFrameHost may be observed via |
| 208 // WebContentsObserver::RenderFrameHostChanged(). |
| 209 virtual bool IsCurrent() = 0; |
| 210 |
| 201 // Get the number of proxies to this frame, in all processes. Exposed for | 211 // Get the number of proxies to this frame, in all processes. Exposed for |
| 202 // use by resource metrics. | 212 // use by resource metrics. |
| 203 virtual int GetProxyCount() = 0; | 213 virtual int GetProxyCount() = 0; |
| 204 | 214 |
| 205 // Notifies the Listener that one or more files have been chosen by the user | 215 // 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 | 216 // from a file chooser dialog for the form. |permissions| is the file |
| 207 // selection mode in which the chooser dialog was created. | 217 // selection mode in which the chooser dialog was created. |
| 208 virtual void FilesSelectedInChooser( | 218 virtual void FilesSelectedInChooser( |
| 209 const std::vector<content::FileChooserFileInfo>& files, | 219 const std::vector<content::FileChooserFileInfo>& files, |
| 210 FileChooserParams::Mode permissions) = 0; | 220 FileChooserParams::Mode permissions) = 0; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 265 |
| 256 private: | 266 private: |
| 257 // This interface should only be implemented inside content. | 267 // This interface should only be implemented inside content. |
| 258 friend class RenderFrameHostImpl; | 268 friend class RenderFrameHostImpl; |
| 259 RenderFrameHost() {} | 269 RenderFrameHost() {} |
| 260 }; | 270 }; |
| 261 | 271 |
| 262 } // namespace content | 272 } // namespace content |
| 263 | 273 |
| 264 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 274 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |