| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "extensions/utility/unpacker.h" | 5 #include "extensions/utility/unpacker.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/files/file_enumerator.h" | 12 #include "base/files/file_enumerator.h" |
| 13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 14 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
| 15 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
| 16 #include "base/json/json_file_value_serializer.h" | 16 #include "base/json/json_file_value_serializer.h" |
| 17 #include "base/numerics/safe_conversions.h" | 17 #include "base/numerics/safe_conversions.h" |
| 18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
| 20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
| 21 #include "base/values.h" | 21 #include "base/values.h" |
| 22 #include "content/public/child/image_decoder_utils.h" | 22 #include "content/public/child/image_decoder_utils.h" |
| 23 #include "content/public/common/common_param_traits.h" |
| 23 #include "extensions/common/constants.h" | 24 #include "extensions/common/constants.h" |
| 24 #include "extensions/common/extension.h" | 25 #include "extensions/common/extension.h" |
| 25 #include "extensions/common/extension_l10n_util.h" | 26 #include "extensions/common/extension_l10n_util.h" |
| 26 #include "extensions/common/extension_utility_messages.h" | 27 #include "extensions/common/extension_utility_messages.h" |
| 27 #include "extensions/common/extensions_client.h" | 28 #include "extensions/common/extensions_client.h" |
| 28 #include "extensions/common/file_util.h" | 29 #include "extensions/common/file_util.h" |
| 29 #include "extensions/common/manifest.h" | 30 #include "extensions/common/manifest.h" |
| 30 #include "extensions/common/manifest_constants.h" | 31 #include "extensions/common/manifest_constants.h" |
| 31 #include "extensions/common/manifest_handlers/default_locale_handler.h" | 32 #include "extensions/common/manifest_handlers/default_locale_handler.h" |
| 32 #include "extensions/strings/grit/extensions_strings.h" | 33 #include "extensions/strings/grit/extensions_strings.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 289 |
| 289 void Unpacker::SetError(const std::string& error) { | 290 void Unpacker::SetError(const std::string& error) { |
| 290 SetUTF16Error(base::UTF8ToUTF16(error)); | 291 SetUTF16Error(base::UTF8ToUTF16(error)); |
| 291 } | 292 } |
| 292 | 293 |
| 293 void Unpacker::SetUTF16Error(const base::string16& error) { | 294 void Unpacker::SetUTF16Error(const base::string16& error) { |
| 294 error_message_ = error; | 295 error_message_ = error; |
| 295 } | 296 } |
| 296 | 297 |
| 297 } // namespace extensions | 298 } // namespace extensions |
| OLD | NEW |