| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/stringprintf.h" |
| 7 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
| 8 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
| 9 #include "net/http/http_response_headers.h" | 10 #include "net/http/http_response_headers.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 11 | 12 |
| 12 SecurityFilterPeer::SecurityFilterPeer( | 13 SecurityFilterPeer::SecurityFilterPeer( |
| 13 webkit_glue::ResourceLoaderBridge* resource_loader_bridge, | 14 webkit_glue::ResourceLoaderBridge* resource_loader_bridge, |
| 14 webkit_glue::ResourceLoaderBridge::Peer* peer) | 15 webkit_glue::ResourceLoaderBridge::Peer* peer) |
| 15 : original_peer_(peer), | 16 : original_peer_(peer), |
| 16 resource_loader_bridge_(resource_loader_bridge) { | 17 resource_loader_bridge_(resource_loader_bridge) { |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 original_peer_->OnReceivedData(data_.data(), | 210 original_peer_->OnReceivedData(data_.data(), |
| 210 static_cast<int>(data_.size()), | 211 static_cast<int>(data_.size()), |
| 211 -1); | 212 -1); |
| 212 original_peer_->OnCompletedRequest(net::URLRequestStatus(), | 213 original_peer_->OnCompletedRequest(net::URLRequestStatus(), |
| 213 security_info, | 214 security_info, |
| 214 completion_time); | 215 completion_time); |
| 215 | 216 |
| 216 // The request processing is complete, we must delete ourselves. | 217 // The request processing is complete, we must delete ourselves. |
| 217 delete this; | 218 delete this; |
| 218 } | 219 } |
| OLD | NEW |