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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 11090068: When starting a provisional load include the parent frame ID in the IPC and pass it down the th WCO… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updatess Created 8 years, 2 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/browser_plugin/browser_plugin_guest.h" 5 #include "content/browser/browser_plugin/browser_plugin_guest.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "content/browser/browser_plugin/browser_plugin_guest_helper.h" 10 #include "content/browser/browser_plugin/browser_plugin_guest_helper.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 static_cast<WebContentsImpl*>(web_contents())->ShowCreatedWidget(route_id, 366 static_cast<WebContentsImpl*>(web_contents())->ShowCreatedWidget(route_id,
367 screen_pos); 367 screen_pos);
368 } 368 }
369 369
370 void BrowserPluginGuest::SetCursor(const WebCursor& cursor) { 370 void BrowserPluginGuest::SetCursor(const WebCursor& cursor) {
371 cursor_ = cursor; 371 cursor_ = cursor;
372 } 372 }
373 373
374 void BrowserPluginGuest::DidStartProvisionalLoadForFrame( 374 void BrowserPluginGuest::DidStartProvisionalLoadForFrame(
375 int64 frame_id, 375 int64 frame_id,
376 int64 parent_frame_id,
376 bool is_main_frame, 377 bool is_main_frame,
377 const GURL& validated_url, 378 const GURL& validated_url,
378 bool is_error_page, 379 bool is_error_page,
379 RenderViewHost* render_view_host) { 380 RenderViewHost* render_view_host) {
380 // Inform the embedder of the loadStart. 381 // Inform the embedder of the loadStart.
381 SendMessageToEmbedder( 382 SendMessageToEmbedder(
382 new BrowserPluginMsg_LoadStart(instance_id(), 383 new BrowserPluginMsg_LoadStart(instance_id(),
383 validated_url, 384 validated_url,
384 is_main_frame)); 385 is_main_frame));
385 } 386 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 break; 461 break;
461 } 462 }
462 } 463 }
463 464
464 void BrowserPluginGuest::SendMessageToEmbedder(IPC::Message* msg) { 465 void BrowserPluginGuest::SendMessageToEmbedder(IPC::Message* msg) {
465 DCHECK(embedder_render_process_host()); 466 DCHECK(embedder_render_process_host());
466 embedder_render_process_host()->Send(msg); 467 embedder_render_process_host()->Send(msg);
467 } 468 }
468 469
469 } // namespace content 470 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | content/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698