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