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

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

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 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
« no previous file with comments | « chromeos/dbus/cras_audio_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 CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_
6 #define CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ 6 #define CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/basictypes.h"
12 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/macros.h"
13 #include "chromeos/chromeos_export.h" 15 #include "chromeos/chromeos_export.h"
14 #include "chromeos/dbus/dbus_client.h" 16 #include "chromeos/dbus/dbus_client.h"
15 #include "chromeos/dbus/dbus_client_implementation_type.h" 17 #include "chromeos/dbus/dbus_client_implementation_type.h"
16 18
17 namespace base { 19 namespace base {
18 class FilePath; 20 class FilePath;
19 } 21 }
20 22
21 namespace dbus { 23 namespace dbus {
22 class MessageReader; 24 class MessageReader;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // Product name of the device (e.g. "Nexus One"). 148 // Product name of the device (e.g. "Nexus One").
147 const std::string& product_name() const { return product_name_; } 149 const std::string& product_name() const { return product_name_; }
148 150
149 // Disk model. (e.g. "TransMemory") 151 // Disk model. (e.g. "TransMemory")
150 const std::string& drive_label() const { return drive_model_; } 152 const std::string& drive_label() const { return drive_model_; }
151 153
152 // Device type. Not working well, yet. 154 // Device type. Not working well, yet.
153 DeviceType device_type() const { return device_type_; } 155 DeviceType device_type() const { return device_type_; }
154 156
155 // Total size of the disk in bytes. 157 // Total size of the disk in bytes.
156 uint64 total_size_in_bytes() const { return total_size_in_bytes_; } 158 uint64_t total_size_in_bytes() const { return total_size_in_bytes_; }
157 159
158 // Is the device read-only. 160 // Is the device read-only.
159 bool is_read_only() const { return is_read_only_; } 161 bool is_read_only() const { return is_read_only_; }
160 162
161 // Returns true if the device should be hidden from the file browser. 163 // Returns true if the device should be hidden from the file browser.
162 bool is_hidden() const { return is_hidden_; } 164 bool is_hidden() const { return is_hidden_; }
163 165
164 // Returns file system uuid. 166 // Returns file system uuid.
165 const std::string& uuid() const { return uuid_; } 167 const std::string& uuid() const { return uuid_; }
166 168
167 private: 169 private:
168 void InitializeFromResponse(dbus::Response* response); 170 void InitializeFromResponse(dbus::Response* response);
169 171
170 std::string device_path_; 172 std::string device_path_;
171 std::string mount_path_; 173 std::string mount_path_;
172 std::string system_path_; 174 std::string system_path_;
173 bool is_drive_; 175 bool is_drive_;
174 bool has_media_; 176 bool has_media_;
175 bool on_boot_device_; 177 bool on_boot_device_;
176 bool on_removable_device_; 178 bool on_removable_device_;
177 179
178 std::string file_path_; 180 std::string file_path_;
179 std::string label_; 181 std::string label_;
180 std::string vendor_id_; 182 std::string vendor_id_;
181 std::string vendor_name_; 183 std::string vendor_name_;
182 std::string product_id_; 184 std::string product_id_;
183 std::string product_name_; 185 std::string product_name_;
184 std::string drive_model_; 186 std::string drive_model_;
185 DeviceType device_type_; 187 DeviceType device_type_;
186 uint64 total_size_in_bytes_; 188 uint64_t total_size_in_bytes_;
187 bool is_read_only_; 189 bool is_read_only_;
188 bool is_hidden_; 190 bool is_hidden_;
189 std::string uuid_; 191 std::string uuid_;
190 }; 192 };
191 193
192 // A struct to represent information about a mount point sent from cros-disks. 194 // A struct to represent information about a mount point sent from cros-disks.
193 struct CHROMEOS_EXPORT MountEntry { 195 struct CHROMEOS_EXPORT MountEntry {
194 public: 196 public:
195 MountEntry() 197 MountEntry()
196 : error_code_(MOUNT_ERROR_UNKNOWN), mount_type_(MOUNT_TYPE_INVALID) { 198 : error_code_(MOUNT_ERROR_UNKNOWN), mount_type_(MOUNT_TYPE_INVALID) {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // Create() should be used instead. 335 // Create() should be used instead.
334 CrosDisksClient(); 336 CrosDisksClient();
335 337
336 private: 338 private:
337 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient); 339 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient);
338 }; 340 };
339 341
340 } // namespace chromeos 342 } // namespace chromeos
341 343
342 #endif // CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ 344 #endif // CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/cras_audio_client.cc ('k') | chromeos/dbus/cros_disks_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698