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_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 PENDING_INIT, | 44 PENDING_INIT, |
45 INITIALIZED | 45 INITIALIZED |
46 }; | 46 }; |
47 | 47 |
48 // Used to represent pending task details. | 48 // Used to represent pending task details. |
49 struct PendingTaskInfo { | 49 struct PendingTaskInfo { |
50 PendingTaskInfo(const base::FilePath& path, | 50 PendingTaskInfo(const base::FilePath& path, |
51 content::BrowserThread::ID thread_id, | 51 content::BrowserThread::ID thread_id, |
52 const tracked_objects::Location& location, | 52 const tracked_objects::Location& location, |
53 const base::Closure& task); | 53 const base::Closure& task); |
| 54 PendingTaskInfo(const PendingTaskInfo& other); |
54 ~PendingTaskInfo(); | 55 ~PendingTaskInfo(); |
55 | 56 |
56 base::FilePath path; | 57 base::FilePath path; |
57 base::FilePath cached_path; | 58 base::FilePath cached_path; |
58 const content::BrowserThread::ID thread_id; | 59 const content::BrowserThread::ID thread_id; |
59 const tracked_objects::Location location; | 60 const tracked_objects::Location location; |
60 const base::Closure task; | 61 const base::Closure task; |
61 }; | 62 }; |
62 | 63 |
63 class MTPFileNode; | 64 class MTPFileNode; |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 // the ReadDirectory operation. | 522 // the ReadDirectory operation. |
522 FileInfoCache file_info_cache_; | 523 FileInfoCache file_info_cache_; |
523 | 524 |
524 // For callbacks that may run after destruction. | 525 // For callbacks that may run after destruction. |
525 base::WeakPtrFactory<MTPDeviceDelegateImplLinux> weak_ptr_factory_; | 526 base::WeakPtrFactory<MTPDeviceDelegateImplLinux> weak_ptr_factory_; |
526 | 527 |
527 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplLinux); | 528 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplLinux); |
528 }; | 529 }; |
529 | 530 |
530 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H
_ | 531 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H
_ |
OLD | NEW |