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