| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 // MTPDeviceObjectEntry implementation. |
| 6 |
| 7 #include "chrome/browser/media_gallery/win/mtp_device_object_entry.h" |
| 8 |
| 9 #include "base/threading/sequenced_worker_pool.h" |
| 10 #include "content/public/browser/browser_thread.h" |
| 11 |
| 12 namespace chrome { |
| 13 |
| 14 MTPDeviceObjectEntry::MTPDeviceObjectEntry() |
| 15 : is_directory_(false), |
| 16 size_(0) { |
| 17 DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); |
| 18 } |
| 19 |
| 20 MTPDeviceObjectEntry::MTPDeviceObjectEntry(const string16& object_id, |
| 21 const string16& object_name, |
| 22 bool is_directory, |
| 23 int64 size, |
| 24 const base::Time& last_modified_time) |
| 25 : object_id_(object_id), |
| 26 name_(object_name), |
| 27 is_directory_(is_directory), |
| 28 size_(size), |
| 29 last_modified_time_(last_modified_time) { |
| 30 DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); |
| 31 } |
| 32 |
| 33 MTPDeviceObjectEntry::~MTPDeviceObjectEntry() { |
| 34 DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); |
| 35 } |
| 36 |
| 37 } // namespace chrome |
| OLD | NEW |