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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 struct FrameOwnerProperties; | 105 struct FrameOwnerProperties; |
105 struct FileChooserParams; | 106 struct FileChooserParams; |
106 struct ResourceResponse; | 107 struct ResourceResponse; |
107 | 108 |
108 namespace mojom { | 109 namespace mojom { |
109 class CreateNewWindowParams; | 110 class CreateNewWindowParams; |
110 } | 111 } |
111 | 112 |
112 class CONTENT_EXPORT RenderFrameHostImpl | 113 class CONTENT_EXPORT RenderFrameHostImpl |
113 : public RenderFrameHost, | 114 : public RenderFrameHost, |
| 115 public base::SupportsUserData, |
114 NON_EXPORTED_BASE(public mojom::FrameHost), | 116 NON_EXPORTED_BASE(public mojom::FrameHost), |
115 public BrowserAccessibilityDelegate, | 117 public BrowserAccessibilityDelegate, |
116 public SiteInstanceImpl::Observer, | 118 public SiteInstanceImpl::Observer, |
117 public NON_EXPORTED_BASE( | 119 public NON_EXPORTED_BASE( |
118 service_manager::InterfaceFactory<media::mojom::InterfaceFactory>) { | 120 service_manager::InterfaceFactory<media::mojom::InterfaceFactory>) { |
119 public: | 121 public: |
120 using AXTreeSnapshotCallback = | 122 using AXTreeSnapshotCallback = |
121 base::Callback<void( | 123 base::Callback<void( |
122 const ui::AXTreeUpdate&)>; | 124 const ui::AXTreeUpdate&)>; |
123 using SmartClipCallback = base::Callback<void(const base::string16& text, | 125 using SmartClipCallback = base::Callback<void(const base::string16& text, |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 // that made a network request. The PreviewsState is a bitmask of potentially | 610 // that made a network request. The PreviewsState is a bitmask of potentially |
609 // several Previews optimizations. | 611 // several Previews optimizations. |
610 PreviewsState last_navigation_previews_state() const { | 612 PreviewsState last_navigation_previews_state() const { |
611 return last_navigation_previews_state_; | 613 return last_navigation_previews_state_; |
612 } | 614 } |
613 | 615 |
614 bool has_focused_editable_element() const { | 616 bool has_focused_editable_element() const { |
615 return has_focused_editable_element_; | 617 return has_focused_editable_element_; |
616 } | 618 } |
617 | 619 |
| 620 #if defined(OS_ANDROID) |
| 621 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); |
| 622 #endif |
| 623 |
618 protected: | 624 protected: |
619 friend class RenderFrameHostFactory; | 625 friend class RenderFrameHostFactory; |
620 | 626 |
621 // |flags| is a combination of CreateRenderFrameFlags. | 627 // |flags| is a combination of CreateRenderFrameFlags. |
622 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 628 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
623 // should be the abstraction needed here, but we need RenderViewHost to pass | 629 // should be the abstraction needed here, but we need RenderViewHost to pass |
624 // into WebContentsObserver::FrameDetached for now. | 630 // into WebContentsObserver::FrameDetached for now. |
625 RenderFrameHostImpl(SiteInstance* site_instance, | 631 RenderFrameHostImpl(SiteInstance* site_instance, |
626 RenderViewHostImpl* render_view_host, | 632 RenderViewHostImpl* render_view_host, |
627 RenderFrameHostDelegate* delegate, | 633 RenderFrameHostDelegate* delegate, |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 | 1135 |
1130 // NOTE: This must be the last member. | 1136 // NOTE: This must be the last member. |
1131 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1137 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1132 | 1138 |
1133 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1139 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1134 }; | 1140 }; |
1135 | 1141 |
1136 } // namespace content | 1142 } // namespace content |
1137 | 1143 |
1138 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1144 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |