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 "chrome/utility/chrome_content_utility_client.h" | 5 #include "chrome/utility/chrome_content_utility_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "chrome/common/chrome_utility_messages.h" | 11 #include "chrome/common/chrome_utility_messages.h" |
12 #include "chrome/common/safe_browsing/zip_analyzer.h" | 12 #include "chrome/common/safe_browsing/zip_analyzer.h" |
13 #include "chrome/utility/chrome_content_utility_ipc_whitelist.h" | 13 #include "chrome/utility/chrome_content_utility_ipc_whitelist.h" |
14 #include "chrome/utility/utility_message_handler.h" | 14 #include "chrome/utility/utility_message_handler.h" |
15 #include "chrome/utility/web_resource_unpacker.h" | 15 #include "chrome/utility/web_resource_unpacker.h" |
16 #include "content/public/child/image_decoder_utils.h" | 16 #include "content/public/child/image_decoder_utils.h" |
17 #include "content/public/common/content_switches.h" | 17 #include "content/public/common/content_switches.h" |
18 #include "content/public/utility/utility_thread.h" | 18 #include "content/public/utility/utility_thread.h" |
19 #include "courgette/courgette.h" | 19 #include "courgette/courgette.h" |
20 #include "courgette/third_party/bsdiff.h" | 20 #include "courgette/third_party/bsdiff.h" |
21 #include "ipc/ipc_channel.h" | 21 #include "ipc/ipc_channel.h" |
22 #include "skia/ext/image_operations.h" | 22 #include "skia/ext/image_operations.h" |
23 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
24 #include "third_party/zlib/google/zip.h" | 24 #include "third_party/zlib/google/zip.h" |
25 #include "ui/gfx/codec/jpeg_codec.h" | 25 #include "ui/gfx/codec/jpeg_codec.h" |
26 #include "ui/gfx/size.h" | 26 #include "ui/gfx/geometry/size.h" |
27 | 27 |
28 #if !defined(OS_ANDROID) | 28 #if !defined(OS_ANDROID) |
29 #include "chrome/utility/profile_import_handler.h" | 29 #include "chrome/utility/profile_import_handler.h" |
30 #endif | 30 #endif |
31 | 31 |
32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
33 #include "chrome/utility/font_cache_handler_win.h" | 33 #include "chrome/utility/font_cache_handler_win.h" |
34 #include "chrome/utility/shell_handler_win.h" | 34 #include "chrome/utility/shell_handler_win.h" |
35 #endif | 35 #endif |
36 | 36 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 const std::string& mime_type, int64 total_size, bool get_attached_images) { | 351 const std::string& mime_type, int64 total_size, bool get_attached_images) { |
352 // Only one IPCDataSource may be created and added to the list of handlers. | 352 // Only one IPCDataSource may be created and added to the list of handlers. |
353 metadata::IPCDataSource* source = new metadata::IPCDataSource(total_size); | 353 metadata::IPCDataSource* source = new metadata::IPCDataSource(total_size); |
354 handlers_.push_back(source); | 354 handlers_.push_back(source); |
355 | 355 |
356 metadata::MediaMetadataParser* parser = new metadata::MediaMetadataParser( | 356 metadata::MediaMetadataParser* parser = new metadata::MediaMetadataParser( |
357 source, mime_type, get_attached_images); | 357 source, mime_type, get_attached_images); |
358 parser->Start(base::Bind(&FinishParseMediaMetadata, base::Owned(parser))); | 358 parser->Start(base::Bind(&FinishParseMediaMetadata, base::Owned(parser))); |
359 } | 359 } |
360 #endif | 360 #endif |
OLD | NEW |