Chromium Code Reviews| 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 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.
| |
| 18 DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); | |
| 19 } | |
| 20 | |
| 21 MTPDeviceObjectEntry::MTPDeviceObjectEntry(const string16& object_id, | |
| 22 const string16& object_name, | |
| 23 bool is_directory, | |
| 24 int64 size, | |
| 25 const base::Time& last_modified_time) | |
| 26 : object_id_(object_id), | |
| 27 name_(object_name), | |
| 28 is_directory_(is_directory), | |
| 29 size_(size), | |
| 30 last_modified_time_(last_modified_time) { | |
| 31 DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); | |
| 32 } | |
| 33 | |
| 34 MTPDeviceObjectEntry::~MTPDeviceObjectEntry() { | |
| 35 DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); | |
| 36 } | |
| 37 | |
| 38 } // namespace chrome | |
| OLD | NEW |