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