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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698