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

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

Issue 10083067: gdata: Support opening zip file on Google Docs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: gdata: Support opening zip file on Google Docs. 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
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // A callback to handle mount events. 171 // A callback to handle mount events.
172 // The first argument is the event type. 172 // The first argument is the event type.
173 // The second argument is the device path. 173 // The second argument is the device path.
174 typedef base::Callback<void(MountEventType, const std::string&) 174 typedef base::Callback<void(MountEventType, const std::string&)
175 > MountEventHandler; 175 > MountEventHandler;
176 176
177 virtual ~CrosDisksClient(); 177 virtual ~CrosDisksClient();
178 178
179 // Calls Mount method. |callback| is called after the method call succeeds, 179 // Calls Mount method. |callback| is called after the method call succeeds,
180 // otherwise, |error_callback| is called. 180 // otherwise, |error_callback| is called.
181 // When mounting an archive, the |source_format| argument passes the file
182 // extension (with the leading dot, for example ".zip"). If |source_format| is
183 // empty then the source format is auto-detected.
181 virtual void Mount(const std::string& source_path, 184 virtual void Mount(const std::string& source_path,
185 const std::string& source_format,
182 MountType type, 186 MountType type,
183 const MountCallback& callback, 187 const MountCallback& callback,
184 const ErrorCallback& error_callback) = 0; 188 const ErrorCallback& error_callback) = 0;
185 189
186 // Calls Unmount method. |callback| is called after the method call succeeds, 190 // Calls Unmount method. |callback| is called after the method call succeeds,
187 // otherwise, |error_callback| is called. 191 // otherwise, |error_callback| is called.
188 virtual void Unmount(const std::string& device_path, 192 virtual void Unmount(const std::string& device_path,
189 const UnmountCallback& callback, 193 const UnmountCallback& callback,
190 const ErrorCallback& error_callback) = 0; 194 const ErrorCallback& error_callback) = 0;
191 195
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // Create() should be used instead. 228 // Create() should be used instead.
225 CrosDisksClient(); 229 CrosDisksClient();
226 230
227 private: 231 private:
228 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient); 232 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient);
229 }; 233 };
230 234
231 } // namespace chromeos 235 } // namespace chromeos
232 236
233 #endif // CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ 237 #endif // CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/filebrowser_mount/test.js ('k') | chromeos/dbus/cros_disks_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698