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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 // that made a network request. The PreviewsState is a bitmask of potentially | 627 // that made a network request. The PreviewsState is a bitmask of potentially |
626 // several Previews optimizations. | 628 // several Previews optimizations. |
627 PreviewsState last_navigation_previews_state() const { | 629 PreviewsState last_navigation_previews_state() const { |
628 return last_navigation_previews_state_; | 630 return last_navigation_previews_state_; |
629 } | 631 } |
630 | 632 |
631 bool has_focused_editable_element() const { | 633 bool has_focused_editable_element() const { |
632 return has_focused_editable_element_; | 634 return has_focused_editable_element_; |
633 } | 635 } |
634 | 636 |
| 637 #if defined(OS_ANDROID) |
| 638 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); |
| 639 #endif |
| 640 |
635 protected: | 641 protected: |
636 friend class RenderFrameHostFactory; | 642 friend class RenderFrameHostFactory; |
637 | 643 |
638 // |flags| is a combination of CreateRenderFrameFlags. | 644 // |flags| is a combination of CreateRenderFrameFlags. |
639 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 645 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
640 // should be the abstraction needed here, but we need RenderViewHost to pass | 646 // should be the abstraction needed here, but we need RenderViewHost to pass |
641 // into WebContentsObserver::FrameDetached for now. | 647 // into WebContentsObserver::FrameDetached for now. |
642 RenderFrameHostImpl(SiteInstance* site_instance, | 648 RenderFrameHostImpl(SiteInstance* site_instance, |
643 RenderViewHostImpl* render_view_host, | 649 RenderViewHostImpl* render_view_host, |
644 RenderFrameHostDelegate* delegate, | 650 RenderFrameHostDelegate* delegate, |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 | 1166 |
1161 // NOTE: This must be the last member. | 1167 // NOTE: This must be the last member. |
1162 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1168 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1163 | 1169 |
1164 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1170 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1165 }; | 1171 }; |
1166 | 1172 |
1167 } // namespace content | 1173 } // namespace content |
1168 | 1174 |
1169 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1175 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |