| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "content/browser/accessibility/browser_accessibility_manager.h" | 17 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 18 #include "content/browser/site_instance_impl.h" | 18 #include "content/browser/site_instance_impl.h" |
| 19 #include "content/common/accessibility_mode_enums.h" | 19 #include "content/common/accessibility_mode_enums.h" |
| 20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
| 21 #include "content/common/frame_message_enums.h" | 21 #include "content/common/frame_message_enums.h" |
| 22 #include "content/common/frame_replication_state.h" | 22 #include "content/common/frame_replication_state.h" |
| 23 #include "content/common/mojo/service_registry_impl.h" | 23 #include "content/common/mojo/service_registry_impl.h" |
| 24 #include "content/common/navigation_params.h" | 24 #include "content/common/navigation_params.h" |
| 25 #include "content/public/browser/render_frame_host.h" | 25 #include "content/public/browser/render_frame_host.h" |
| 26 #include "content/public/common/javascript_message_type.h" | 26 #include "content/public/common/javascript_message_type.h" |
| 27 #include "net/http/http_response_headers.h" | 27 #include "net/http/http_response_headers.h" |
| 28 #include "third_party/WebKit/public/web/WebTextDirection.h" | 28 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 29 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
| 29 #include "ui/accessibility/ax_node_data.h" | 30 #include "ui/accessibility/ax_node_data.h" |
| 30 #include "ui/base/page_transition_types.h" | 31 #include "ui/base/page_transition_types.h" |
| 31 | 32 |
| 32 #if defined(OS_ANDROID) | 33 #if defined(OS_ANDROID) |
| 33 #include "content/browser/mojo/service_registry_android.h" | 34 #include "content/browser/mojo/service_registry_android.h" |
| 34 #endif | 35 #endif |
| 35 | 36 |
| 36 class GURL; | 37 class GURL; |
| 37 struct AccessibilityHostMsg_EventParams; | 38 struct AccessibilityHostMsg_EventParams; |
| 38 struct AccessibilityHostMsg_FindInPageResultParams; | 39 struct AccessibilityHostMsg_FindInPageResultParams; |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // the renderer process. This is currently only used for subframes. | 196 // the renderer process. This is currently only used for subframes. |
| 196 // TODO(creis): Use this for main frames as well when RVH goes away. | 197 // TODO(creis): Use this for main frames as well when RVH goes away. |
| 197 void SetRenderFrameCreated(bool created); | 198 void SetRenderFrameCreated(bool created); |
| 198 | 199 |
| 199 // Called for renderer-created windows to resume requests from this frame, | 200 // Called for renderer-created windows to resume requests from this frame, |
| 200 // after they are blocked in RenderWidgetHelper::CreateNewWindow. | 201 // after they are blocked in RenderWidgetHelper::CreateNewWindow. |
| 201 void Init(); | 202 void Init(); |
| 202 | 203 |
| 203 int routing_id() const { return routing_id_; } | 204 int routing_id() const { return routing_id_; } |
| 204 void OnCreateChildFrame(int new_routing_id, | 205 void OnCreateChildFrame(int new_routing_id, |
| 206 blink::WebTreeScopeType scope, |
| 205 const std::string& frame_name, | 207 const std::string& frame_name, |
| 206 SandboxFlags sandbox_flags); | 208 SandboxFlags sandbox_flags); |
| 207 | 209 |
| 208 RenderViewHostImpl* render_view_host() { return render_view_host_; } | 210 RenderViewHostImpl* render_view_host() { return render_view_host_; } |
| 209 RenderFrameHostDelegate* delegate() { return delegate_; } | 211 RenderFrameHostDelegate* delegate() { return delegate_; } |
| 210 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 212 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
| 211 | 213 |
| 212 // Returns this RenderFrameHost's loading state. This method is only used by | 214 // Returns this RenderFrameHost's loading state. This method is only used by |
| 213 // FrameTreeNode. The proper way to check whether a frame is loading is to | 215 // FrameTreeNode. The proper way to check whether a frame is loading is to |
| 214 // call FrameTreeNode::IsLoading. | 216 // call FrameTreeNode::IsLoading. |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 | 723 |
| 722 // NOTE: This must be the last member. | 724 // NOTE: This must be the last member. |
| 723 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 725 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 724 | 726 |
| 725 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 727 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 726 }; | 728 }; |
| 727 | 729 |
| 728 } // namespace content | 730 } // namespace content |
| 729 | 731 |
| 730 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 732 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |