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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 int focus_object_id, | 190 int focus_object_id, |
191 int focus_offset) override; | 191 int focus_offset) override; |
192 void AccessibilitySetValue(int acc_obj_id, const base::string16& value) | 192 void AccessibilitySetValue(int acc_obj_id, const base::string16& value) |
193 override; | 193 override; |
194 bool AccessibilityViewHasFocus() const override; | 194 bool AccessibilityViewHasFocus() const override; |
195 gfx::Rect AccessibilityGetViewBounds() const override; | 195 gfx::Rect AccessibilityGetViewBounds() const override; |
196 gfx::Point AccessibilityOriginInScreen( | 196 gfx::Point AccessibilityOriginInScreen( |
197 const gfx::Rect& bounds) const override; | 197 const gfx::Rect& bounds) const override; |
198 gfx::Rect AccessibilityTransformToRootCoordSpace( | 198 gfx::Rect AccessibilityTransformToRootCoordSpace( |
199 const gfx::Rect& bounds) override; | 199 const gfx::Rect& bounds) override; |
200 SiteInstance* AccessibilityGetSiteInstance() override; | 200 SiteInstanceImpl* AccessibilityGetSiteInstance() override; |
201 void AccessibilityHitTest(const gfx::Point& point) override; | 201 void AccessibilityHitTest(const gfx::Point& point) override; |
202 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override; | 202 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override; |
203 void AccessibilityFatalError() override; | 203 void AccessibilityFatalError() override; |
204 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 204 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
205 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; | 205 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; |
206 | 206 |
207 // SiteInstanceImpl::Observer | 207 // SiteInstanceImpl::Observer |
208 void RenderProcessGone(SiteInstanceImpl* site_instance) override; | 208 void RenderProcessGone(SiteInstanceImpl* site_instance) override; |
209 | 209 |
210 // Creates a RenderFrame in the renderer process. | 210 // Creates a RenderFrame in the renderer process. |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 // Navigates to an interstitial page represented by the provided data URL. | 376 // Navigates to an interstitial page represented by the provided data URL. |
377 void NavigateToInterstitialURL(const GURL& data_url); | 377 void NavigateToInterstitialURL(const GURL& data_url); |
378 | 378 |
379 // Treat this prospective navigation as though it originated from the frame. | 379 // Treat this prospective navigation as though it originated from the frame. |
380 // Used, e.g., for a navigation request that originated from a RemoteFrame. | 380 // Used, e.g., for a navigation request that originated from a RemoteFrame. |
381 // |source_site_instance| is the SiteInstance of the frame that initiated the | 381 // |source_site_instance| is the SiteInstance of the frame that initiated the |
382 // navigation. | 382 // navigation. |
383 // TODO(creis): Remove this method and have RenderFrameProxyHost call | 383 // TODO(creis): Remove this method and have RenderFrameProxyHost call |
384 // RequestOpenURL with its FrameTreeNode. | 384 // RequestOpenURL with its FrameTreeNode. |
385 void OpenURL(const FrameHostMsg_OpenURL_Params& params, | 385 void OpenURL(const FrameHostMsg_OpenURL_Params& params, |
386 SiteInstance* source_site_instance); | 386 SiteInstanceImpl* source_site_instance); |
387 | 387 |
388 // Stop the load in progress. | 388 // Stop the load in progress. |
389 void Stop(); | 389 void Stop(); |
390 | 390 |
391 // Returns whether navigation messages are currently suspended for this | 391 // Returns whether navigation messages are currently suspended for this |
392 // RenderFrameHost. Only true during a cross-site navigation, while waiting | 392 // RenderFrameHost. Only true during a cross-site navigation, while waiting |
393 // for the onbeforeunload handler. | 393 // for the onbeforeunload handler. |
394 bool are_navigations_suspended() const { return navigations_suspended_; } | 394 bool are_navigations_suspended() const { return navigations_suspended_; } |
395 | 395 |
396 // Suspends (or unsuspends) any navigation messages from being sent from this | 396 // Suspends (or unsuspends) any navigation messages from being sent from this |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 return last_navigation_lofi_state_; | 565 return last_navigation_lofi_state_; |
566 } | 566 } |
567 | 567 |
568 protected: | 568 protected: |
569 friend class RenderFrameHostFactory; | 569 friend class RenderFrameHostFactory; |
570 | 570 |
571 // |flags| is a combination of CreateRenderFrameFlags. | 571 // |flags| is a combination of CreateRenderFrameFlags. |
572 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 572 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
573 // should be the abstraction needed here, but we need RenderViewHost to pass | 573 // should be the abstraction needed here, but we need RenderViewHost to pass |
574 // into WebContentsObserver::FrameDetached for now. | 574 // into WebContentsObserver::FrameDetached for now. |
575 RenderFrameHostImpl(SiteInstance* site_instance, | 575 RenderFrameHostImpl(SiteInstanceImpl* site_instance, |
576 RenderViewHostImpl* render_view_host, | 576 RenderViewHostImpl* render_view_host, |
577 RenderFrameHostDelegate* delegate, | 577 RenderFrameHostDelegate* delegate, |
578 RenderWidgetHostDelegate* rwh_delegate, | 578 RenderWidgetHostDelegate* rwh_delegate, |
579 FrameTree* frame_tree, | 579 FrameTree* frame_tree, |
580 FrameTreeNode* frame_tree_node, | 580 FrameTreeNode* frame_tree_node, |
581 int32_t routing_id, | 581 int32_t routing_id, |
582 int32_t widget_routing_id, | 582 int32_t widget_routing_id, |
583 bool hidden); | 583 bool hidden); |
584 | 584 |
585 private: | 585 private: |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 | 976 |
977 // NOTE: This must be the last member. | 977 // NOTE: This must be the last member. |
978 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 978 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
979 | 979 |
980 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 980 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
981 }; | 981 }; |
982 | 982 |
983 } // namespace content | 983 } // namespace content |
984 | 984 |
985 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 985 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |