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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 } | 208 } |
209 | 209 |
210 void MimeHandlerViewGuest::OnRequest( | 210 void MimeHandlerViewGuest::OnRequest( |
211 const ExtensionHostMsg_Request_Params& params) { | 211 const ExtensionHostMsg_Request_Params& params) { |
212 if (extension_function_dispatcher_) { | 212 if (extension_function_dispatcher_) { |
213 extension_function_dispatcher_->Dispatch( | 213 extension_function_dispatcher_->Dispatch( |
214 params, web_contents()->GetRenderViewHost()); | 214 params, web_contents()->GetRenderViewHost()); |
215 } | 215 } |
216 } | 216 } |
217 | 217 |
| 218 void MimeHandlerViewGuest::DocumentOnLoadCompleted(int guest_proxy_routing_id) { |
| 219 embedder_web_contents()->Send( |
| 220 new ExtensionMsg_MimeHandlerViewGuestOnLoadCompleted( |
| 221 embedder_web_contents()->GetMainFrame()->GetRoutingID(), |
| 222 element_instance_id())); |
| 223 } |
| 224 |
218 } // namespace extensions | 225 } // namespace extensions |
OLD | NEW |