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_READ_DIRECTORY_WORKER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_READ_DIRECTORY_WORKER_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_READ_DIRECTORY_WORKER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_READ_DIRECTORY_WORKER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/sequenced_task_runner_helpers.h" | 12 #include "base/sequenced_task_runner_helpers.h" |
13 #include "base/synchronization/cancellation_flag.h" | 13 #include "base/synchronization/cancellation_flag.h" |
14 #include "chrome/browser/media_gallery/linux/mtp_device_operations_utils.h" | 14 #include "chrome/browser/media_gallery/linux/mtp_device_operations_utils.h" |
15 #include "chrome/browser/media_transfer_protocol/mtp_file_entry.pb.h" | 15 #include "device/media_transfer_protocol/mtp_file_entry.pb.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class SequencedTaskRunner; | 18 class SequencedTaskRunner; |
19 class WaitableEvent; | 19 class WaitableEvent; |
20 } | 20 } |
21 | 21 |
22 namespace chrome { | 22 namespace chrome { |
23 | 23 |
24 class MTPReadDirectoryWorker; | 24 class MTPReadDirectoryWorker; |
25 typedef struct WorkerDeleter<class MTPReadDirectoryWorker> | 25 typedef struct WorkerDeleter<class MTPReadDirectoryWorker> |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // |on_task_completed_event_| and |on_shutdown_event_| should not be | 114 // |on_task_completed_event_| and |on_shutdown_event_| should not be |
115 // dereferenced when this is set. | 115 // dereferenced when this is set. |
116 base::CancellationFlag cancel_tasks_flag_; | 116 base::CancellationFlag cancel_tasks_flag_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(MTPReadDirectoryWorker); | 118 DISALLOW_COPY_AND_ASSIGN(MTPReadDirectoryWorker); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace chrome | 121 } // namespace chrome |
122 | 122 |
123 #endif // CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_READ_DIRECTORY_WORKER_H_ | 123 #endif // CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_READ_DIRECTORY_WORKER_H_ |
OLD | NEW |