Chromium Code Reviews| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 99 class StreamHandle; | 99 class StreamHandle; |
| 100 class TimeoutMonitor; | 100 class TimeoutMonitor; |
| 101 class WebBluetoothServiceImpl; | 101 class WebBluetoothServiceImpl; |
| 102 struct ContentSecurityPolicyHeader; | 102 struct ContentSecurityPolicyHeader; |
| 103 struct ContextMenuParams; | 103 struct ContextMenuParams; |
| 104 struct FileChooserParams; | 104 struct FileChooserParams; |
| 105 struct FrameOwnerProperties; | 105 struct FrameOwnerProperties; |
| 106 struct FileChooserParams; | 106 struct FileChooserParams; |
| 107 struct ResourceResponse; | 107 struct ResourceResponse; |
| 108 | 108 |
| 109 #if defined(OS_ANDROID) | |
| 110 class RenderFrameHostAndroid; | |
| 111 #endif | |
| 112 | |
| 109 namespace mojom { | 113 namespace mojom { |
| 110 class CreateNewWindowParams; | 114 class CreateNewWindowParams; |
| 111 } | 115 } |
| 112 | 116 |
| 113 class CONTENT_EXPORT RenderFrameHostImpl | 117 class CONTENT_EXPORT RenderFrameHostImpl |
| 114 : public RenderFrameHost, | 118 : public RenderFrameHost, |
| 115 NON_EXPORTED_BASE(public mojom::FrameHost), | 119 NON_EXPORTED_BASE(public mojom::FrameHost), |
| 116 public BrowserAccessibilityDelegate, | 120 public BrowserAccessibilityDelegate, |
| 117 public SiteInstanceImpl::Observer, | 121 public SiteInstanceImpl::Observer, |
| 118 public NON_EXPORTED_BASE( | 122 public NON_EXPORTED_BASE( |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 617 // that made a network request. The PreviewsState is a bitmask of potentially | 621 // that made a network request. The PreviewsState is a bitmask of potentially |
| 618 // several Previews optimizations. | 622 // several Previews optimizations. |
| 619 PreviewsState last_navigation_previews_state() const { | 623 PreviewsState last_navigation_previews_state() const { |
| 620 return last_navigation_previews_state_; | 624 return last_navigation_previews_state_; |
| 621 } | 625 } |
| 622 | 626 |
| 623 bool has_focused_editable_element() const { | 627 bool has_focused_editable_element() const { |
| 624 return has_focused_editable_element_; | 628 return has_focused_editable_element_; |
| 625 } | 629 } |
| 626 | 630 |
| 631 #if defined(OS_ANDROID) | |
| 632 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); | |
| 633 RenderFrameHostAndroid* GetRenderFrameHostAndroid(); | |
|
please use gerrit instead
2017/02/14 18:31:10
Let's remove GetRenderFrameHostAndroid() and use r
rwlbuis
2017/02/14 19:26:27
Done.
| |
| 634 #endif | |
| 635 | |
| 627 protected: | 636 protected: |
| 628 friend class RenderFrameHostFactory; | 637 friend class RenderFrameHostFactory; |
| 629 | 638 |
| 630 // |flags| is a combination of CreateRenderFrameFlags. | 639 // |flags| is a combination of CreateRenderFrameFlags. |
| 631 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 640 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
| 632 // should be the abstraction needed here, but we need RenderViewHost to pass | 641 // should be the abstraction needed here, but we need RenderViewHost to pass |
| 633 // into WebContentsObserver::FrameDetached for now. | 642 // into WebContentsObserver::FrameDetached for now. |
| 634 RenderFrameHostImpl(SiteInstance* site_instance, | 643 RenderFrameHostImpl(SiteInstance* site_instance, |
| 635 RenderViewHostImpl* render_view_host, | 644 RenderViewHostImpl* render_view_host, |
| 636 RenderFrameHostDelegate* delegate, | 645 RenderFrameHostDelegate* delegate, |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1158 | 1167 |
| 1159 std::unique_ptr<AssociatedInterfaceProviderImpl> | 1168 std::unique_ptr<AssociatedInterfaceProviderImpl> |
| 1160 remote_associated_interfaces_; | 1169 remote_associated_interfaces_; |
| 1161 | 1170 |
| 1162 // A bitwise OR of bindings types that have been enabled for this RenderFrame. | 1171 // A bitwise OR of bindings types that have been enabled for this RenderFrame. |
| 1163 // See BindingsPolicy for details. | 1172 // See BindingsPolicy for details. |
| 1164 int enabled_bindings_ = 0; | 1173 int enabled_bindings_ = 0; |
| 1165 | 1174 |
| 1166 // Tracks the feature policy which has been set on this frame. | 1175 // Tracks the feature policy which has been set on this frame. |
| 1167 std::unique_ptr<FeaturePolicy> feature_policy_; | 1176 std::unique_ptr<FeaturePolicy> feature_policy_; |
| 1177 #if defined(OS_ANDROID) | |
| 1178 RenderFrameHostAndroid* render_frame_host_android_; | |
| 1179 #endif | |
| 1168 | 1180 |
| 1169 // NOTE: This must be the last member. | 1181 // NOTE: This must be the last member. |
| 1170 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1182 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1171 | 1183 |
| 1172 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1184 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1173 }; | 1185 }; |
| 1174 | 1186 |
| 1175 } // namespace content | 1187 } // namespace content |
| 1176 | 1188 |
| 1177 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1189 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |