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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 static_cast<WebContentsImpl*>(web_contents())->ShowCreatedWidget(route_id, | 331 static_cast<WebContentsImpl*>(web_contents())->ShowCreatedWidget(route_id, |
332 screen_pos); | 332 screen_pos); |
333 } | 333 } |
334 | 334 |
335 void BrowserPluginGuest::SetCursor(const WebCursor& cursor) { | 335 void BrowserPluginGuest::SetCursor(const WebCursor& cursor) { |
336 cursor_ = cursor; | 336 cursor_ = cursor; |
337 } | 337 } |
338 | 338 |
339 void BrowserPluginGuest::DidStartProvisionalLoadForFrame( | 339 void BrowserPluginGuest::DidStartProvisionalLoadForFrame( |
340 int64 frame_id, | 340 int64 frame_id, |
| 341 int64 parent_frame_id, |
341 bool is_main_frame, | 342 bool is_main_frame, |
342 const GURL& validated_url, | 343 const GURL& validated_url, |
343 bool is_error_page, | 344 bool is_error_page, |
344 RenderViewHost* render_view_host) { | 345 RenderViewHost* render_view_host) { |
345 // Inform the embedder of the loadStart. | 346 // Inform the embedder of the loadStart. |
346 SendMessageToEmbedder( | 347 SendMessageToEmbedder( |
347 new BrowserPluginMsg_LoadStart(instance_id(), | 348 new BrowserPluginMsg_LoadStart(instance_id(), |
348 validated_url, | 349 validated_url, |
349 is_main_frame)); | 350 is_main_frame)); |
350 } | 351 } |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 break; | 423 break; |
423 } | 424 } |
424 } | 425 } |
425 | 426 |
426 void BrowserPluginGuest::SendMessageToEmbedder(IPC::Message* msg) { | 427 void BrowserPluginGuest::SendMessageToEmbedder(IPC::Message* msg) { |
427 DCHECK(embedder_render_process_host()); | 428 DCHECK(embedder_render_process_host()); |
428 embedder_render_process_host()->Send(msg); | 429 embedder_render_process_host()->Send(msg); |
429 } | 430 } |
430 | 431 |
431 } // namespace content | 432 } // namespace content |
OLD | NEW |