| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 return new ReplaceContentPeer(NULL, peer, "text/html", html); | 100 return new ReplaceContentPeer(NULL, peer, "text/html", html); |
| 101 } | 101 } |
| 102 | 102 |
| 103 void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) { | 103 void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) { |
| 104 original_peer_->OnUploadProgress(position, size); | 104 original_peer_->OnUploadProgress(position, size); |
| 105 } | 105 } |
| 106 | 106 |
| 107 bool SecurityFilterPeer::OnReceivedRedirect( | 107 bool SecurityFilterPeer::OnReceivedRedirect( |
| 108 const GURL& new_url, | 108 const GURL& new_url, |
| 109 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, | 109 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, |
| 110 bool* has_new_first_party_for_cookies, |
| 110 GURL* new_first_party_for_cookies) { | 111 GURL* new_first_party_for_cookies) { |
| 111 NOTREACHED(); | 112 NOTREACHED(); |
| 112 return false; | 113 return false; |
| 113 } | 114 } |
| 114 | 115 |
| 115 void SecurityFilterPeer::OnReceivedResponse( | 116 void SecurityFilterPeer::OnReceivedResponse( |
| 116 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, | 117 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, |
| 117 bool content_filtered) { | 118 bool content_filtered) { |
| 118 NOTREACHED(); | 119 NOTREACHED(); |
| 119 } | 120 } |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 return false; | 317 return false; |
| 317 } | 318 } |
| 318 | 319 |
| 319 // Copy the vector content to data_ which is a string. | 320 // Copy the vector content to data_ which is a string. |
| 320 data_.clear(); | 321 data_.clear(); |
| 321 data_.resize(output.size()); | 322 data_.resize(output.size()); |
| 322 std::copy(output.begin(), output.end(), data_.begin()); | 323 std::copy(output.begin(), output.end(), data_.begin()); |
| 323 | 324 |
| 324 return true; | 325 return true; |
| 325 } | 326 } |
| OLD | NEW |