OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/media_galleries/fileapi/safe_audio_video_checker.h" | 5 #include "chrome/browser/media_galleries/fileapi/safe_audio_video_checker.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/process/process_handle.h" | 11 #include "base/process/process_handle.h" |
12 #include "chrome/common/chrome_utility_messages.h" | 12 #include "chrome/common/chrome_utility_messages.h" |
| 13 #include "chrome/common/extensions/chrome_utility_extensions_messages.h" |
13 #include "content/public/browser/child_process_data.h" | 14 #include "content/public/browser/child_process_data.h" |
14 #include "content/public/browser/utility_process_host.h" | 15 #include "content/public/browser/utility_process_host.h" |
15 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
16 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
17 #include "ipc/ipc_platform_file.h" | 18 #include "ipc/ipc_platform_file.h" |
18 | 19 |
19 SafeAudioVideoChecker::SafeAudioVideoChecker( | 20 SafeAudioVideoChecker::SafeAudioVideoChecker( |
20 base::File file, | 21 base::File file, |
21 const fileapi::CopyOrMoveFileValidator::ResultCallback& callback) | 22 const fileapi::CopyOrMoveFileValidator::ResultCallback& callback) |
22 : state_(INITIAL_STATE), | 23 : state_(INITIAL_STATE), |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 bool handled = true; | 79 bool handled = true; |
79 IPC_BEGIN_MESSAGE_MAP(SafeAudioVideoChecker, message) | 80 IPC_BEGIN_MESSAGE_MAP(SafeAudioVideoChecker, message) |
80 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_ProcessStarted, | 81 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_ProcessStarted, |
81 OnProcessStarted) | 82 OnProcessStarted) |
82 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_CheckMediaFile_Finished, | 83 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_CheckMediaFile_Finished, |
83 OnCheckingFinished) | 84 OnCheckingFinished) |
84 IPC_MESSAGE_UNHANDLED(handled = false) | 85 IPC_MESSAGE_UNHANDLED(handled = false) |
85 IPC_END_MESSAGE_MAP() | 86 IPC_END_MESSAGE_MAP() |
86 return handled; | 87 return handled; |
87 } | 88 } |
OLD | NEW |