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

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

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 years, 11 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 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 23 matching lines...) Expand all
34 #include "components/scheduler/renderer/renderer_scheduler.h" 34 #include "components/scheduler/renderer/renderer_scheduler.h"
35 #include "content/child/appcache/appcache_dispatcher.h" 35 #include "content/child/appcache/appcache_dispatcher.h"
36 #include "content/child/permissions/permission_dispatcher.h" 36 #include "content/child/permissions/permission_dispatcher.h"
37 #include "content/child/plugin_messages.h" 37 #include "content/child/plugin_messages.h"
38 #include "content/child/quota_dispatcher.h" 38 #include "content/child/quota_dispatcher.h"
39 #include "content/child/request_extra_data.h" 39 #include "content/child/request_extra_data.h"
40 #include "content/child/service_worker/service_worker_handle_reference.h" 40 #include "content/child/service_worker/service_worker_handle_reference.h"
41 #include "content/child/service_worker/service_worker_network_provider.h" 41 #include "content/child/service_worker/service_worker_network_provider.h"
42 #include "content/child/service_worker/service_worker_provider_context.h" 42 #include "content/child/service_worker/service_worker_provider_context.h"
43 #include "content/child/service_worker/web_service_worker_provider_impl.h" 43 #include "content/child/service_worker/web_service_worker_provider_impl.h"
44 #include "content/child/thread_safe_sender.h"
44 #include "content/child/v8_value_converter_impl.h" 45 #include "content/child/v8_value_converter_impl.h"
45 #include "content/child/web_url_loader_impl.h" 46 #include "content/child/web_url_loader_impl.h"
46 #include "content/child/web_url_request_util.h" 47 #include "content/child/web_url_request_util.h"
47 #include "content/child/webmessageportchannel_impl.h" 48 #include "content/child/webmessageportchannel_impl.h"
48 #include "content/child/websocket_bridge.h" 49 #include "content/child/websocket_bridge.h"
49 #include "content/child/weburlresponse_extradata_impl.h" 50 #include "content/child/weburlresponse_extradata_impl.h"
50 #include "content/common/accessibility_messages.h" 51 #include "content/common/accessibility_messages.h"
51 #include "content/common/clipboard_messages.h" 52 #include "content/common/clipboard_messages.h"
52 #include "content/common/frame_messages.h" 53 #include "content/common/frame_messages.h"
53 #include "content/common/frame_replication_state.h" 54 #include "content/common/frame_replication_state.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 #include "third_party/WebKit/public/platform/WebURL.h" 154 #include "third_party/WebKit/public/platform/WebURL.h"
154 #include "third_party/WebKit/public/platform/WebURLError.h" 155 #include "third_party/WebKit/public/platform/WebURLError.h"
155 #include "third_party/WebKit/public/platform/WebURLResponse.h" 156 #include "third_party/WebKit/public/platform/WebURLResponse.h"
156 #include "third_party/WebKit/public/platform/WebVector.h" 157 #include "third_party/WebKit/public/platform/WebVector.h"
157 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h" 158 #include "third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h"
158 #include "third_party/WebKit/public/web/WebColorSuggestion.h" 159 #include "third_party/WebKit/public/web/WebColorSuggestion.h"
159 #include "third_party/WebKit/public/web/WebDocument.h" 160 #include "third_party/WebKit/public/web/WebDocument.h"
160 #include "third_party/WebKit/public/web/WebFindOptions.h" 161 #include "third_party/WebKit/public/web/WebFindOptions.h"
161 #include "third_party/WebKit/public/web/WebFrameSerializer.h" 162 #include "third_party/WebKit/public/web/WebFrameSerializer.h"
162 #include "third_party/WebKit/public/web/WebFrameWidget.h" 163 #include "third_party/WebKit/public/web/WebFrameWidget.h"
164 #include "third_party/WebKit/public/web/WebFramelet.h"
165 #include "third_party/WebKit/public/web/WebFrameletClient.h"
163 #include "third_party/WebKit/public/web/WebKit.h" 166 #include "third_party/WebKit/public/web/WebKit.h"
164 #include "third_party/WebKit/public/web/WebLocalFrame.h" 167 #include "third_party/WebKit/public/web/WebLocalFrame.h"
165 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" 168 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h"
166 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 169 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
167 #include "third_party/WebKit/public/web/WebPlugin.h" 170 #include "third_party/WebKit/public/web/WebPlugin.h"
168 #include "third_party/WebKit/public/web/WebPluginContainer.h" 171 #include "third_party/WebKit/public/web/WebPluginContainer.h"
169 #include "third_party/WebKit/public/web/WebPluginDocument.h" 172 #include "third_party/WebKit/public/web/WebPluginDocument.h"
170 #include "third_party/WebKit/public/web/WebPluginParams.h" 173 #include "third_party/WebKit/public/web/WebPluginParams.h"
171 #include "third_party/WebKit/public/web/WebRange.h" 174 #include "third_party/WebKit/public/web/WebRange.h"
172 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" 175 #include "third_party/WebKit/public/web/WebScopedUserGesture.h"
(...skipping 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after
2609 child_render_frame->BindToWebFrame(web_frame); 2612 child_render_frame->BindToWebFrame(web_frame);
2610 2613
2611 // Add the frame to the frame tree and initialize it. 2614 // Add the frame to the frame tree and initialize it.
2612 parent->appendChild(web_frame); 2615 parent->appendChild(web_frame);
2613 child_render_frame->in_frame_tree_ = true; 2616 child_render_frame->in_frame_tree_ = true;
2614 child_render_frame->Initialize(); 2617 child_render_frame->Initialize();
2615 2618
2616 return web_frame; 2619 return web_frame;
2617 } 2620 }
2618 2621
2622 blink::WebFramelet* RenderFrameImpl::createFramelet(const blink::WebURL& url) {
2623 blink::WebFrameletClient* client =
2624 GetContentClient()->renderer()->CreateFramelet(
2625 this, GURL(url), RenderThreadImpl::current()->thread_safe_sender());
2626 return blink::WebFramelet::create(client);
2627 }
2628
2619 void RenderFrameImpl::didChangeOpener(blink::WebFrame* opener) { 2629 void RenderFrameImpl::didChangeOpener(blink::WebFrame* opener) {
2620 // Only active frames are able to disown their opener. 2630 // Only active frames are able to disown their opener.
2621 if (!opener && is_swapped_out_) 2631 if (!opener && is_swapped_out_)
2622 return; 2632 return;
2623 2633
2624 // Only a local frame should be able to update another frame's opener. 2634 // Only a local frame should be able to update another frame's opener.
2625 DCHECK(!opener || opener->isWebLocalFrame()); 2635 DCHECK(!opener || opener->isWebLocalFrame());
2626 2636
2627 int opener_routing_id = opener ? 2637 int opener_routing_id = opener ?
2628 RenderFrameImpl::FromWebFrame(opener->toWebLocalFrame())->GetRoutingID() : 2638 RenderFrameImpl::FromWebFrame(opener->toWebLocalFrame())->GetRoutingID() :
(...skipping 3416 matching lines...) Expand 10 before | Expand all | Expand 10 after
6045 int match_count, 6055 int match_count,
6046 int ordinal, 6056 int ordinal,
6047 const WebRect& selection_rect, 6057 const WebRect& selection_rect,
6048 bool final_status_update) { 6058 bool final_status_update) {
6049 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, 6059 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count,
6050 selection_rect, ordinal, 6060 selection_rect, ordinal,
6051 final_status_update)); 6061 final_status_update));
6052 } 6062 }
6053 6063
6054 } // namespace content 6064 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | extensions/browser/guest_view/extensions_guest_view_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698