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

Unified Diff: chrome/browser/media_gallery/win/mtp_device_object_entry.cc

Issue 11297002: [Media Gallery] Added code to support mtp device media file system on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years 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_gallery/win/mtp_device_object_entry.cc
diff --git a/chrome/browser/media_gallery/win/mtp_device_object_entry.cc b/chrome/browser/media_gallery/win/mtp_device_object_entry.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1adf4e9c9290f310c531ddd442d2d00cfc5f3b24
--- /dev/null
+++ b/chrome/browser/media_gallery/win/mtp_device_object_entry.cc
@@ -0,0 +1,37 @@
+// 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.
+//
+// MTPDeviceObjectEntry implementation.
+
+#include "chrome/browser/media_gallery/win/mtp_device_object_entry.h"
+
+#include "base/threading/sequenced_worker_pool.h"
+#include "content/public/browser/browser_thread.h"
+
+namespace chrome {
+
+MTPDeviceObjectEntry::MTPDeviceObjectEntry()
+ : is_directory_(false),
+ size_(0) {
+ DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread());
+}
+
+MTPDeviceObjectEntry::MTPDeviceObjectEntry(const string16& object_id,
+ const string16& object_name,
+ bool is_directory,
+ int64 size,
+ const base::Time& last_modified_time)
+ : object_id_(object_id),
+ name_(object_name),
+ is_directory_(is_directory),
+ size_(size),
+ last_modified_time_(last_modified_time) {
+ DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread());
+}
+
+MTPDeviceObjectEntry::~MTPDeviceObjectEntry() {
+ DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread());
+}
+
+} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698