| 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 18 matching lines...) Expand all Loading... |
| 29 #include "content/common/accessibility_mode_enums.h" | 29 #include "content/common/accessibility_mode_enums.h" |
| 30 #include "content/common/ax_content_node_data.h" | 30 #include "content/common/ax_content_node_data.h" |
| 31 #include "content/common/content_export.h" | 31 #include "content/common/content_export.h" |
| 32 #include "content/common/frame.mojom.h" | 32 #include "content/common/frame.mojom.h" |
| 33 #include "content/common/frame_message_enums.h" | 33 #include "content/common/frame_message_enums.h" |
| 34 #include "content/common/frame_replication_state.h" | 34 #include "content/common/frame_replication_state.h" |
| 35 #include "content/common/image_downloader/image_downloader.mojom.h" | 35 #include "content/common/image_downloader/image_downloader.mojom.h" |
| 36 #include "content/common/navigation_params.h" | 36 #include "content/common/navigation_params.h" |
| 37 #include "content/public/browser/render_frame_host.h" | 37 #include "content/public/browser/render_frame_host.h" |
| 38 #include "content/public/common/javascript_message_type.h" | 38 #include "content/public/common/javascript_message_type.h" |
| 39 #include "media/mojo/interfaces/service_factory.mojom.h" | 39 #include "media/mojo/interfaces/interface_factory.mojom.h" |
| 40 #include "net/http/http_response_headers.h" | 40 #include "net/http/http_response_headers.h" |
| 41 #include "services/service_manager/public/cpp/interface_factory.h" | 41 #include "services/service_manager/public/cpp/interface_factory.h" |
| 42 #include "services/service_manager/public/cpp/interface_registry.h" | 42 #include "services/service_manager/public/cpp/interface_registry.h" |
| 43 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 43 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
| 44 #include "third_party/WebKit/public/web/WebTextDirection.h" | 44 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 45 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 45 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
| 46 #include "ui/accessibility/ax_node_data.h" | 46 #include "ui/accessibility/ax_node_data.h" |
| 47 #include "ui/base/page_transition_types.h" | 47 #include "ui/base/page_transition_types.h" |
| 48 | 48 |
| 49 class GURL; | 49 class GURL; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 struct FileChooserParams; | 100 struct FileChooserParams; |
| 101 struct Referrer; | 101 struct Referrer; |
| 102 struct ResourceResponse; | 102 struct ResourceResponse; |
| 103 | 103 |
| 104 class CONTENT_EXPORT RenderFrameHostImpl | 104 class CONTENT_EXPORT RenderFrameHostImpl |
| 105 : public RenderFrameHost, | 105 : public RenderFrameHost, |
| 106 NON_EXPORTED_BASE(public mojom::FrameHost), | 106 NON_EXPORTED_BASE(public mojom::FrameHost), |
| 107 public BrowserAccessibilityDelegate, | 107 public BrowserAccessibilityDelegate, |
| 108 public SiteInstanceImpl::Observer, | 108 public SiteInstanceImpl::Observer, |
| 109 public NON_EXPORTED_BASE( | 109 public NON_EXPORTED_BASE( |
| 110 service_manager::InterfaceFactory<media::mojom::ServiceFactory>) { | 110 service_manager::InterfaceFactory<media::mojom::InterfaceFactory>) { |
| 111 public: | 111 public: |
| 112 using AXTreeSnapshotCallback = | 112 using AXTreeSnapshotCallback = |
| 113 base::Callback<void( | 113 base::Callback<void( |
| 114 const ui::AXTreeUpdate&)>; | 114 const ui::AXTreeUpdate&)>; |
| 115 | 115 |
| 116 // An accessibility reset is only allowed to prevent very rare corner cases | 116 // An accessibility reset is only allowed to prevent very rare corner cases |
| 117 // or race conditions where the browser and renderer get out of sync. If | 117 // or race conditions where the browser and renderer get out of sync. If |
| 118 // this happens more than this many times, kill the renderer. | 118 // this happens more than this many times, kill the renderer. |
| 119 static const int kMaxAccessibilityResets = 5; | 119 static const int kMaxAccessibilityResets = 5; |
| 120 | 120 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 gfx::Rect AccessibilityGetViewBounds() const override; | 188 gfx::Rect AccessibilityGetViewBounds() const override; |
| 189 gfx::Point AccessibilityOriginInScreen( | 189 gfx::Point AccessibilityOriginInScreen( |
| 190 const gfx::Rect& bounds) const override; | 190 const gfx::Rect& bounds) const override; |
| 191 void AccessibilityFatalError() override; | 191 void AccessibilityFatalError() override; |
| 192 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 192 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
| 193 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; | 193 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; |
| 194 | 194 |
| 195 // SiteInstanceImpl::Observer | 195 // SiteInstanceImpl::Observer |
| 196 void RenderProcessGone(SiteInstanceImpl* site_instance) override; | 196 void RenderProcessGone(SiteInstanceImpl* site_instance) override; |
| 197 | 197 |
| 198 // service_manager::InterfaceFactory<media::mojom::ServiceFactory> | 198 // service_manager::InterfaceFactory<media::mojom::InterfaceFactory> |
| 199 void Create(const service_manager::Identity& remote_identity, | 199 void Create(const service_manager::Identity& remote_identity, |
| 200 media::mojom::ServiceFactoryRequest request) override; | 200 media::mojom::InterfaceFactoryRequest request) override; |
| 201 | 201 |
| 202 // Creates a RenderFrame in the renderer process. | 202 // Creates a RenderFrame in the renderer process. |
| 203 bool CreateRenderFrame(int proxy_routing_id, | 203 bool CreateRenderFrame(int proxy_routing_id, |
| 204 int opener_routing_id, | 204 int opener_routing_id, |
| 205 int parent_routing_id, | 205 int parent_routing_id, |
| 206 int previous_sibling_routing_id); | 206 int previous_sibling_routing_id); |
| 207 | 207 |
| 208 // Tracks whether the RenderFrame for this RenderFrameHost has been created in | 208 // Tracks whether the RenderFrame for this RenderFrameHost has been created in |
| 209 // the renderer process. This is currently only used for subframes. | 209 // the renderer process. This is currently only used for subframes. |
| 210 // TODO(creis): Use this for main frames as well when RVH goes away. | 210 // TODO(creis): Use this for main frames as well when RVH goes away. |
| (...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 remote_associated_interfaces_; | 1050 remote_associated_interfaces_; |
| 1051 // NOTE: This must be the last member. | 1051 // NOTE: This must be the last member. |
| 1052 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1052 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1053 | 1053 |
| 1054 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1054 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1055 }; | 1055 }; |
| 1056 | 1056 |
| 1057 } // namespace content | 1057 } // namespace content |
| 1058 | 1058 |
| 1059 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1059 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |