| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 l10n_util::GetStringUTF8(IDS_UNSAFE_FRAME_MESSAGE).c_str()); | 66 l10n_util::GetStringUTF8(IDS_UNSAFE_FRAME_MESSAGE).c_str()); |
| 67 return new ReplaceContentPeer(NULL, peer, "text/html", html); | 67 return new ReplaceContentPeer(NULL, peer, "text/html", html); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) { | 70 void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) { |
| 71 original_peer_->OnUploadProgress(position, size); | 71 original_peer_->OnUploadProgress(position, size); |
| 72 } | 72 } |
| 73 | 73 |
| 74 bool SecurityFilterPeer::OnReceivedRedirect( | 74 bool SecurityFilterPeer::OnReceivedRedirect( |
| 75 const GURL& new_url, | 75 const GURL& new_url, |
| 76 const webkit_glue::ResourceResponseInfo& info, | 76 const GURL& new_first_party_for_cookies, |
| 77 bool* has_new_first_party_for_cookies, | 77 const webkit_glue::ResourceResponseInfo& info) { |
| 78 GURL* new_first_party_for_cookies) { | |
| 79 NOTREACHED(); | 78 NOTREACHED(); |
| 80 return false; | 79 return false; |
| 81 } | 80 } |
| 82 | 81 |
| 83 void SecurityFilterPeer::OnReceivedResponse( | 82 void SecurityFilterPeer::OnReceivedResponse( |
| 84 const webkit_glue::ResourceResponseInfo& info) { | 83 const webkit_glue::ResourceResponseInfo& info) { |
| 85 NOTREACHED(); | 84 NOTREACHED(); |
| 86 } | 85 } |
| 87 | 86 |
| 88 void SecurityFilterPeer::OnReceivedData(const char* data, | 87 void SecurityFilterPeer::OnReceivedData(const char* data, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 original_peer_->OnCompletedRequest(net::OK, | 230 original_peer_->OnCompletedRequest(net::OK, |
| 232 false, | 231 false, |
| 233 stale_copy_in_cache, | 232 stale_copy_in_cache, |
| 234 security_info, | 233 security_info, |
| 235 completion_time, | 234 completion_time, |
| 236 total_transfer_size); | 235 total_transfer_size); |
| 237 | 236 |
| 238 // The request processing is complete, we must delete ourselves. | 237 // The request processing is complete, we must delete ourselves. |
| 239 delete this; | 238 delete this; |
| 240 } | 239 } |
| OLD | NEW |