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 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
10 #include "base/files/file.h" | 9 #include "base/files/file.h" |
| 10 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "content/public/browser/utility_process_host_client.h" | 12 #include "content/public/browser/utility_process_host_client.h" |
13 #include "storage/browser/fileapi/copy_or_move_file_validator.h" | 13 #include "storage/browser/fileapi/copy_or_move_file_validator.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 class UtilityProcessHost; | 16 class UtilityProcessHost; |
17 } | 17 } |
18 | 18 |
19 // Uses a utility process to validate a media file. If the callback returns | 19 // Uses a utility process to validate a media file. If the callback returns |
20 // File::FILE_OK, then the file appears to be a valid media file. This does | 20 // File::FILE_OK, then the file appears to be a valid media file. This does |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 base::File file_; | 56 base::File file_; |
57 | 57 |
58 const storage::CopyOrMoveFileValidator::ResultCallback callback_; | 58 const storage::CopyOrMoveFileValidator::ResultCallback callback_; |
59 | 59 |
60 base::WeakPtr<content::UtilityProcessHost> utility_process_host_; | 60 base::WeakPtr<content::UtilityProcessHost> utility_process_host_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(SafeAudioVideoChecker); | 62 DISALLOW_COPY_AND_ASSIGN(SafeAudioVideoChecker); |
63 }; | 63 }; |
64 | 64 |
65 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_ | 65 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_ |
OLD | NEW |