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_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <map> | 11 #include <map> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
15 #include "base/files/file.h" | 15 #include "base/files/file.h" |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
19 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" | 20 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" |
20 | 21 |
21 // Delegate for presenting an Image Capture device through the filesystem | 22 // Delegate for presenting an Image Capture device through the filesystem |
22 // API. The synthetic filesystem will be rooted at the constructed location, | 23 // API. The synthetic filesystem will be rooted at the constructed location, |
23 // and names of all files notified through the ItemAdded call will be | 24 // and names of all files notified through the ItemAdded call will be |
24 // all appear as children of that directory. (ItemAdded calls with directories | 25 // all appear as children of that directory. (ItemAdded calls with directories |
25 // will be ignored.) | 26 // will be ignored.) |
26 // Note on thread management: This class is thread-compatible: it can be created | 27 // Note on thread management: This class is thread-compatible: it can be created |
27 // on any thread, but then mutates all state on the UI thread. The async | 28 // on any thread, but then mutates all state on the UI thread. The async |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 196 |
196 ReadFileTransactionList read_file_transactions_; | 197 ReadFileTransactionList read_file_transactions_; |
197 ReadDirTransactionList read_dir_transactions_; | 198 ReadDirTransactionList read_dir_transactions_; |
198 | 199 |
199 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_; | 200 base::WeakPtrFactory<MTPDeviceDelegateImplMac> weak_factory_; |
200 | 201 |
201 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac); | 202 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplMac); |
202 }; | 203 }; |
203 | 204 |
204 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ | 205 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MAC_MTP_DEVICE_DELEGATE_IMPL_MAC_H_ |
OLD | NEW |