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 #ifndef CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_GET_FILE_INFO_WORKER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_GET_FILE_INFO_WORKER_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_GET_FILE_INFO_WORKER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_GET_FILE_INFO_WORKER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/sequenced_task_runner_helpers.h" | 10 #include "base/sequenced_task_runner_helpers.h" |
11 #include "base/synchronization/cancellation_flag.h" | 11 #include "base/synchronization/cancellation_flag.h" |
12 #include "chrome/browser/media_gallery/linux/mtp_device_operations_utils.h" | 12 #include "chrome/browser/media_gallery/linux/mtp_device_operations_utils.h" |
13 #include "chrome/browser/media_transfer_protocol/mtp_file_entry.pb.h" | 13 #include "device/media_transfer_protocol/mtp_file_entry.pb.h" |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 class SequencedTaskRunner; | 16 class SequencedTaskRunner; |
17 class WaitableEvent; | 17 class WaitableEvent; |
18 } | 18 } |
19 | 19 |
20 namespace chrome { | 20 namespace chrome { |
21 | 21 |
22 class MTPGetFileInfoWorker; | 22 class MTPGetFileInfoWorker; |
23 typedef struct WorkerDeleter<class MTPGetFileInfoWorker> | 23 typedef struct WorkerDeleter<class MTPGetFileInfoWorker> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // |on_task_completed_event_| and |on_shutdown_event_| should not be | 101 // |on_task_completed_event_| and |on_shutdown_event_| should not be |
102 // dereferenced when this is set. | 102 // dereferenced when this is set. |
103 base::CancellationFlag cancel_tasks_flag_; | 103 base::CancellationFlag cancel_tasks_flag_; |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(MTPGetFileInfoWorker); | 105 DISALLOW_COPY_AND_ASSIGN(MTPGetFileInfoWorker); |
106 }; | 106 }; |
107 | 107 |
108 } // namespace chrome | 108 } // namespace chrome |
109 | 109 |
110 #endif // CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_GET_FILE_INFO_WORKER_H_ | 110 #endif // CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_GET_FILE_INFO_WORKER_H_ |
OLD | NEW |