| 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/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 8 #include "base/gfx/png_encoder.h" | 9 #include "base/gfx/png_encoder.h" |
| 9 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| 10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 11 #include "chrome/common/l10n_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 "skia/include/SkBitmap.h" |
| 17 #include "skia/include/SkCanvas.h" | 17 #include "skia/include/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 |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |