OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/files/file.h" | 11 #include "base/files/file.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/win/scoped_comptr.h" | 16 #include "base/win/scoped_comptr.h" |
17 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" | 17 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" |
18 #include "webkit/browser/fileapi/async_file_util.h" | 18 #include "storage/browser/fileapi/async_file_util.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class FilePath; | 21 class FilePath; |
22 class SequencedTaskRunner; | 22 class SequencedTaskRunner; |
23 } | 23 } |
24 | 24 |
25 class SnapshotFileDetails; | 25 class SnapshotFileDetails; |
26 struct SnapshotRequestInfo; | 26 struct SnapshotRequestInfo; |
27 | 27 |
28 // MTPDeviceDelegateImplWin is used to communicate with the media transfer | 28 // MTPDeviceDelegateImplWin is used to communicate with the media transfer |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // Used to make sure only one task is in progress at any time. | 214 // Used to make sure only one task is in progress at any time. |
215 bool task_in_progress_; | 215 bool task_in_progress_; |
216 | 216 |
217 // For callbacks that may run after destruction. | 217 // For callbacks that may run after destruction. |
218 base::WeakPtrFactory<MTPDeviceDelegateImplWin> weak_ptr_factory_; | 218 base::WeakPtrFactory<MTPDeviceDelegateImplWin> weak_ptr_factory_; |
219 | 219 |
220 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplWin); | 220 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplWin); |
221 }; | 221 }; |
222 | 222 |
223 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ | 223 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_DELEGATE_IMPL_WIN_H_ |
OLD | NEW |