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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 692973005: Pass origin information for remote frame creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add EXPECT_TRUE to NavigateToURL in new tests; nits Created 6 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/id_map.h" 16 #include "base/id_map.h"
17 #include "base/memory/linked_ptr.h" 17 #include "base/memory/linked_ptr.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/observer_list.h" 19 #include "base/observer_list.h"
20 #include "base/process/process.h" 20 #include "base/process/process.h"
21 #include "base/strings/string16.h" 21 #include "base/strings/string16.h"
22 #include "base/timer/timer.h" 22 #include "base/timer/timer.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "cc/input/top_controls_state.h" 24 #include "cc/input/top_controls_state.h"
25 #include "cc/resources/shared_bitmap.h" 25 #include "cc/resources/shared_bitmap.h"
26 #include "content/common/content_export.h" 26 #include "content/common/content_export.h"
27 #include "content/common/drag_event_source_info.h" 27 #include "content/common/drag_event_source_info.h"
28 #include "content/common/edit_command.h" 28 #include "content/common/edit_command.h"
29 #include "content/common/frame_message_enums.h" 29 #include "content/common/frame_message_enums.h"
30 #include "content/common/frame_replication_state.h"
30 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 31 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
31 #include "content/common/navigation_gesture.h" 32 #include "content/common/navigation_gesture.h"
32 #include "content/common/navigation_params.h" 33 #include "content/common/navigation_params.h"
33 #include "content/common/view_message_enums.h" 34 #include "content/common/view_message_enums.h"
34 #include "content/public/common/page_zoom.h" 35 #include "content/public/common/page_zoom.h"
35 #include "content/public/common/referrer.h" 36 #include "content/public/common/referrer.h"
36 #include "content/public/common/renderer_preferences.h" 37 #include "content/public/common/renderer_preferences.h"
37 #include "content/public/common/stop_find_action.h" 38 #include "content/public/common/stop_find_action.h"
38 #include "content/public/common/top_controls_state.h" 39 #include "content/public/common/top_controls_state.h"
39 #include "content/public/common/web_preferences.h" 40 #include "content/public/common/web_preferences.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 NON_EXPORTED_BASE(public blink::WebPageSerializerClient), 158 NON_EXPORTED_BASE(public blink::WebPageSerializerClient),
158 public RenderView, 159 public RenderView,
159 public base::SupportsWeakPtr<RenderViewImpl> { 160 public base::SupportsWeakPtr<RenderViewImpl> {
160 public: 161 public:
161 // Creates a new RenderView. |opener_id| is the routing ID of the RenderView 162 // Creates a new RenderView. |opener_id| is the routing ID of the RenderView
162 // responsible for creating this RenderView. Note that if the original opener 163 // responsible for creating this RenderView. Note that if the original opener
163 // has been closed, |window_was_created_with_opener| will be true and 164 // has been closed, |window_was_created_with_opener| will be true and
164 // |opener_id| will be MSG_ROUTING_NONE. When |swapped_out| is true, the 165 // |opener_id| will be MSG_ROUTING_NONE. When |swapped_out| is true, the
165 // |proxy_routing_id| is specified, so a RenderFrameProxy can be created for 166 // |proxy_routing_id| is specified, so a RenderFrameProxy can be created for
166 // this RenderView's main RenderFrame. 167 // this RenderView's main RenderFrame.
167 static RenderViewImpl* Create(int32 opener_id, 168 static RenderViewImpl* Create(
168 bool window_was_created_with_opener, 169 int32 opener_id,
169 const RendererPreferences& renderer_prefs, 170 bool window_was_created_with_opener,
170 const WebPreferences& webkit_prefs, 171 const RendererPreferences& renderer_prefs,
171 int32 routing_id, 172 const WebPreferences& webkit_prefs,
172 int32 main_frame_routing_id, 173 int32 routing_id,
173 int32 surface_id, 174 int32 main_frame_routing_id,
174 int64 session_storage_namespace_id, 175 int32 surface_id,
175 const base::string16& frame_name, 176 int64 session_storage_namespace_id,
176 bool is_renderer_created, 177 const base::string16& frame_name,
177 bool swapped_out, 178 bool is_renderer_created,
178 int32 proxy_routing_id, 179 bool swapped_out,
179 bool hidden, 180 const FrameReplicationState& remote_frame_state,
180 bool never_visible, 181 int32 proxy_routing_id,
181 int32 next_page_id, 182 bool hidden,
182 const ViewMsg_Resize_Params& initial_size, 183 bool never_visible,
183 bool enable_auto_resize, 184 int32 next_page_id,
184 const gfx::Size& min_size, 185 const ViewMsg_Resize_Params& initial_size,
185 const gfx::Size& max_size); 186 bool enable_auto_resize,
187 const gfx::Size& min_size,
188 const gfx::Size& max_size);
186 189
187 // Used by content_layouttest_support to hook into the creation of 190 // Used by content_layouttest_support to hook into the creation of
188 // RenderViewImpls. 191 // RenderViewImpls.
189 static void InstallCreateHook( 192 static void InstallCreateHook(
190 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); 193 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*));
191 194
192 // Returns the RenderViewImpl containing the given WebView. 195 // Returns the RenderViewImpl containing the given WebView.
193 static RenderViewImpl* FromWebView(blink::WebView* webview); 196 static RenderViewImpl* FromWebView(blink::WebView* webview);
194 197
195 // Returns the RenderViewImpl for the given routing ID. 198 // Returns the RenderViewImpl for the given routing ID.
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 // use the Observer interface to filter IPC messages and receive frame change 1107 // use the Observer interface to filter IPC messages and receive frame change
1105 // notifications. 1108 // notifications.
1106 // --------------------------------------------------------------------------- 1109 // ---------------------------------------------------------------------------
1107 1110
1108 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1111 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1109 }; 1112 };
1110 1113
1111 } // namespace content 1114 } // namespace content
1112 1115
1113 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1116 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698