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

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

Issue 2383853003: Move FrameMsg_NewFrame/NewFrameProxy to mojom (Closed)
Patch Set: Move FrameMsg_NewFrame/NewFrameProxy to mojom Created 4 years, 2 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
« no previous file with comments | « content/common/renderer.mojom ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
17 #include "base/id_map.h" 17 #include "base/id_map.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/linked_ptr.h" 19 #include "base/memory/linked_ptr.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/memory/weak_ptr.h" 21 #include "base/memory/weak_ptr.h"
22 #include "base/observer_list.h" 22 #include "base/observer_list.h"
23 #include "base/process/process_handle.h" 23 #include "base/process/process_handle.h"
24 #include "build/build_config.h" 24 #include "build/build_config.h"
25 #include "content/common/accessibility_mode_enums.h" 25 #include "content/common/accessibility_mode_enums.h"
26 #include "content/common/associated_interface_registry_impl.h" 26 #include "content/common/associated_interface_registry_impl.h"
27 #include "content/common/frame.mojom.h" 27 #include "content/common/frame.mojom.h"
28 #include "content/common/frame_message_enums.h" 28 #include "content/common/frame_message_enums.h"
29 #include "content/common/renderer.mojom.h"
29 #include "content/public/common/console_message_level.h" 30 #include "content/public/common/console_message_level.h"
30 #include "content/public/common/javascript_message_type.h" 31 #include "content/public/common/javascript_message_type.h"
31 #include "content/public/common/referrer.h" 32 #include "content/public/common/referrer.h"
32 #include "content/public/common/stop_find_action.h" 33 #include "content/public/common/stop_find_action.h"
33 #include "content/public/renderer/render_frame.h" 34 #include "content/public/renderer/render_frame.h"
34 #include "content/renderer/frame_blame_context.h" 35 #include "content/renderer/frame_blame_context.h"
35 #include "content/renderer/mojo/blink_interface_provider_impl.h" 36 #include "content/renderer/mojo/blink_interface_provider_impl.h"
36 #include "content/renderer/renderer_webcookiejar_impl.h" 37 #include "content/renderer/renderer_webcookiejar_impl.h"
37 #include "ipc/ipc_message.h" 38 #include "ipc/ipc_message.h"
38 #include "ipc/ipc_platform_file.h" 39 #include "ipc/ipc_platform_file.h"
(...skipping 26 matching lines...) Expand all
65 66
66 #if defined(OS_ANDROID) 67 #if defined(OS_ANDROID)
67 #include "content/renderer/media/android/renderer_media_player_manager.h" 68 #include "content/renderer/media/android/renderer_media_player_manager.h"
68 #endif 69 #endif
69 70
70 #if defined(ENABLE_MOJO_MEDIA) 71 #if defined(ENABLE_MOJO_MEDIA)
71 #include "media/mojo/interfaces/service_factory.mojom.h" // nogncheck 72 #include "media/mojo/interfaces/service_factory.mojom.h" // nogncheck
72 #endif 73 #endif
73 74
74 class TransportDIB; 75 class TransportDIB;
75 struct FrameMsg_NewFrame_WidgetParams;
76 struct FrameMsg_PostMessage_Params; 76 struct FrameMsg_PostMessage_Params;
77 struct FrameMsg_SerializeAsMHTML_Params; 77 struct FrameMsg_SerializeAsMHTML_Params;
78 struct FrameMsg_TextTrackSettings_Params; 78 struct FrameMsg_TextTrackSettings_Params;
79 79
80 namespace IPC { 80 namespace IPC {
81 class SyncMessage; 81 class SyncMessage;
82 } 82 }
83 83
84 namespace blink { 84 namespace blink {
85 class WebContentDecryptionModule; 85 class WebContentDecryptionModule;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 struct FileChooserParams; 160 struct FileChooserParams;
161 struct FrameOwnerProperties; 161 struct FrameOwnerProperties;
162 struct FrameReplicationState; 162 struct FrameReplicationState;
163 struct NavigationParams; 163 struct NavigationParams;
164 struct RequestNavigationParams; 164 struct RequestNavigationParams;
165 struct ResourceResponseHead; 165 struct ResourceResponseHead;
166 struct ScreenInfo; 166 struct ScreenInfo;
167 struct StartNavigationParams; 167 struct StartNavigationParams;
168 struct StreamOverrideParameters; 168 struct StreamOverrideParameters;
169 169
170 namespace {
171 class CreateFrameWidgetParams;
172 }
173
170 class CONTENT_EXPORT RenderFrameImpl 174 class CONTENT_EXPORT RenderFrameImpl
171 : public RenderFrame, 175 : public RenderFrame,
172 NON_EXPORTED_BASE(mojom::Frame), 176 NON_EXPORTED_BASE(mojom::Frame),
173 NON_EXPORTED_BASE(public blink::WebFrameClient), 177 NON_EXPORTED_BASE(public blink::WebFrameClient),
174 NON_EXPORTED_BASE(public blink::WebFrameSerializerClient) { 178 NON_EXPORTED_BASE(public blink::WebFrameSerializerClient) {
175 public: 179 public:
176 // Creates a new RenderFrame as the main frame of |render_view|. 180 // Creates a new RenderFrame as the main frame of |render_view|.
177 static RenderFrameImpl* CreateMainFrame( 181 static RenderFrameImpl* CreateMainFrame(
178 RenderViewImpl* render_view, 182 RenderViewImpl* render_view,
179 int32_t routing_id, 183 int32_t routing_id,
(...skipping 15 matching lines...) Expand all
195 // the latter is MSG_ROUTING_NONE. Note: This is called only when 199 // the latter is MSG_ROUTING_NONE. Note: This is called only when
196 // RenderFrame is being created in response to IPC message from the browser 200 // RenderFrame is being created in response to IPC message from the browser
197 // process. All other frame creation is driven through Blink and Create. 201 // process. All other frame creation is driven through Blink and Create.
198 static void CreateFrame(int routing_id, 202 static void CreateFrame(int routing_id,
199 int proxy_routing_id, 203 int proxy_routing_id,
200 int opener_routing_id, 204 int opener_routing_id,
201 int parent_routing_id, 205 int parent_routing_id,
202 int previous_sibling_routing_id, 206 int previous_sibling_routing_id,
203 const FrameReplicationState& replicated_state, 207 const FrameReplicationState& replicated_state,
204 CompositorDependencies* compositor_deps, 208 CompositorDependencies* compositor_deps,
205 const FrameMsg_NewFrame_WidgetParams& params, 209 const mojom::CreateFrameWidgetParams& params,
206 const FrameOwnerProperties& frame_owner_properties); 210 const FrameOwnerProperties& frame_owner_properties);
207 211
208 // Returns the RenderFrameImpl for the given routing ID. 212 // Returns the RenderFrameImpl for the given routing ID.
209 static RenderFrameImpl* FromRoutingID(int routing_id); 213 static RenderFrameImpl* FromRoutingID(int routing_id);
210 214
211 // Just like RenderFrame::FromWebFrame but returns the implementation. 215 // Just like RenderFrame::FromWebFrame but returns the implementation.
212 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame); 216 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame);
213 217
214 // Used by content_layouttest_support to hook into the creation of 218 // Used by content_layouttest_support to hook into the creation of
215 // RenderFrameImpls. 219 // RenderFrameImpls.
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 remote_associated_interfaces_; 1298 remote_associated_interfaces_;
1295 1299
1296 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1300 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1297 1301
1298 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1302 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1299 }; 1303 };
1300 1304
1301 } // namespace content 1305 } // namespace content
1302 1306
1303 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1307 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/renderer.mojom ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698