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

Unified Diff: chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h

Issue 2358493002: Remove MTP support on Linux. (Closed)
Patch Set: move files Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h
diff --git a/chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h b/chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h
deleted file mode 100644
index 785e90da4a6a0437a7109054db3ffb7b5eabb533..0000000000000000000000000000000000000000
--- a/chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_OBJECT_ENUMERATOR_H_
-#define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_OBJECT_ENUMERATOR_H_
-
-#include <stddef.h>
-#include <stdint.h>
-
-#include <vector>
-
-#include "base/files/file_path.h"
-#include "base/macros.h"
-#include "base/time/time.h"
-#include "device/media_transfer_protocol/mtp_file_entry.pb.h"
-
-// Used to enumerate top-level files of an media file system.
-class MTPDeviceObjectEnumerator {
- public:
- explicit MTPDeviceObjectEnumerator(const std::vector<MtpFileEntry>& entries);
-
- ~MTPDeviceObjectEnumerator();
-
- base::FilePath Next();
- int64_t Size();
- bool IsDirectory();
- base::Time LastModifiedTime();
-
- // If the current file entry is valid, returns true and fills in |entry_id|
- // with the entry identifier else returns false and |entry_id| is not set.
- bool GetEntryId(uint32_t* entry_id) const;
-
- private:
- // Returns true if the enumerator has more entries to traverse, false
- // otherwise.
- bool HasMoreEntries() const;
-
- // Returns true if Next() has been called at least once, and the enumerator
- // has more entries to traverse.
- bool IsIndexReadyAndInRange() const;
-
- // List of directory file entries information.
- const std::vector<MtpFileEntry> file_entries_;
-
- // Index into |file_entries_|.
- // Should only be used when |is_index_ready_| is true.
- size_t index_;
-
- // Initially false. Set to true after Next() has been called.
- bool is_index_ready_;
-
- DISALLOW_COPY_AND_ASSIGN(MTPDeviceObjectEnumerator);
-};
-
-#endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_OBJECT_ENUMERATOR_H_

Powered by Google App Engine
This is Rietveld 408576698