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

Side by Side Diff: cros-disks-server-impl.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cros-disks.xml ('k') | cros-disks-server-impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium OS 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 #ifndef CROS_DISKS_SERVER_IMPL_H__
6 #define CROS_DISKS_SERVER_IMPL_H__
7
8 #include "cros-disks-server.h"
9 #include "disk.h"
10
11 #include <string>
12 #include <vector>
13
14 namespace cros_disks {
15
16 // The d-bus server for the cros-disks daemon.
17 //
18 // Example Usage:
19 //
20 // DBus::Connection server_conn = DBus::Connection::SystemBus();
21 // server_conn.request_name("org.chromium.CrosDisks");
22 // CrosDisksServer* server = new(std::nothrow) CrosDisksServer(server_conn);
23 //
24 // At this point the server should be attached to the main loop.
25 //
26 class CrosDisksServer : public org::chromium::CrosDisks_adaptor,
27 public DBus::IntrospectableAdaptor,
28 public DBus::ObjectAdaptor {
29 public:
30 CrosDisksServer(DBus::Connection& connection);
31 virtual ~CrosDisksServer();
32
33 // A method for checking if the daemon is running. Always returns true.
34 virtual bool IsAlive(DBus::Error& error); // NOLINT
35
36 // Unmounts a device when invoked.
37 virtual void FilesystemUnmount(const std::vector<std::string>& mountOptions,
38 DBus::Error& error); // NOLINT
39
40 // Mounts a device when invoked.
41 virtual void FilesystemMount(const std::string& nullArgument,
42 const std::vector<std::string>& mountOptions,
43 DBus::Error& error); // NOLINT
44
45 // Returns a description of every disk device attached to the sytem.
46 virtual DBusDisks GetAll(DBus::Error& error); // NOLINT
47 };
48 } // namespace cros_disks
49
50 #endif // CROS_DISKS_SERVER_IMPL_H__
OLDNEW
« no previous file with comments | « cros-disks.xml ('k') | cros-disks-server-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698