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/browser/guest_view/mime_handler_view/mime_handler_view_gues
t.h" | 5 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues
t.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 #include "content/public/browser/render_process_host.h" | 9 #include "content/public/browser/render_process_host.h" |
10 #include "content/public/common/url_constants.h" | 10 #include "content/public/common/url_constants.h" |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 } | 212 } |
213 | 213 |
214 void MimeHandlerViewGuest::OnRequest( | 214 void MimeHandlerViewGuest::OnRequest( |
215 const ExtensionHostMsg_Request_Params& params) { | 215 const ExtensionHostMsg_Request_Params& params) { |
216 if (extension_function_dispatcher_) { | 216 if (extension_function_dispatcher_) { |
217 extension_function_dispatcher_->Dispatch( | 217 extension_function_dispatcher_->Dispatch( |
218 params, web_contents()->GetRenderViewHost()); | 218 params, web_contents()->GetRenderViewHost()); |
219 } | 219 } |
220 } | 220 } |
221 | 221 |
| 222 void MimeHandlerViewGuest::DocumentOnLoadCompleted(int guest_proxy_routing_id) { |
| 223 embedder_web_contents()->Send( |
| 224 new ExtensionMsg_MimeHandlerViewGuestOnLoadCompleted( |
| 225 element_instance_id())); |
| 226 } |
| 227 |
222 } // namespace extensions | 228 } // namespace extensions |
OLD | NEW |