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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 RenderFrameHost* GetParent() override; | 132 RenderFrameHost* GetParent() override; |
133 const std::string& GetFrameName() override; | 133 const std::string& GetFrameName() override; |
134 bool IsCrossProcessSubframe() override; | 134 bool IsCrossProcessSubframe() override; |
135 GURL GetLastCommittedURL() override; | 135 GURL GetLastCommittedURL() override; |
136 gfx::NativeView GetNativeView() override; | 136 gfx::NativeView GetNativeView() override; |
137 void AddMessageToConsole(ConsoleMessageLevel level, | 137 void AddMessageToConsole(ConsoleMessageLevel level, |
138 const std::string& message) override; | 138 const std::string& message) override; |
139 void ExecuteJavaScript(const base::string16& javascript) override; | 139 void ExecuteJavaScript(const base::string16& javascript) override; |
140 void ExecuteJavaScript(const base::string16& javascript, | 140 void ExecuteJavaScript(const base::string16& javascript, |
141 const JavaScriptResultCallback& callback) override; | 141 const JavaScriptResultCallback& callback) override; |
142 void ExecuteJavaScriptForTests(const base::string16& javascript) override; | |
143 void ExecuteJavaScriptForTests( | |
144 const base::string16& javascript, | |
145 const JavaScriptResultCallback& callback) override; | |
146 void ExecuteJavaScriptWithUserGestureForTests( | 142 void ExecuteJavaScriptWithUserGestureForTests( |
147 const base::string16& javascript) override; | 143 const base::string16& javascript) override; |
148 void ExecuteJavaScriptInIsolatedWorld( | 144 void ExecuteJavaScriptInIsolatedWorld( |
149 const base::string16& javascript, | 145 const base::string16& javascript, |
150 const JavaScriptResultCallback& callback, | 146 const JavaScriptResultCallback& callback, |
151 int world_id) override; | 147 int world_id) override; |
152 void ActivateFindInPageResultForAccessibility(int request_id) override; | 148 void ActivateFindInPageResultForAccessibility(int request_id) override; |
153 RenderViewHost* GetRenderViewHost() override; | 149 RenderViewHost* GetRenderViewHost() override; |
154 ServiceRegistry* GetServiceRegistry() override; | 150 ServiceRegistry* GetServiceRegistry() override; |
155 blink::WebPageVisibilityState GetVisibilityState() override; | 151 blink::WebPageVisibilityState GetVisibilityState() override; |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 // part of the same site instance. | 577 // part of the same site instance. |
582 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host); | 578 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host); |
583 | 579 |
584 // Informs the content client that geolocation permissions were used. | 580 // Informs the content client that geolocation permissions were used. |
585 void DidUseGeolocationPermission(); | 581 void DidUseGeolocationPermission(); |
586 | 582 |
587 void UpdatePermissionsForNavigation( | 583 void UpdatePermissionsForNavigation( |
588 const CommonNavigationParams& common_params, | 584 const CommonNavigationParams& common_params, |
589 const RequestNavigationParams& request_params); | 585 const RequestNavigationParams& request_params); |
590 | 586 |
591 // Returns true if the ExecuteJavaScript() API can be used on this host. | |
592 bool CanExecuteJavaScript(); | |
593 | |
594 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 587 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
595 // refcount that calls Shutdown when it reaches zero. This allows each | 588 // refcount that calls Shutdown when it reaches zero. This allows each |
596 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring | 589 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
597 // we have a RenderViewHost for each RenderFrameHost. | 590 // we have a RenderViewHost for each RenderFrameHost. |
598 // TODO(creis): RenderViewHost will eventually go away and be replaced with | 591 // TODO(creis): RenderViewHost will eventually go away and be replaced with |
599 // some form of page context. | 592 // some form of page context. |
600 RenderViewHostImpl* render_view_host_; | 593 RenderViewHostImpl* render_view_host_; |
601 | 594 |
602 RenderFrameHostDelegate* delegate_; | 595 RenderFrameHostDelegate* delegate_; |
603 | 596 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 | 747 |
755 // NOTE: This must be the last member. | 748 // NOTE: This must be the last member. |
756 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 749 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
757 | 750 |
758 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 751 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
759 }; | 752 }; |
760 | 753 |
761 } // namespace content | 754 } // namespace content |
762 | 755 |
763 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 756 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |