OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/gfx/png_encoder.h" | 9 #include "base/gfx/png_encoder.h" |
10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
13 #include "grit/renderer_resources.h" | 13 #include "grit/renderer_resources.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 #include "net/http/http_response_headers.h" | 15 #include "net/http/http_response_headers.h" |
16 #include "skia/include/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
17 #include "skia/include/SkCanvas.h" | 17 #include "third_party/skia/include/core/SkCanvas.h" |
18 #include "webkit/glue/webkit_glue.h" | 18 #include "webkit/glue/webkit_glue.h" |
19 #include "SkDevice.h" | 19 #include "SkDevice.h" |
20 | 20 |
21 | 21 |
22 SecurityFilterPeer::SecurityFilterPeer( | 22 SecurityFilterPeer::SecurityFilterPeer( |
23 webkit_glue::ResourceLoaderBridge* resource_loader_bridge, | 23 webkit_glue::ResourceLoaderBridge* resource_loader_bridge, |
24 webkit_glue::ResourceLoaderBridge::Peer* peer) | 24 webkit_glue::ResourceLoaderBridge::Peer* peer) |
25 : original_peer_(peer), | 25 : original_peer_(peer), |
26 resource_loader_bridge_(resource_loader_bridge) { | 26 resource_loader_bridge_(resource_loader_bridge) { |
27 } | 27 } |
(...skipping 284 matching lines...) Loading... |
312 return false; | 312 return false; |
313 } | 313 } |
314 | 314 |
315 // Copy the vector content to data_ which is a string. | 315 // Copy the vector content to data_ which is a string. |
316 data_.clear(); | 316 data_.clear(); |
317 data_.resize(output.size()); | 317 data_.resize(output.size()); |
318 std::copy(output.begin(), output.end(), data_.begin()); | 318 std::copy(output.begin(), output.end(), data_.begin()); |
319 | 319 |
320 return true; | 320 return true; |
321 } | 321 } |
OLD | NEW |