OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |