| 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 "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 "grit/generated_resources.h" | 9 #include "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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |