Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1488)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 1141283002: Replicate whether a frame is in a document or shadow tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Oops Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // the renderer process. This is currently only used for subframes. 197 // the renderer process. This is currently only used for subframes.
197 // TODO(creis): Use this for main frames as well when RVH goes away. 198 // TODO(creis): Use this for main frames as well when RVH goes away.
198 void SetRenderFrameCreated(bool created); 199 void SetRenderFrameCreated(bool created);
199 200
200 // Called for renderer-created windows to resume requests from this frame, 201 // Called for renderer-created windows to resume requests from this frame,
201 // after they are blocked in RenderWidgetHelper::CreateNewWindow. 202 // after they are blocked in RenderWidgetHelper::CreateNewWindow.
202 void Init(); 203 void Init();
203 204
204 int routing_id() const { return routing_id_; } 205 int routing_id() const { return routing_id_; }
205 void OnCreateChildFrame(int new_routing_id, 206 void OnCreateChildFrame(int new_routing_id,
207 blink::WebTreeScopeType scope,
206 const std::string& frame_name, 208 const std::string& frame_name,
207 SandboxFlags sandbox_flags); 209 SandboxFlags sandbox_flags);
208 210
209 RenderViewHostImpl* render_view_host() { return render_view_host_; } 211 RenderViewHostImpl* render_view_host() { return render_view_host_; }
210 RenderFrameHostDelegate* delegate() { return delegate_; } 212 RenderFrameHostDelegate* delegate() { return delegate_; }
211 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } 213 FrameTreeNode* frame_tree_node() { return frame_tree_node_; }
212 214
213 // Returns this RenderFrameHost's loading state. This method is only used by 215 // Returns this RenderFrameHost's loading state. This method is only used by
214 // FrameTreeNode. The proper way to check whether a frame is loading is to 216 // FrameTreeNode. The proper way to check whether a frame is loading is to
215 // call FrameTreeNode::IsLoading. 217 // call FrameTreeNode::IsLoading.
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 735
734 // NOTE: This must be the last member. 736 // NOTE: This must be the last member.
735 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 737 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
736 738
737 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 739 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
738 }; 740 };
739 741
740 } // namespace content 742 } // namespace content
741 743
742 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 744 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698