| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 l10n_util::GetStringUTF8(IDS_UNSAFE_FRAME_MESSAGE).c_str()); | 99 l10n_util::GetStringUTF8(IDS_UNSAFE_FRAME_MESSAGE).c_str()); |
| 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 GURL* new_first_party_for_cookies) { |
| 110 NOTREACHED(); | 111 NOTREACHED(); |
| 111 return false; | 112 return false; |
| 112 } | 113 } |
| 113 | 114 |
| 114 void SecurityFilterPeer::OnReceivedResponse( | 115 void SecurityFilterPeer::OnReceivedResponse( |
| 115 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, | 116 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, |
| 116 bool content_filtered) { | 117 bool content_filtered) { |
| 117 NOTREACHED(); | 118 NOTREACHED(); |
| 118 } | 119 } |
| 119 | 120 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 return false; | 316 return false; |
| 316 } | 317 } |
| 317 | 318 |
| 318 // Copy the vector content to data_ which is a string. | 319 // Copy the vector content to data_ which is a string. |
| 319 data_.clear(); | 320 data_.clear(); |
| 320 data_.resize(output.size()); | 321 data_.resize(output.size()); |
| 321 std::copy(output.begin(), output.end(), data_.begin()); | 322 std::copy(output.begin(), output.end(), data_.begin()); |
| 322 | 323 |
| 323 return true; | 324 return true; |
| 324 } | 325 } |
| OLD | NEW |