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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 #if defined(OS_ANDROID) | 56 #if defined(OS_ANDROID) |
57 // Globally allows for injecting JavaScript into the main world. This feature | 57 // Globally allows for injecting JavaScript into the main world. This feature |
58 // is present only to support Android WebView and must not be used in other | 58 // is present only to support Android WebView and must not be used in other |
59 // configurations. | 59 // configurations. |
60 static void AllowInjectingJavaScriptForAndroidWebView(); | 60 static void AllowInjectingJavaScriptForAndroidWebView(); |
61 #endif | 61 #endif |
62 | 62 |
63 // Returns a RenderFrameHost given its accessibility tree ID. | 63 // Returns a RenderFrameHost given its accessibility tree ID. |
64 static RenderFrameHost* FromAXTreeID(int ax_tree_id); | 64 static RenderFrameHost* FromAXTreeID(int ax_tree_id); |
65 | 65 |
66 // Returns the RenderFrameHost corresponding to the specified |process_id| and | |
67 // |routing_id|. This host may represent a placeholder for a frame that is | |
68 // currently rendered in a different process than |process_id|. | |
Charlie Reis
2017/05/10 22:17:49
Hmm, I really prefer the previous version of the A
lpz
2017/05/12 13:53:16
Done.
| |
69 static RenderFrameHost* GetRenderFrameHostForRoutingId(int process_id, | |
70 int routing_id); | |
71 | |
66 ~RenderFrameHost() override {} | 72 ~RenderFrameHost() override {} |
67 | 73 |
68 // Returns the route id for this frame. | 74 // Returns the route id for this frame. |
69 virtual int GetRoutingID() = 0; | 75 virtual int GetRoutingID() = 0; |
70 | 76 |
71 // Returns the accessibility tree ID for this RenderFrameHost. | 77 // Returns the accessibility tree ID for this RenderFrameHost. |
72 virtual int GetAXTreeID() = 0; | 78 virtual int GetAXTreeID() = 0; |
73 | 79 |
74 // Returns the SiteInstance grouping all RenderFrameHosts that have script | 80 // Returns the SiteInstance grouping all RenderFrameHosts that have script |
75 // access to this RenderFrameHost, and must therefore live in the same | 81 // access to this RenderFrameHost, and must therefore live in the same |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
255 | 261 |
256 private: | 262 private: |
257 // This interface should only be implemented inside content. | 263 // This interface should only be implemented inside content. |
258 friend class RenderFrameHostImpl; | 264 friend class RenderFrameHostImpl; |
259 RenderFrameHost() {} | 265 RenderFrameHost() {} |
260 }; | 266 }; |
261 | 267 |
262 } // namespace content | 268 } // namespace content |
263 | 269 |
264 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 270 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |