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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 virtual SiteInstance* GetSiteInstance() = 0; | 57 virtual SiteInstance* GetSiteInstance() = 0; |
| 58 | 58 |
| 59 // Returns the process for this frame. | 59 // Returns the process for this frame. |
| 60 virtual RenderProcessHost* GetProcess() = 0; | 60 virtual RenderProcessHost* GetProcess() = 0; |
| 61 | 61 |
| 62 // Returns the current RenderFrameHost of the parent frame, or nullptr if | 62 // Returns the current RenderFrameHost of the parent frame, or nullptr if |
| 63 // there is no parent. The result may be in a different process than the | 63 // there is no parent. The result may be in a different process than the |
| 64 // current RenderFrameHost. | 64 // current RenderFrameHost. |
| 65 virtual RenderFrameHost* GetParent() = 0; | 65 virtual RenderFrameHost* GetParent() = 0; |
| 66 | 66 |
| 67 // Returns the FrameTreeNode ID for this frame. | |
|
Charlie Reis
2015/11/06 23:13:16
Nasko brings up a good point that we may not want
| |
| 68 virtual int GetFrameTreeNodeID() = 0; | |
|
nasko
2015/11/06 23:28:27
Let's call this GetFrameId(). FrameTreeNode is not
robwu
2015/11/07 00:23:40
It is very likely that GetFrameId is confused with
| |
| 69 | |
| 67 // Returns the assigned name of the frame, the name of the iframe tag | 70 // Returns the assigned name of the frame, the name of the iframe tag |
| 68 // declaring it. For example, <iframe name="framename">[...]</iframe>. It is | 71 // declaring it. For example, <iframe name="framename">[...]</iframe>. It is |
| 69 // quite possible for a frame to have no name, in which case GetFrameName will | 72 // quite possible for a frame to have no name, in which case GetFrameName will |
| 70 // return an empty string. | 73 // return an empty string. |
| 71 virtual const std::string& GetFrameName() = 0; | 74 virtual const std::string& GetFrameName() = 0; |
| 72 | 75 |
| 73 // Returns true if the frame is out of process. | 76 // Returns true if the frame is out of process. |
| 74 virtual bool IsCrossProcessSubframe() = 0; | 77 virtual bool IsCrossProcessSubframe() = 0; |
| 75 | 78 |
| 76 // Returns the last committed URL of the frame. | 79 // Returns the last committed URL of the frame. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 150 | 153 |
| 151 private: | 154 private: |
| 152 // This interface should only be implemented inside content. | 155 // This interface should only be implemented inside content. |
| 153 friend class RenderFrameHostImpl; | 156 friend class RenderFrameHostImpl; |
| 154 RenderFrameHost() {} | 157 RenderFrameHost() {} |
| 155 }; | 158 }; |
| 156 | 159 |
| 157 } // namespace content | 160 } // namespace content |
| 158 | 161 |
| 159 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 162 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |