OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/common/security_filter_peer.h" | 5 #include "chrome/common/security_filter_peer.h" |
6 | 6 |
7 #include "app/gfx/codec/png_codec.h" | 7 #include "app/gfx/codec/png_codec.h" |
8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 void SecurityFilterPeer::OnReceivedData(const char* data, int len) { | 120 void SecurityFilterPeer::OnReceivedData(const char* data, int len) { |
121 NOTREACHED(); | 121 NOTREACHED(); |
122 } | 122 } |
123 | 123 |
124 void SecurityFilterPeer::OnCompletedRequest(const URLRequestStatus& status, | 124 void SecurityFilterPeer::OnCompletedRequest(const URLRequestStatus& status, |
125 const std::string& security_info) { | 125 const std::string& security_info) { |
126 NOTREACHED(); | 126 NOTREACHED(); |
127 } | 127 } |
128 | 128 |
129 std::string SecurityFilterPeer::GetURLForDebugging() { | 129 GURL SecurityFilterPeer::GetURLForDebugging() const { |
130 return original_peer_->GetURLForDebugging(); | 130 return original_peer_->GetURLForDebugging(); |
131 } | 131 } |
132 | 132 |
133 // static | 133 // static |
134 void ProcessResponseInfo( | 134 void ProcessResponseInfo( |
135 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info_in, | 135 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info_in, |
136 webkit_glue::ResourceLoaderBridge::ResponseInfo* info_out, | 136 webkit_glue::ResourceLoaderBridge::ResponseInfo* info_out, |
137 const std::string& mime_type) { | 137 const std::string& mime_type) { |
138 DCHECK(info_out); | 138 DCHECK(info_out); |
139 *info_out = info_in; | 139 *info_out = info_in; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 return false; | 315 return false; |
316 } | 316 } |
317 | 317 |
318 // Copy the vector content to data_ which is a string. | 318 // Copy the vector content to data_ which is a string. |
319 data_.clear(); | 319 data_.clear(); |
320 data_.resize(output.size()); | 320 data_.resize(output.size()); |
321 std::copy(output.begin(), output.end(), data_.begin()); | 321 std::copy(output.begin(), output.end(), data_.begin()); |
322 | 322 |
323 return true; | 323 return true; |
324 } | 324 } |
OLD | NEW |