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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 // several Previews optimizations. | 611 // several Previews optimizations. |
612 PreviewsState last_navigation_previews_state() const { | 612 PreviewsState last_navigation_previews_state() const { |
613 return last_navigation_previews_state_; | 613 return last_navigation_previews_state_; |
614 } | 614 } |
615 | 615 |
616 bool has_focused_editable_element() const { | 616 bool has_focused_editable_element() const { |
617 return has_focused_editable_element_; | 617 return has_focused_editable_element_; |
618 } | 618 } |
619 | 619 |
620 #if defined(OS_ANDROID) | 620 #if defined(OS_ANDROID) |
621 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); | 621 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost() override; |
| 622 service_manager::InterfaceProvider* GetJavaInterfaces() override; |
622 #endif | 623 #endif |
623 | 624 |
624 protected: | 625 protected: |
625 friend class RenderFrameHostFactory; | 626 friend class RenderFrameHostFactory; |
626 | 627 |
627 // |flags| is a combination of CreateRenderFrameFlags. | 628 // |flags| is a combination of CreateRenderFrameFlags. |
628 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 629 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
629 // should be the abstraction needed here, but we need RenderViewHost to pass | 630 // should be the abstraction needed here, but we need RenderViewHost to pass |
630 // into WebContentsObserver::FrameDetached for now. | 631 // into WebContentsObserver::FrameDetached for now. |
631 RenderFrameHostImpl(SiteInstance* site_instance, | 632 RenderFrameHostImpl(SiteInstance* site_instance, |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 std::unique_ptr<AssociatedInterfaceProviderImpl> | 1127 std::unique_ptr<AssociatedInterfaceProviderImpl> |
1127 remote_associated_interfaces_; | 1128 remote_associated_interfaces_; |
1128 | 1129 |
1129 // A bitwise OR of bindings types that have been enabled for this RenderFrame. | 1130 // A bitwise OR of bindings types that have been enabled for this RenderFrame. |
1130 // See BindingsPolicy for details. | 1131 // See BindingsPolicy for details. |
1131 int enabled_bindings_ = 0; | 1132 int enabled_bindings_ = 0; |
1132 | 1133 |
1133 // Tracks the feature policy which has been set on this frame. | 1134 // Tracks the feature policy which has been set on this frame. |
1134 std::unique_ptr<FeaturePolicy> feature_policy_; | 1135 std::unique_ptr<FeaturePolicy> feature_policy_; |
1135 | 1136 |
| 1137 #if defined(OS_ANDROID) |
| 1138 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_; |
| 1139 #endif |
| 1140 |
1136 // NOTE: This must be the last member. | 1141 // NOTE: This must be the last member. |
1137 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1142 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1138 | 1143 |
1139 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1144 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1140 }; | 1145 }; |
1141 | 1146 |
1142 } // namespace content | 1147 } // namespace content |
1143 | 1148 |
1144 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1149 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |