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

Unified Diff: cros-disks-server-impl.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 | « cros-disks-server-impl.h ('k') | disk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cros-disks-server-impl.cc
diff --git a/cros-disks-server-impl.cc b/cros-disks-server-impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4b619062bf5b662a0389f3f5fb2aa535f2ea5306
--- /dev/null
+++ b/cros-disks-server-impl.cc
@@ -0,0 +1,45 @@
+// 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 "cros-disks-server-impl.h"
+
+#include "disk.h"
+
+#include <sys/mount.h>
+
+namespace cros_disks {
+
+// TODO(rtc): this should probably be a flag.
+static const char* kServicePath = "/org/chromium/CrosDisks";
+
+CrosDisksServer::CrosDisksServer(DBus::Connection& connection)
+ : DBus::ObjectAdaptor(connection, kServicePath) { }
+
+CrosDisksServer::~CrosDisksServer() { }
+
+bool CrosDisksServer::IsAlive(DBus::Error& error) { // NOLINT
+ return true;
+}
+
+void CrosDisksServer::FilesystemMount(
+ const std::string& nullArgument,
+ const std::vector<std::string>& mountOptions,
+ DBus::Error& error) { // NOLINT
+
+ return;
+}
+
+void CrosDisksServer::FilesystemUnmount(
+ const std::vector<std::string>& mountOptions,
+ DBus::Error& error) { // NOLINT
+
+ return;
+}
+
+DBusDisks CrosDisksServer::GetAll(DBus::Error& error) { // NOLINT
+ DBusDisks v;
+ return v;
+}
+
+} // namespace cros_disks
« no previous file with comments | « cros-disks-server-impl.h ('k') | disk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698