Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: chrome/browser/media_galleries/chromeos/mtp_device_delegate_impl_chromeos.h

Issue 2358493002: Remove MTP support on Linux. (Closed)
Patch Set: move files Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CHROMEOS_MTP_DEVICE_DELEGATE_IMPL_CHROMEO S_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_CHROMEOS_MTP_DEVICE_DELEGATE_IMPL_CHROMEO S_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <set> 13 #include <set>
14 #include <string> 14 #include <string>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/containers/scoped_ptr_hash_map.h" 17 #include "base/containers/scoped_ptr_hash_map.h"
18 #include "base/files/file_path.h" 18 #include "base/files/file_path.h"
19 #include "base/location.h" 19 #include "base/location.h"
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/memory/weak_ptr.h" 21 #include "base/memory/weak_ptr.h"
22 #include "chrome/browser/media_galleries/chromeos/mtp_device_task_helper.h"
22 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" 23 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h"
23 #include "chrome/browser/media_galleries/linux/mtp_device_task_helper.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "storage/browser/fileapi/async_file_util.h" 25 #include "storage/browser/fileapi/async_file_util.h"
26 26
27 struct SnapshotRequestInfo; 27 struct SnapshotRequestInfo;
28 28
29 // MTPDeviceDelegateImplLinux communicates with the media transfer protocol 29 // MTPDeviceDelegateImplLinux communicates with the media transfer protocol
30 // (MTP) device to complete file system operations. These operations are 30 // (MTP) device to complete file system operations. These operations are
31 // performed asynchronously. Instantiate this class per MTP device storage. 31 // performed asynchronously. Instantiate this class per MTP device storage.
32 // MTPDeviceDelegateImplLinux lives on the IO thread. 32 // MTPDeviceDelegateImplLinux lives on the IO thread.
33 // MTPDeviceDelegateImplLinux does a call-and-reply to the UI thread 33 // MTPDeviceDelegateImplLinux does a call-and-reply to the UI thread
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 // operation. Used to service incoming GetFileInfo calls for the duration of 521 // operation. Used to service incoming GetFileInfo calls for the duration of
522 // the ReadDirectory operation. 522 // the ReadDirectory operation.
523 FileInfoCache file_info_cache_; 523 FileInfoCache file_info_cache_;
524 524
525 // For callbacks that may run after destruction. 525 // For callbacks that may run after destruction.
526 base::WeakPtrFactory<MTPDeviceDelegateImplLinux> weak_ptr_factory_; 526 base::WeakPtrFactory<MTPDeviceDelegateImplLinux> weak_ptr_factory_;
527 527
528 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplLinux); 528 DISALLOW_COPY_AND_ASSIGN(MTPDeviceDelegateImplLinux);
529 }; 529 };
530 530
531 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_DELEGATE_IMPL_LINUX_H _ 531 #endif // CHROME_BROWSER_MEDIA_GALLERIES_CHROMEOS_MTP_DEVICE_DELEGATE_IMPL_CHRO MEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/media_galleries/chromeos/mtp_device_delegate_impl_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698