Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: extensions/utility/unpacker.cc

Issue 2697463002: Convert utility process extension Unpacker IPC to mojo (Closed)
Patch Set: Use MakeUnique when creating the utility mojo client. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
11 #include <tuple> 11 #include <tuple>
12 #include <utility> 12 #include <utility>
13 13
14 #include "base/files/file_enumerator.h" 14 #include "base/files/file_enumerator.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/files/scoped_temp_dir.h" 16 #include "base/files/scoped_temp_dir.h"
17 #include "base/i18n/rtl.h" 17 #include "base/i18n/rtl.h"
18 #include "base/json/json_file_value_serializer.h" 18 #include "base/json/json_file_value_serializer.h"
19 #include "base/numerics/safe_conversions.h" 19 #include "base/numerics/safe_conversions.h"
20 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
21 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
22 #include "base/threading/thread.h" 22 #include "base/threading/thread.h"
23 #include "base/values.h" 23 #include "base/values.h"
24 #include "content/public/child/image_decoder_utils.h" 24 #include "content/public/child/image_decoder_utils.h"
25 #include "extensions/common/constants.h" 25 #include "extensions/common/constants.h"
26 #include "extensions/common/extension.h" 26 #include "extensions/common/extension.h"
27 #include "extensions/common/extension_l10n_util.h" 27 #include "extensions/common/extension_l10n_util.h"
28 #include "extensions/common/extension_utility_messages.h" 28 #include "extensions/common/extension_utility_messages.h"
29 #include "extensions/common/extension_utility_types.h"
29 #include "extensions/common/extensions_client.h" 30 #include "extensions/common/extensions_client.h"
30 #include "extensions/common/file_util.h" 31 #include "extensions/common/file_util.h"
31 #include "extensions/common/manifest.h" 32 #include "extensions/common/manifest.h"
32 #include "extensions/common/manifest_constants.h" 33 #include "extensions/common/manifest_constants.h"
33 #include "extensions/common/manifest_handlers/default_locale_handler.h" 34 #include "extensions/common/manifest_handlers/default_locale_handler.h"
34 #include "extensions/strings/grit/extensions_strings.h" 35 #include "extensions/strings/grit/extensions_strings.h"
35 #include "ipc/ipc_message_utils.h" 36 #include "ipc/ipc_message_utils.h"
36 #include "net/base/file_stream.h" 37 #include "net/base/file_stream.h"
37 #include "third_party/skia/include/core/SkBitmap.h" 38 #include "third_party/skia/include/core/SkBitmap.h"
38 #include "ui/base/l10n/l10n_util.h" 39 #include "ui/base/l10n/l10n_util.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 326
326 void Unpacker::SetError(const std::string& error) { 327 void Unpacker::SetError(const std::string& error) {
327 SetUTF16Error(base::UTF8ToUTF16(error)); 328 SetUTF16Error(base::UTF8ToUTF16(error));
328 } 329 }
329 330
330 void Unpacker::SetUTF16Error(const base::string16& error) { 331 void Unpacker::SetUTF16Error(const base::string16& error) {
331 error_message_ = error; 332 error_message_ = error;
332 } 333 }
333 334
334 } // namespace extensions 335 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698