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/mojo/service_registry_impl.h" | 23 #include "content/common/mojo/service_registry_impl.h" |
23 #include "content/public/browser/render_frame_host.h" | 24 #include "content/public/browser/render_frame_host.h" |
24 #include "content/public/common/javascript_message_type.h" | 25 #include "content/public/common/javascript_message_type.h" |
25 #include "net/http/http_response_headers.h" | 26 #include "net/http/http_response_headers.h" |
26 #include "third_party/WebKit/public/web/WebTextDirection.h" | 27 #include "third_party/WebKit/public/web/WebTextDirection.h" |
27 #include "ui/accessibility/ax_node_data.h" | 28 #include "ui/accessibility/ax_node_data.h" |
28 #include "ui/base/page_transition_types.h" | 29 #include "ui/base/page_transition_types.h" |
29 | 30 |
30 #if defined(OS_ANDROID) | 31 #if defined(OS_ANDROID) |
31 #include "content/browser/mojo/service_registry_android.h" | 32 #include "content/browser/mojo/service_registry_android.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 void set_render_frame_created(bool created) { | 178 void set_render_frame_created(bool created) { |
178 render_frame_created_ = created; | 179 render_frame_created_ = created; |
179 } | 180 } |
180 | 181 |
181 // Called for renderer-created windows to resume requests from this frame, | 182 // Called for renderer-created windows to resume requests from this frame, |
182 // after they are blocked in RenderWidgetHelper::CreateNewWindow. | 183 // after they are blocked in RenderWidgetHelper::CreateNewWindow. |
183 void Init(); | 184 void Init(); |
184 | 185 |
185 int routing_id() const { return routing_id_; } | 186 int routing_id() const { return routing_id_; } |
186 void OnCreateChildFrame(int new_routing_id, | 187 void OnCreateChildFrame(int new_routing_id, |
187 const std::string& frame_name); | 188 const std::string& frame_name, |
| 189 SandboxFlags sandbox_flags); |
188 | 190 |
189 RenderViewHostImpl* render_view_host() { return render_view_host_; } | 191 RenderViewHostImpl* render_view_host() { return render_view_host_; } |
190 RenderFrameHostDelegate* delegate() { return delegate_; } | 192 RenderFrameHostDelegate* delegate() { return delegate_; } |
191 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 193 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
192 // TODO(nasko): The RenderWidgetHost will be owned by RenderFrameHost in | 194 // TODO(nasko): The RenderWidgetHost will be owned by RenderFrameHost in |
193 // the future, so update this accessor to return the right pointer. | 195 // the future, so update this accessor to return the right pointer. |
194 RenderWidgetHostImpl* GetRenderWidgetHost(); | 196 RenderWidgetHostImpl* GetRenderWidgetHost(); |
195 | 197 |
196 // This function is called when this is a swapped out RenderFrameHost that | 198 // This function is called when this is a swapped out RenderFrameHost that |
197 // lives in the same process as the parent frame. The | 199 // lives in the same process as the parent frame. The |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 | 619 |
618 // NOTE: This must be the last member. | 620 // NOTE: This must be the last member. |
619 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 621 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
620 | 622 |
621 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 623 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
622 }; | 624 }; |
623 | 625 |
624 } // namespace content | 626 } // namespace content |
625 | 627 |
626 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 628 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |