| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_LINUX_MTP_DEVICE_TASK_HELPER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/callback.h" | 13 #include "base/callback.h" |
| 12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 14 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" | 16 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" |
| 15 #include "device/media_transfer_protocol/mtp_file_entry.pb.h" | 17 #include "device/media_transfer_protocol/mtp_file_entry.pb.h" |
| 16 #include "storage/browser/fileapi/async_file_util.h" | 18 #include "storage/browser/fileapi/async_file_util.h" |
| 17 | 19 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 // Used to handle WriteDataInfoSnapshotFile request. | 239 // Used to handle WriteDataInfoSnapshotFile request. |
| 238 scoped_ptr<MTPReadFileWorker> read_file_worker_; | 240 scoped_ptr<MTPReadFileWorker> read_file_worker_; |
| 239 | 241 |
| 240 // For callbacks that may run after destruction. | 242 // For callbacks that may run after destruction. |
| 241 base::WeakPtrFactory<MTPDeviceTaskHelper> weak_ptr_factory_; | 243 base::WeakPtrFactory<MTPDeviceTaskHelper> weak_ptr_factory_; |
| 242 | 244 |
| 243 DISALLOW_COPY_AND_ASSIGN(MTPDeviceTaskHelper); | 245 DISALLOW_COPY_AND_ASSIGN(MTPDeviceTaskHelper); |
| 244 }; | 246 }; |
| 245 | 247 |
| 246 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_H_ | 248 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_H_ |
| OLD | NEW |