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

Side by Side Diff: chrome/browser/extensions/sandboxed_extension_unpacker.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/extensions/sandboxed_extension_unpacker.h" 5 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/crypto/signature_verifier.h" 10 #include "base/crypto/signature_verifier.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/file_util_proxy.h" 12 #include "base/file_util_proxy.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/scoped_handle.h" 16 #include "base/scoped_handle.h"
17 #include "base/task.h" 17 #include "base/task.h"
18 #include "base/utf_string_conversions.h" // TODO(viettrungluu): delete me. 18 #include "base/utf_string_conversions.h" // TODO(viettrungluu): delete me.
19 #include "chrome/browser/browser_thread.h" 19 #include "chrome/browser/browser_thread.h"
20 #include "chrome/browser/extensions/extension_service.h" 20 #include "chrome/browser/extensions/extension_service.h"
21 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 21 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
22 #include "chrome/common/chrome_paths.h" 22 #include "chrome/common/chrome_paths.h"
23 #include "chrome/common/chrome_switches.h" 23 #include "chrome/common/chrome_switches.h"
24 #include "chrome/common/extensions/extension.h" 24 #include "chrome/common/extensions/extension.h"
25 #include "chrome/common/extensions/extension_constants.h" 25 #include "chrome/common/extensions/extension_constants.h"
26 #include "chrome/common/extensions/extension_file_util.h" 26 #include "chrome/common/extensions/extension_file_util.h"
27 #include "chrome/common/extensions/extension_l10n_util.h" 27 #include "chrome/common/extensions/extension_l10n_util.h"
28 #include "chrome/common/extensions/extension_unpacker.h" 28 #include "chrome/common/extensions/extension_unpacker.h"
29 #include "chrome/common/json_value_serializer.h" 29 #include "chrome/common/json_value_serializer.h"
30 #include "gfx/codec/png_codec.h"
31 #include "grit/generated_resources.h" 30 #include "grit/generated_resources.h"
32 #include "third_party/skia/include/core/SkBitmap.h" 31 #include "third_party/skia/include/core/SkBitmap.h"
33 #include "ui/base/l10n/l10n_util.h" 32 #include "ui/base/l10n/l10n_util.h"
33 #include "ui/gfx/codec/png_codec.h"
34 34
35 const char SandboxedExtensionUnpacker::kExtensionHeaderMagic[] = "Cr24"; 35 const char SandboxedExtensionUnpacker::kExtensionHeaderMagic[] = "Cr24";
36 36
37 SandboxedExtensionUnpacker::SandboxedExtensionUnpacker( 37 SandboxedExtensionUnpacker::SandboxedExtensionUnpacker(
38 const FilePath& crx_path, 38 const FilePath& crx_path,
39 ResourceDispatcherHost* rdh, 39 ResourceDispatcherHost* rdh,
40 SandboxedExtensionUnpackerClient* client) 40 SandboxedExtensionUnpackerClient* client)
41 : crx_path_(crx_path), 41 : crx_path_(crx_path),
42 thread_identifier_(BrowserThread::ID_COUNT), 42 thread_identifier_(BrowserThread::ID_COUNT),
43 rdh_(rdh), client_(client), got_response_(false) { 43 rdh_(rdh), client_(client), got_response_(false) {
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 ERROR_SAVING_CATALOG, 578 ERROR_SAVING_CATALOG,
579 l10n_util::GetStringFUTF8( 579 l10n_util::GetStringFUTF8(
580 IDS_EXTENSION_PACKAGE_INSTALL_ERROR, 580 IDS_EXTENSION_PACKAGE_INSTALL_ERROR,
581 ASCIIToUTF16("ERROR_SAVING_CATALOG"))); 581 ASCIIToUTF16("ERROR_SAVING_CATALOG")));
582 return false; 582 return false;
583 } 583 }
584 } 584 }
585 585
586 return true; 586 return true;
587 } 587 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/image_loading_tracker_unittest.cc ('k') | chrome/browser/fav_icon_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698