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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 gfx::Rect AccessibilityGetViewBounds() const override; | 154 gfx::Rect AccessibilityGetViewBounds() const override; |
155 gfx::Point AccessibilityOriginInScreen( | 155 gfx::Point AccessibilityOriginInScreen( |
156 const gfx::Rect& bounds) const override; | 156 const gfx::Rect& bounds) const override; |
157 void AccessibilityHitTest(const gfx::Point& point) override; | 157 void AccessibilityHitTest(const gfx::Point& point) override; |
158 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override; | 158 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override; |
159 void AccessibilityFatalError() override; | 159 void AccessibilityFatalError() override; |
160 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 160 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
161 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; | 161 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; |
162 BrowserAccessibilityManager* AccessibilityGetChildFrame( | 162 BrowserAccessibilityManager* AccessibilityGetChildFrame( |
163 int accessibility_node_id) override; | 163 int accessibility_node_id) override; |
| 164 void AccessibilityGetAllChildFrames( |
| 165 std::vector<BrowserAccessibilityManager*>* child_frames) override; |
164 BrowserAccessibility* AccessibilityGetParentFrame() override; | 166 BrowserAccessibility* AccessibilityGetParentFrame() override; |
165 | 167 |
166 // Creates a RenderFrame in the renderer process. Only called for | 168 // Creates a RenderFrame in the renderer process. Only called for |
167 // cross-process subframe navigations in --site-per-process. | 169 // cross-process subframe navigations in --site-per-process. |
168 bool CreateRenderFrame(int parent_routing_id, int proxy_routing_id); | 170 bool CreateRenderFrame(int parent_routing_id, int proxy_routing_id); |
169 | 171 |
170 // Returns whether the RenderFrame in the renderer process has been created | 172 // Returns whether the RenderFrame in the renderer process has been created |
171 // and still has a connection. This is valid for all frames. | 173 // and still has a connection. This is valid for all frames. |
172 bool IsRenderFrameLive(); | 174 bool IsRenderFrameLive(); |
173 | 175 |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 // iframe. | 488 // iframe. |
487 void UpdateCrossProcessIframeAccessibility( | 489 void UpdateCrossProcessIframeAccessibility( |
488 const std::map<int32, int>& node_to_frame_routing_id_map); | 490 const std::map<int32, int>& node_to_frame_routing_id_map); |
489 | 491 |
490 // Update the the singleton FrameAccessibility instance with a map | 492 // Update the the singleton FrameAccessibility instance with a map |
491 // from accessibility node id to the browser plugin instance id of a | 493 // from accessibility node id to the browser plugin instance id of a |
492 // guest WebContents. | 494 // guest WebContents. |
493 void UpdateGuestFrameAccessibility( | 495 void UpdateGuestFrameAccessibility( |
494 const std::map<int32, int>& node_to_browser_plugin_instance_id_map); | 496 const std::map<int32, int>& node_to_browser_plugin_instance_id_map); |
495 | 497 |
| 498 // Asserts that the given child frame is part of the same browser context |
| 499 // (and crashes if not), then returns whether the given child frame is |
| 500 // part of the same site instance. |
| 501 bool IsSameSiteInstance(RenderFrameHostImpl* child_frame); |
| 502 |
496 // Informs the content client that geolocation permissions were used. | 503 // Informs the content client that geolocation permissions were used. |
497 void DidUseGeolocationPermission(); | 504 void DidUseGeolocationPermission(); |
498 | 505 |
499 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 506 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
500 // refcount that calls Shutdown when it reaches zero. This allows each | 507 // refcount that calls Shutdown when it reaches zero. This allows each |
501 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring | 508 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
502 // we have a RenderViewHost for each RenderFrameHost. | 509 // we have a RenderViewHost for each RenderFrameHost. |
503 // TODO(creis): RenderViewHost will eventually go away and be replaced with | 510 // TODO(creis): RenderViewHost will eventually go away and be replaced with |
504 // some form of page context. | 511 // some form of page context. |
505 RenderViewHostImpl* render_view_host_; | 512 RenderViewHostImpl* render_view_host_; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 | 624 |
618 // NOTE: This must be the last member. | 625 // NOTE: This must be the last member. |
619 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 626 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
620 | 627 |
621 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 628 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
622 }; | 629 }; |
623 | 630 |
624 } // namespace content | 631 } // namespace content |
625 | 632 |
626 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 633 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |