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

Side by Side Diff: chromeos/dbus/cros_disks_client.h

Issue 9838085: Move files inside chrome/browser/chromeos/dbus to chromeos/dbus (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 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
« no previous file with comments | « chromeos/dbus/cashew_client.cc ('k') | chromeos/dbus/cros_disks_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_
6 #define CHROME_BROWSER_CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ 6 #define CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" 14 #include "chromeos/chromeos_export.h"
15 #include "chromeos/dbus/dbus_client_implementation_type.h"
15 16
16 namespace dbus { 17 namespace dbus {
17 class Bus; 18 class Bus;
18 class Response; 19 class Response;
19 } 20 }
20 21
21 namespace chromeos { 22 namespace chromeos {
22 23
23 // Enum describing types of mount used by cros-disks. 24 // Enum describing types of mount used by cros-disks.
24 enum MountType { 25 enum MountType {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 std::string drive_model_; 127 std::string drive_model_;
127 DeviceType device_type_; 128 DeviceType device_type_;
128 uint64 total_size_in_bytes_; 129 uint64 total_size_in_bytes_;
129 bool is_read_only_; 130 bool is_read_only_;
130 bool is_hidden_; 131 bool is_hidden_;
131 }; 132 };
132 133
133 // A class to make the actual DBus calls for cros-disks service. 134 // A class to make the actual DBus calls for cros-disks service.
134 // This class only makes calls, result/error handling should be done 135 // This class only makes calls, result/error handling should be done
135 // by callbacks. 136 // by callbacks.
136 class CrosDisksClient { 137 class CHROMEOS_EXPORT CrosDisksClient {
137 public: 138 public:
138 // A callback to be called when DBus method call fails. 139 // A callback to be called when DBus method call fails.
139 typedef base::Callback<void()> ErrorCallback; 140 typedef base::Callback<void()> ErrorCallback;
140 141
141 // A callback to handle the result of Mount. 142 // A callback to handle the result of Mount.
142 typedef base::Callback<void()> MountCallback; 143 typedef base::Callback<void()> MountCallback;
143 144
144 // A callback to handle the result of Unmount. 145 // A callback to handle the result of Unmount.
145 // The argument is the device path. 146 // The argument is the device path.
146 typedef base::Callback<void(const std::string&)> UnmountCallback; 147 typedef base::Callback<void(const std::string&)> UnmountCallback;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 protected: 223 protected:
223 // Create() should be used instead. 224 // Create() should be used instead.
224 CrosDisksClient(); 225 CrosDisksClient();
225 226
226 private: 227 private:
227 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient); 228 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient);
228 }; 229 };
229 230
230 } // namespace chromeos 231 } // namespace chromeos
231 232
232 #endif // CHROME_BROWSER_CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ 233 #endif // CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/cashew_client.cc ('k') | chromeos/dbus/cros_disks_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698