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

Side by Side Diff: chrome/browser/media_galleries/win/mtp_device_object_enumerator.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) 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 // This class enumerates the media transfer protocol (MTP) device objects from 5 // This class enumerates the media transfer protocol (MTP) device objects from
6 // a given object entry list. 6 // a given object entry list.
7 7
8 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OBJECT_ENUMERATOR_H_ 8 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OBJECT_ENUMERATOR_H_
9 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OBJECT_ENUMERATOR_H_ 9 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OBJECT_ENUMERATOR_H_
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h" 14 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h"
15 #include "webkit/browser/fileapi/file_system_file_util.h" 15 #include "webkit/browser/fileapi/file_system_file_util.h"
16 16
17 namespace chrome {
18
19 // MTPDeviceObjectEnumerator is used to enumerate the media transfer protocol 17 // MTPDeviceObjectEnumerator is used to enumerate the media transfer protocol
20 // (MTP) device objects from a given object entry list. 18 // (MTP) device objects from a given object entry list.
21 // MTPDeviceObjectEnumerator supports MTP device file operations. 19 // MTPDeviceObjectEnumerator supports MTP device file operations.
22 // MTPDeviceObjectEnumerator may only be used on a single thread. 20 // MTPDeviceObjectEnumerator may only be used on a single thread.
23 class MTPDeviceObjectEnumerator 21 class MTPDeviceObjectEnumerator
24 : public fileapi::FileSystemFileUtil::AbstractFileEnumerator { 22 : public fileapi::FileSystemFileUtil::AbstractFileEnumerator {
25 public: 23 public:
26 explicit MTPDeviceObjectEnumerator(const MTPDeviceObjectEntries& entries); 24 explicit MTPDeviceObjectEnumerator(const MTPDeviceObjectEntries& entries);
27 virtual ~MTPDeviceObjectEnumerator(); 25 virtual ~MTPDeviceObjectEnumerator();
28 26
(...skipping 24 matching lines...) Expand all
53 size_t index_; 51 size_t index_;
54 52
55 // Initially false. Set to true after Next() has been called. 53 // Initially false. Set to true after Next() has been called.
56 bool is_index_ready_; 54 bool is_index_ready_;
57 55
58 base::ThreadChecker thread_checker_; 56 base::ThreadChecker thread_checker_;
59 57
60 DISALLOW_COPY_AND_ASSIGN(MTPDeviceObjectEnumerator); 58 DISALLOW_COPY_AND_ASSIGN(MTPDeviceObjectEnumerator);
61 }; 59 };
62 60
63 } // namespace chrome
64
65 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OBJECT_ENUMERATOR_H_ 61 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OBJECT_ENUMERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698