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

Unified Diff: disk.cc

Issue 6824032: First batch of cros-disk changes (Closed) Base URL: ssh://gitrw.chromium.org:9222/cros-disks.git@master
Patch Set: adds set_ and removes j's Created 9 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « disk.h ('k') | disk-manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: disk.cc
diff --git a/disk.cc b/disk.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fe0bf8c33ac49c4e334147f7f207cfeb0cfb65df
--- /dev/null
+++ b/disk.cc
@@ -0,0 +1,35 @@
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "disk.h"
+
+namespace cros_disks {
+
+// Keys that libcros expects to see on the wire.
+// TODO(rtc): We should probably stuff these in a shared header...
+const char kDeviceIsDrive[] = "DeviceIsDrive";
+const char kDevicePresentationHide[] = "DevicePresentationHide";
+const char kDeviceIsMounted[] = "DeviceIsMounted";
+const char kDeviceMountPaths[] = "DeviceMountPaths";
+const char kDeviceIsMediaAvailable[] = "DeviceIsMediaAvailable";
+const char kNativePath[] = "NativePath";
+const char kDeviceFile[] = "DeviceFile";
+const char kLabel[] = "IdLabel";
+const char kDriveModel[] = "DriveModel";
+const char kPartitionSlave[] = "PartitionSlave";
+const char kDriveIsRotational[] = "DriveIsRotational";
+const char kDeviceIsOpticalDisc[] = "DeviceIsOpticalDisc";
+const char kDeviceSize[] = "DeviceSize";
+const char kReadOnly[] = "DeviceIsReadOnly";
+
+
+// TODO(rtc): The constructor should set some defaults, but I'm still iterating
+// on the data model.
+Disk::Disk() {
+}
+
+Disk::~Disk() {
+}
+
+} // namespace cros_disks
« no previous file with comments | « disk.h ('k') | disk-manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698