| 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
|
|
|