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

Side by Side Diff: content/browser/renderer_host/transfer_navigation_resource_throttle.cc

Issue 11193051: To fix the cross-site post submission bug. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Comments Created 8 years, 1 month 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) 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/renderer_host/transfer_navigation_resource_throttle.h" 5 #include "content/browser/renderer_host/transfer_navigation_resource_throttle.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "content/browser/renderer_host/render_view_host_delegate.h" 8 #include "content/browser/renderer_host/render_view_host_delegate.h"
9 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" 9 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h"
10 #include "content/public/browser/content_browser_client.h" 10 #include "content/public/browser/content_browser_client.h"
(...skipping 17 matching lines...) Expand all
28 RenderViewHost* rvh = 28 RenderViewHost* rvh =
29 RenderViewHost::FromID(render_process_id, render_view_id); 29 RenderViewHost::FromID(render_process_id, render_view_id);
30 if (!rvh) 30 if (!rvh)
31 return; 31 return;
32 32
33 RenderViewHostDelegate* delegate = rvh->GetDelegate(); 33 RenderViewHostDelegate* delegate = rvh->GetDelegate();
34 if (!delegate) 34 if (!delegate)
35 return; 35 return;
36 36
37 delegate->RequestTransferURL( 37 delegate->RequestTransferURL(
38 new_url, referrer, window_open_disposition, 38 new_url, referrer, window_open_disposition, frame_id, global_request_id,
39 frame_id, global_request_id, false); 39 false, std::string(""), NULL);
Charlie Reis 2012/11/20 05:46:03 nit: No quotes on empty string.
irobert 2012/11/22 01:37:00 Done.
40 } 40 }
41 41
42 } // namespace 42 } // namespace
43 43
44 TransferNavigationResourceThrottle::TransferNavigationResourceThrottle( 44 TransferNavigationResourceThrottle::TransferNavigationResourceThrottle(
45 net::URLRequest* request) 45 net::URLRequest* request)
46 : request_(request) { 46 : request_(request) {
47 } 47 }
48 48
49 TransferNavigationResourceThrottle::~TransferNavigationResourceThrottle() { 49 TransferNavigationResourceThrottle::~TransferNavigationResourceThrottle() {
(...skipping 29 matching lines...) Expand all
79 CURRENT_TAB, 79 CURRENT_TAB,
80 info->GetFrameID(), 80 info->GetFrameID(),
81 global_id)); 81 global_id));
82 82
83 *defer = true; 83 *defer = true;
84 } 84 }
85 } 85 }
86 } 86 }
87 87
88 } // namespace content 88 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698