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

Side by Side Diff: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc

Issue 811263002: Queue postMessage messages destined for a MimeHandlerView guest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@postMessage1
Patch Set: Created 6 years 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698