| 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_embedder.h" | 10 #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 return size.width() <= max_auto_size_.width() && | 237 return size.width() <= max_auto_size_.width() && |
| 238 size.height() <= max_auto_size_.height(); | 238 size.height() <= max_auto_size_.height(); |
| 239 } | 239 } |
| 240 | 240 |
| 241 void BrowserPluginGuest::DidStartProvisionalLoadForFrame( | 241 void BrowserPluginGuest::DidStartProvisionalLoadForFrame( |
| 242 int64 frame_id, | 242 int64 frame_id, |
| 243 int64 parent_frame_id, | 243 int64 parent_frame_id, |
| 244 bool is_main_frame, | 244 bool is_main_frame, |
| 245 const GURL& validated_url, | 245 const GURL& validated_url, |
| 246 bool is_error_page, | 246 bool is_error_page, |
| 247 bool is_iframe_srcdoc, |
| 247 RenderViewHost* render_view_host) { | 248 RenderViewHost* render_view_host) { |
| 248 // Inform the embedder of the loadStart. | 249 // Inform the embedder of the loadStart. |
| 249 SendMessageToEmbedder( | 250 SendMessageToEmbedder( |
| 250 new BrowserPluginMsg_LoadStart(embedder_routing_id(), | 251 new BrowserPluginMsg_LoadStart(embedder_routing_id(), |
| 251 instance_id(), | 252 instance_id(), |
| 252 validated_url, | 253 validated_url, |
| 253 is_main_frame)); | 254 is_main_frame)); |
| 254 } | 255 } |
| 255 | 256 |
| 256 void BrowserPluginGuest::DidFailProvisionalLoad( | 257 void BrowserPluginGuest::DidFailProvisionalLoad( |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 relay_params.scroll_delta = params.scroll_delta; | 647 relay_params.scroll_delta = params.scroll_delta; |
| 647 relay_params.scroll_rect = params.scroll_rect; | 648 relay_params.scroll_rect = params.scroll_rect; |
| 648 relay_params.copy_rects = params.copy_rects; | 649 relay_params.copy_rects = params.copy_rects; |
| 649 | 650 |
| 650 SendMessageToEmbedder(new BrowserPluginMsg_UpdateRect(embedder_routing_id(), | 651 SendMessageToEmbedder(new BrowserPluginMsg_UpdateRect(embedder_routing_id(), |
| 651 instance_id(), | 652 instance_id(), |
| 652 relay_params)); | 653 relay_params)); |
| 653 } | 654 } |
| 654 | 655 |
| 655 } // namespace content | 656 } // namespace content |
| OLD | NEW |