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

Side by Side Diff: chrome/common/extensions/extension_unpacker.cc

Issue 155905: Separates ipc code from common (http://crbug.com/16829) (Closed)
Patch Set: Fixes reference to 'common_message_traits' it's actually 'common_param_traits' Created 11 years, 5 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
« no previous file with comments | « chrome/common/devtools_messages_internal.h ('k') | chrome/common/file_descriptor_set_posix.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/extensions/extension_unpacker.h" 5 #include "chrome/common/extensions/extension_unpacker.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/scoped_handle.h" 8 #include "base/scoped_handle.h"
9 #include "base/scoped_temp_dir.h" 9 #include "base/scoped_temp_dir.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/thread.h" 11 #include "base/thread.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "net/base/file_stream.h" 13 #include "net/base/file_stream.h"
14 #include "chrome/common/common_param_traits.h"
14 #include "chrome/common/extensions/extension.h" 15 #include "chrome/common/extensions/extension.h"
15 #include "chrome/common/extensions/extension_constants.h" 16 #include "chrome/common/extensions/extension_constants.h"
16 #include "chrome/common/ipc_message_utils.h"
17 #include "chrome/common/json_value_serializer.h" 17 #include "chrome/common/json_value_serializer.h"
18 #include "chrome/common/notification_service.h" 18 #include "chrome/common/notification_service.h"
19 #include "chrome/common/url_constants.h" 19 #include "chrome/common/url_constants.h"
20 #include "chrome/common/zip.h" 20 #include "chrome/common/zip.h"
21 #include "ipc/ipc_message_utils.h"
21 #include "third_party/skia/include/core/SkBitmap.h" 22 #include "third_party/skia/include/core/SkBitmap.h"
22 #include "webkit/glue/image_decoder.h" 23 #include "webkit/glue/image_decoder.h"
23 24
24 namespace { 25 namespace {
25 // The name of a temporary directory to install an extension into for 26 // The name of a temporary directory to install an extension into for
26 // validation before finalizing install. 27 // validation before finalizing install.
27 const char kTempExtensionName[] = "TEMP_INSTALL"; 28 const char kTempExtensionName[] = "TEMP_INSTALL";
28 29
29 // The file to write our decoded images to, relative to the extension_path. 30 // The file to write our decoded images to, relative to the extension_path.
30 const char kDecodedImagesFilename[] = "DECODED_IMAGES"; 31 const char kDecodedImagesFilename[] = "DECODED_IMAGES";
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 return false; 183 return false;
183 } 184 }
184 185
185 decoded_images_.push_back(MakeTuple(image_bitmap, path)); 186 decoded_images_.push_back(MakeTuple(image_bitmap, path));
186 return true; 187 return true;
187 } 188 }
188 189
189 void ExtensionUnpacker::SetError(const std::string &error) { 190 void ExtensionUnpacker::SetError(const std::string &error) {
190 error_message_ = error; 191 error_message_ = error;
191 } 192 }
OLDNEW
« no previous file with comments | « chrome/common/devtools_messages_internal.h ('k') | chrome/common/file_descriptor_set_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698