| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/renderer/guest_view/mime_handler_view_container.h" | 5 #include "extensions/renderer/guest_view/mime_handler_view/mime_handler_view_con
tainer.h" |
| 6 | 6 |
| 7 #include "content/public/renderer/render_frame.h" | 7 #include "content/public/renderer/render_frame.h" |
| 8 #include "extensions/common/extension_messages.h" | 8 #include "extensions/common/extension_messages.h" |
| 9 #include "extensions/common/guest_view/guest_view_constants.h" | 9 #include "extensions/common/guest_view/guest_view_constants.h" |
| 10 #include "third_party/WebKit/public/web/WebDocument.h" | 10 #include "third_party/WebKit/public/web/WebDocument.h" |
| 11 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 11 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 | 14 |
| 15 MimeHandlerViewContainer::MimeHandlerViewContainer( | 15 MimeHandlerViewContainer::MimeHandlerViewContainer( |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // Parse the stream URL to ensure it's valid. | 95 // Parse the stream URL to ensure it's valid. |
| 96 GURL stream_url(html_string_); | 96 GURL stream_url(html_string_); |
| 97 | 97 |
| 98 DCHECK_NE(element_instance_id(), guestview::kInstanceIDNone); | 98 DCHECK_NE(element_instance_id(), guestview::kInstanceIDNone); |
| 99 render_frame()->Send(new ExtensionHostMsg_CreateMimeHandlerViewGuest( | 99 render_frame()->Send(new ExtensionHostMsg_CreateMimeHandlerViewGuest( |
| 100 routing_id(), stream_url.spec(), mime_type_, element_instance_id())); | 100 routing_id(), stream_url.spec(), mime_type_, element_instance_id())); |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace extensions | 103 } // namespace extensions |
| OLD | NEW |