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

Side by Side Diff: components/guest_view/renderer/iframe_guest_view_request.cc

Issue 972313002: Make <webview> use out-of-process iframe architecture. (Closed) Base URL: ssh://saopaulo.wat/mnt/dev/shared/src@testoopif2z-better-chrome
Patch Set: sync Created 5 years, 5 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/guest_view/renderer/iframe_guest_view_request.h"
6
7 #include "components/guest_view/common/guest_view_messages.h"
8 #include "components/guest_view/renderer/guest_view_container.h"
9 #include "content/public/renderer/render_frame.h"
10
11 namespace guest_view {
12
13 GuestViewAttachIframeRequest::GuestViewAttachIframeRequest(
14 guest_view::GuestViewContainer* container,
15 int render_frame_routing_id,
16 int guest_instance_id,
17 scoped_ptr<base::DictionaryValue> params,
18 v8::Local<v8::Function> callback,
19 v8::Isolate* isolate)
20 : GuestViewRequest(container, callback, isolate),
21 render_frame_routing_id_(render_frame_routing_id),
22 guest_instance_id_(guest_instance_id),
23 params_(params.Pass()) {
24 }
25
26 GuestViewAttachIframeRequest::~GuestViewAttachIframeRequest() {
27 }
28
29 void GuestViewAttachIframeRequest::PerformRequest() {
30 DCHECK(container()->render_frame());
31
32 container()->render_frame()->Send(new GuestViewHostMsg_AttachToEmbedderFrame(
33 render_frame_routing_id_, container()->element_instance_id(),
34 guest_instance_id_, *params_));
35 }
36
37 void GuestViewAttachIframeRequest::HandleResponse(const IPC::Message& message) {
38 GuestViewMsg_AttachToEmbedderFrame_ACK::Param param;
39 bool message_read_status =
40 GuestViewMsg_AttachToEmbedderFrame_ACK::Read(&message, &param);
41 DCHECK(message_read_status);
42
43 ExecuteCallbackIfAvailable(0, nullptr);
44 }
45
46 } // namespace guest_view
OLDNEW
« no previous file with comments | « components/guest_view/renderer/iframe_guest_view_request.h ('k') | content/browser/browser_plugin/browser_plugin_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698