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 |
11 #include <list> | 11 #include <list> |
12 #include <map> | 12 #include <map> |
13 #include <set> | 13 #include <set> |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/callback.h" | 17 #include "base/callback.h" |
18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
19 #include "base/gtest_prod_util.h" | 19 #include "base/gtest_prod_util.h" |
20 #include "base/macros.h" | 20 #include "base/macros.h" |
21 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
22 #include "base/strings/string16.h" | 22 #include "base/strings/string16.h" |
| 23 #include "base/supports_user_data.h" |
23 #include "base/time/time.h" | 24 #include "base/time/time.h" |
24 #include "build/build_config.h" | 25 #include "build/build_config.h" |
25 #include "content/browser/accessibility/browser_accessibility_manager.h" | 26 #include "content/browser/accessibility/browser_accessibility_manager.h" |
26 #include "content/browser/bad_message.h" | 27 #include "content/browser/bad_message.h" |
27 #include "content/browser/loader/global_routing_id.h" | 28 #include "content/browser/loader/global_routing_id.h" |
28 #include "content/browser/site_instance_impl.h" | 29 #include "content/browser/site_instance_impl.h" |
29 #include "content/browser/webui/web_ui_impl.h" | 30 #include "content/browser/webui/web_ui_impl.h" |
30 #include "content/common/accessibility_mode_enums.h" | 31 #include "content/common/accessibility_mode_enums.h" |
31 #include "content/common/ax_content_node_data.h" | 32 #include "content/common/ax_content_node_data.h" |
32 #include "content/common/content_export.h" | 33 #include "content/common/content_export.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 struct FrameOwnerProperties; | 106 struct FrameOwnerProperties; |
106 struct FileChooserParams; | 107 struct FileChooserParams; |
107 struct ResourceResponse; | 108 struct ResourceResponse; |
108 | 109 |
109 namespace mojom { | 110 namespace mojom { |
110 class CreateNewWindowParams; | 111 class CreateNewWindowParams; |
111 } | 112 } |
112 | 113 |
113 class CONTENT_EXPORT RenderFrameHostImpl | 114 class CONTENT_EXPORT RenderFrameHostImpl |
114 : public RenderFrameHost, | 115 : public RenderFrameHost, |
| 116 public base::SupportsUserData, |
115 NON_EXPORTED_BASE(public mojom::FrameHost), | 117 NON_EXPORTED_BASE(public mojom::FrameHost), |
116 public BrowserAccessibilityDelegate, | 118 public BrowserAccessibilityDelegate, |
117 public SiteInstanceImpl::Observer, | 119 public SiteInstanceImpl::Observer, |
118 public NON_EXPORTED_BASE( | 120 public NON_EXPORTED_BASE( |
119 service_manager::InterfaceFactory<media::mojom::InterfaceFactory>) { | 121 service_manager::InterfaceFactory<media::mojom::InterfaceFactory>) { |
120 public: | 122 public: |
121 using AXTreeSnapshotCallback = | 123 using AXTreeSnapshotCallback = |
122 base::Callback<void( | 124 base::Callback<void( |
123 const ui::AXTreeUpdate&)>; | 125 const ui::AXTreeUpdate&)>; |
124 using SmartClipCallback = base::Callback<void(const base::string16& text, | 126 using SmartClipCallback = base::Callback<void(const base::string16& text, |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 // that made a network request. The PreviewsState is a bitmask of potentially | 619 // that made a network request. The PreviewsState is a bitmask of potentially |
618 // several Previews optimizations. | 620 // several Previews optimizations. |
619 PreviewsState last_navigation_previews_state() const { | 621 PreviewsState last_navigation_previews_state() const { |
620 return last_navigation_previews_state_; | 622 return last_navigation_previews_state_; |
621 } | 623 } |
622 | 624 |
623 bool has_focused_editable_element() const { | 625 bool has_focused_editable_element() const { |
624 return has_focused_editable_element_; | 626 return has_focused_editable_element_; |
625 } | 627 } |
626 | 628 |
| 629 #if defined(OS_ANDROID) |
| 630 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); |
| 631 #endif |
| 632 |
627 protected: | 633 protected: |
628 friend class RenderFrameHostFactory; | 634 friend class RenderFrameHostFactory; |
629 | 635 |
630 // |flags| is a combination of CreateRenderFrameFlags. | 636 // |flags| is a combination of CreateRenderFrameFlags. |
631 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 637 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
632 // should be the abstraction needed here, but we need RenderViewHost to pass | 638 // should be the abstraction needed here, but we need RenderViewHost to pass |
633 // into WebContentsObserver::FrameDetached for now. | 639 // into WebContentsObserver::FrameDetached for now. |
634 RenderFrameHostImpl(SiteInstance* site_instance, | 640 RenderFrameHostImpl(SiteInstance* site_instance, |
635 RenderViewHostImpl* render_view_host, | 641 RenderViewHostImpl* render_view_host, |
636 RenderFrameHostDelegate* delegate, | 642 RenderFrameHostDelegate* delegate, |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1168 | 1174 |
1169 // NOTE: This must be the last member. | 1175 // NOTE: This must be the last member. |
1170 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1176 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1171 | 1177 |
1172 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1178 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1173 }; | 1179 }; |
1174 | 1180 |
1175 } // namespace content | 1181 } // namespace content |
1176 | 1182 |
1177 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1183 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |