Chromium Code Reviews| 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..e1c08189280b4a8e80d116c105c7f9f023d0ea0b |
| --- /dev/null |
| +++ b/chrome/browser/media_gallery/win/mtp_device_object_entry.cc |
| @@ -0,0 +1,38 @@ |
| +// 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), |
| + last_modified_time_(base::Time()) { |
|
Peter Kasting
2012/11/01 21:38:37
Nit: Explicit init of this member not necessary
kmadhusu
2012/11/02 03:27:16
Done.
|
| + 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 |