| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 "components/guest_view/renderer/guest_view_request.h" | 5 #include "components/guest_view/renderer/guest_view_request.h" |
| 6 | 6 |
| 7 #include <tuple> | 7 #include <tuple> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "components/guest_view/common/guest_view_messages.h" | 10 #include "components/guest_view/common/guest_view_messages.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 } | 121 } |
| 122 | 122 |
| 123 void GuestViewDetachRequest::PerformRequest() { | 123 void GuestViewDetachRequest::PerformRequest() { |
| 124 if (!container()->render_frame()) | 124 if (!container()->render_frame()) |
| 125 return; | 125 return; |
| 126 | 126 |
| 127 container()->render_frame()->DetachGuest(container()->element_instance_id()); | 127 container()->render_frame()->DetachGuest(container()->element_instance_id()); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void GuestViewDetachRequest::HandleResponse(const IPC::Message& message) { | 130 void GuestViewDetachRequest::HandleResponse(const IPC::Message& message) { |
| 131 DCHECK(message.type() == GuestViewMsg_GuestDetached::ID); |
| 131 ExecuteCallbackIfAvailable(0 /* argc */, nullptr); | 132 ExecuteCallbackIfAvailable(0 /* argc */, nullptr); |
| 132 } | 133 } |
| 133 | 134 |
| 134 } // namespace guest_view | 135 } // namespace guest_view |
| OLD | NEW |