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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 4997001: C++ readability change for jochen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/extensions
Patch Set: more long long to int64 Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 } 1179 }
1180 1180
1181 void RenderViewHost::OnMsgDidRunInsecureContent( 1181 void RenderViewHost::OnMsgDidRunInsecureContent(
1182 const std::string& security_origin) { 1182 const std::string& security_origin) {
1183 RenderViewHostDelegate::Resource* resource_delegate = 1183 RenderViewHostDelegate::Resource* resource_delegate =
1184 delegate_->GetResourceDelegate(); 1184 delegate_->GetResourceDelegate();
1185 if (resource_delegate) 1185 if (resource_delegate)
1186 resource_delegate->DidRunInsecureContent(security_origin); 1186 resource_delegate->DidRunInsecureContent(security_origin);
1187 } 1187 }
1188 1188
1189 void RenderViewHost::OnMsgDidStartProvisionalLoadForFrame(long long frame_id, 1189 void RenderViewHost::OnMsgDidStartProvisionalLoadForFrame(int64 frame_id,
1190 bool is_main_frame, 1190 bool is_main_frame,
1191 const GURL& url) { 1191 const GURL& url) {
1192 GURL validated_url(url); 1192 GURL validated_url(url);
1193 FilterURL(ChildProcessSecurityPolicy::GetInstance(), 1193 FilterURL(ChildProcessSecurityPolicy::GetInstance(),
1194 process()->id(), &validated_url); 1194 process()->id(), &validated_url);
1195 1195
1196 RenderViewHostDelegate::Resource* resource_delegate = 1196 RenderViewHostDelegate::Resource* resource_delegate =
1197 delegate_->GetResourceDelegate(); 1197 delegate_->GetResourceDelegate();
1198 if (resource_delegate) { 1198 if (resource_delegate) {
1199 resource_delegate->DidStartProvisionalLoadForFrame( 1199 resource_delegate->DidStartProvisionalLoadForFrame(
1200 this, frame_id, is_main_frame, validated_url); 1200 this, frame_id, is_main_frame, validated_url);
1201 } 1201 }
1202 } 1202 }
1203 1203
1204 void RenderViewHost::OnMsgDidFailProvisionalLoadWithError( 1204 void RenderViewHost::OnMsgDidFailProvisionalLoadWithError(
1205 long long frame_id, 1205 int64 frame_id,
1206 bool is_main_frame, 1206 bool is_main_frame,
1207 int error_code, 1207 int error_code,
1208 const GURL& url, 1208 const GURL& url,
1209 bool showing_repost_interstitial) { 1209 bool showing_repost_interstitial) {
1210 VLOG(1) << "Failed Provisional Load: " << url.possibly_invalid_spec() 1210 VLOG(1) << "Failed Provisional Load: " << url.possibly_invalid_spec()
1211 << ", error_code: " << error_code 1211 << ", error_code: " << error_code
1212 << " is_main_frame: " << is_main_frame 1212 << " is_main_frame: " << is_main_frame
1213 << " showing_repost_interstitial: " << showing_repost_interstitial 1213 << " showing_repost_interstitial: " << showing_repost_interstitial
1214 << " frame_id: " << frame_id; 1214 << " frame_id: " << frame_id;
1215 GURL validated_url(url); 1215 GURL validated_url(url);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 params.user_gesture = false; 1357 params.user_gesture = false;
1358 delegate_->ProcessDOMUIMessage(params); 1358 delegate_->ProcessDOMUIMessage(params);
1359 } 1359 }
1360 1360
1361 void RenderViewHost::OnMsgForwardMessageToExternalHost( 1361 void RenderViewHost::OnMsgForwardMessageToExternalHost(
1362 const std::string& message, const std::string& origin, 1362 const std::string& message, const std::string& origin,
1363 const std::string& target) { 1363 const std::string& target) {
1364 delegate_->ProcessExternalHostMessage(message, origin, target); 1364 delegate_->ProcessExternalHostMessage(message, origin, target);
1365 } 1365 }
1366 1366
1367 void RenderViewHost::OnMsgDocumentLoadedInFrame(long long frame_id) { 1367 void RenderViewHost::OnMsgDocumentLoadedInFrame(int64 frame_id) {
1368 RenderViewHostDelegate::Resource* resource_delegate = 1368 RenderViewHostDelegate::Resource* resource_delegate =
1369 delegate_->GetResourceDelegate(); 1369 delegate_->GetResourceDelegate();
1370 if (resource_delegate) 1370 if (resource_delegate)
1371 resource_delegate->DocumentLoadedInFrame(frame_id); 1371 resource_delegate->DocumentLoadedInFrame(frame_id);
1372 } 1372 }
1373 1373
1374 void RenderViewHost::OnMsgDidFinishLoad(long long frame_id) { 1374 void RenderViewHost::OnMsgDidFinishLoad(int64 frame_id) {
1375 RenderViewHostDelegate::Resource* resource_delegate = 1375 RenderViewHostDelegate::Resource* resource_delegate =
1376 delegate_->GetResourceDelegate(); 1376 delegate_->GetResourceDelegate();
1377 if (resource_delegate) 1377 if (resource_delegate)
1378 resource_delegate->DidFinishLoad(frame_id); 1378 resource_delegate->DidFinishLoad(frame_id);
1379 } 1379 }
1380 1380
1381 void RenderViewHost::DisassociateFromPopupCount() { 1381 void RenderViewHost::DisassociateFromPopupCount() {
1382 Send(new ViewMsg_DisassociateFromPopupCount(routing_id())); 1382 Send(new ViewMsg_DisassociateFromPopupCount(routing_id()));
1383 } 1383 }
1384 1384
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
2244 TabContents* print_preview_tab = GetOrCreatePrintPreviewTab(); 2244 TabContents* print_preview_tab = GetOrCreatePrintPreviewTab();
2245 DCHECK(print_preview_tab); 2245 DCHECK(print_preview_tab);
2246 2246
2247 // TODO(kmadhusu): Function definition needs to be changed. 2247 // TODO(kmadhusu): Function definition needs to be changed.
2248 // fd_in_browser should be the file descriptor of the metafile. 2248 // fd_in_browser should be the file descriptor of the metafile.
2249 2249
2250 // Send the printingDone msg for now. 2250 // Send the printingDone msg for now.
2251 Send(new ViewMsg_PrintingDone(routing_id(), -1, true)); 2251 Send(new ViewMsg_PrintingDone(routing_id(), -1, true));
2252 } 2252 }
2253 #endif 2253 #endif
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698