| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 | 1249 |
| 1250 // Make sure redirect tracking state is clear for the new load. | 1250 // Make sure redirect tracking state is clear for the new load. |
| 1251 completed_client_redirect_src_ = GURL(); | 1251 completed_client_redirect_src_ = GURL(); |
| 1252 } | 1252 } |
| 1253 | 1253 |
| 1254 Send(new ViewHostMsg_DidStartProvisionalLoadForFrame( | 1254 Send(new ViewHostMsg_DidStartProvisionalLoadForFrame( |
| 1255 routing_id_, webview->GetMainFrame() == frame, | 1255 routing_id_, webview->GetMainFrame() == frame, |
| 1256 frame->GetProvisionalDataSource()->GetRequest().GetURL())); | 1256 frame->GetProvisionalDataSource()->GetRequest().GetURL())); |
| 1257 } | 1257 } |
| 1258 | 1258 |
| 1259 bool RenderView::DidLoadResourceFromMemoryCache(WebView* webview, | 1259 bool RenderView::DidLoadResourceFromMemoryCache( |
| 1260 const WebRequest& request, | 1260 WebView* webview, |
| 1261 const WebResponse& response, | 1261 const WebRequest& request, |
| 1262 WebFrame* frame) { | 1262 const WebResponse& response, |
| 1263 WebFrame* frame, |
| 1264 const std::string& frame_origin, |
| 1265 const std::string& main_frame_origin) { |
| 1263 // Let the browser know we loaded a resource from the memory cache. This | 1266 // Let the browser know we loaded a resource from the memory cache. This |
| 1264 // message is needed to display the correct SSL indicators. | 1267 // message is needed to display the correct SSL indicators. |
| 1265 Send(new ViewHostMsg_DidLoadResourceFromMemoryCache(routing_id_, | 1268 Send(new ViewHostMsg_DidLoadResourceFromMemoryCache(routing_id_, |
| 1266 request.GetURL(), response.GetSecurityInfo())); | 1269 request.GetURL(), frame_origin, main_frame_origin, |
| 1270 response.GetSecurityInfo())); |
| 1267 | 1271 |
| 1268 return false; | 1272 return false; |
| 1269 } | 1273 } |
| 1270 | 1274 |
| 1271 void RenderView::DidReceiveProvisionalLoadServerRedirect(WebView* webview, | 1275 void RenderView::DidReceiveProvisionalLoadServerRedirect(WebView* webview, |
| 1272 WebFrame* frame) { | 1276 WebFrame* frame) { |
| 1273 if (frame == webview->GetMainFrame()) { | 1277 if (frame == webview->GetMainFrame()) { |
| 1274 // Received a redirect on the main frame. | 1278 // Received a redirect on the main frame. |
| 1275 WebDataSource* data_source = | 1279 WebDataSource* data_source = |
| 1276 webview->GetMainFrame()->GetProvisionalDataSource(); | 1280 webview->GetMainFrame()->GetProvisionalDataSource(); |
| (...skipping 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2954 DCHECK(audio_renderers_.Lookup(stream_id) != NULL); | 2958 DCHECK(audio_renderers_.Lookup(stream_id) != NULL); |
| 2955 Send(new ViewHostMsg_SetAudioVolume(routing_id_, stream_id, left, right)); | 2959 Send(new ViewHostMsg_SetAudioVolume(routing_id_, stream_id, left, right)); |
| 2956 } | 2960 } |
| 2957 | 2961 |
| 2958 void RenderView::OnResize(const gfx::Size& new_size, | 2962 void RenderView::OnResize(const gfx::Size& new_size, |
| 2959 const gfx::Rect& resizer_rect) { | 2963 const gfx::Rect& resizer_rect) { |
| 2960 if (webview()) | 2964 if (webview()) |
| 2961 webview()->HideAutofillPopup(); | 2965 webview()->HideAutofillPopup(); |
| 2962 RenderWidget::OnResize(new_size, resizer_rect); | 2966 RenderWidget::OnResize(new_size, resizer_rect); |
| 2963 } | 2967 } |
| OLD | NEW |