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

Side by Side Diff: chrome/browser/media_galleries/linux/mtp_read_file_worker.h

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 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 | Annotate | Revision Log
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_READ_FILE_WORKER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_READ_FILE_WORKER_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_READ_FILE_WORKER_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_READ_FILE_WORKER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/platform_file.h" 13 #include "base/platform_file.h"
14 14
15 namespace base { 15 namespace base {
16 class FilePath; 16 class FilePath;
17 } 17 }
18 18
19 namespace chrome {
20
21 class SnapshotFileDetails; 19 class SnapshotFileDetails;
22 struct SnapshotRequestInfo; 20 struct SnapshotRequestInfo;
23 21
24 // Worker class to copy the contents of the media transfer protocol(MTP) device 22 // Worker class to copy the contents of the media transfer protocol(MTP) device
25 // file to the given snapshot file. 23 // file to the given snapshot file.
26 class MTPReadFileWorker { 24 class MTPReadFileWorker {
27 public: 25 public:
28 explicit MTPReadFileWorker(const std::string& device_handle); 26 explicit MTPReadFileWorker(const std::string& device_handle);
29 ~MTPReadFileWorker(); 27 ~MTPReadFileWorker();
30 28
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 79
82 // The device unique identifier to query the device. 80 // The device unique identifier to query the device.
83 const std::string device_handle_; 81 const std::string device_handle_;
84 82
85 // For callbacks that may run after destruction. 83 // For callbacks that may run after destruction.
86 base::WeakPtrFactory<MTPReadFileWorker> weak_ptr_factory_; 84 base::WeakPtrFactory<MTPReadFileWorker> weak_ptr_factory_;
87 85
88 DISALLOW_COPY_AND_ASSIGN(MTPReadFileWorker); 86 DISALLOW_COPY_AND_ASSIGN(MTPReadFileWorker);
89 }; 87 };
90 88
91 } // namespace chrome
92
93 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_READ_FILE_WORKER_H_ 89 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_READ_FILE_WORKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698