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

Side by Side Diff: chrome/renderer/security_filter_peer.cc

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: darin comments Created 6 years, 4 months 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 "chrome/renderer/security_filter_peer.h" 5 #include "chrome/renderer/security_filter_peer.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "chrome/grit/generated_resources.h" 9 #include "chrome/grit/generated_resources.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 "%s</body></html>", 62 "%s</body></html>",
63 l10n_util::GetStringUTF8(IDS_UNSAFE_FRAME_MESSAGE).c_str()); 63 l10n_util::GetStringUTF8(IDS_UNSAFE_FRAME_MESSAGE).c_str());
64 return new ReplaceContentPeer(peer, "text/html", html); 64 return new ReplaceContentPeer(peer, "text/html", html);
65 } 65 }
66 66
67 void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) { 67 void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) {
68 original_peer_->OnUploadProgress(position, size); 68 original_peer_->OnUploadProgress(position, size);
69 } 69 }
70 70
71 bool SecurityFilterPeer::OnReceivedRedirect( 71 bool SecurityFilterPeer::OnReceivedRedirect(
72 const GURL& new_url, 72 const net::RedirectInfo& redirect_info,
73 const GURL& new_first_party_for_cookies,
74 const content::ResourceResponseInfo& info) { 73 const content::ResourceResponseInfo& info) {
75 NOTREACHED(); 74 NOTREACHED();
76 return false; 75 return false;
77 } 76 }
78 77
79 void SecurityFilterPeer::OnReceivedResponse( 78 void SecurityFilterPeer::OnReceivedResponse(
80 const content::ResourceResponseInfo& info) { 79 const content::ResourceResponseInfo& info) {
81 NOTREACHED(); 80 NOTREACHED();
82 } 81 }
83 82
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 original_peer_->OnCompletedRequest(net::OK, 218 original_peer_->OnCompletedRequest(net::OK,
220 false, 219 false,
221 stale_copy_in_cache, 220 stale_copy_in_cache,
222 security_info, 221 security_info,
223 completion_time, 222 completion_time,
224 total_transfer_size); 223 total_transfer_size);
225 224
226 // The request processing is complete, we must delete ourselves. 225 // The request processing is complete, we must delete ourselves.
227 delete this; 226 delete this;
228 } 227 }
OLDNEW
« no previous file with comments | « chrome/renderer/security_filter_peer.h ('k') | components/navigation_interception/intercept_navigation_resource_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698