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

Side by Side Diff: chrome/browser/extensions/extension_file_browser_private_api.h

Issue 7583041: Adding a format device button to UI. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 virtual ~GetMountPointsFunction(); 272 virtual ~GetMountPointsFunction();
273 273
274 virtual bool RunImpl() OVERRIDE; 274 virtual bool RunImpl() OVERRIDE;
275 275
276 private: 276 private:
277 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getMountPoints"); 277 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getMountPoints");
278 }; 278 };
279 279
280 // Formats Device given its mount path. 280 // Formats Device given its mount path.
281 class FormatDeviceFunction 281 class FormatDeviceFunction
282 : public SyncExtensionFunction { 282 : public FileBrowserFunction {
283 public: 283 public:
284 FormatDeviceFunction(); 284 FormatDeviceFunction();
285 285
286 protected: 286 protected:
287 virtual ~FormatDeviceFunction(); 287 virtual ~FormatDeviceFunction();
288 288
289 virtual bool RunImpl() OVERRIDE; 289 virtual bool RunImpl() OVERRIDE;
290 290
291 // FileBrowserFunction overrides.
292 virtual void GetLocalPathsResponseOnUIThread(
293 const FilePathList& files, void* context) OVERRIDE;
tbarzic 2011/08/10 21:04:56 does const FilePathList& files fit into previous l
sidor.dev 2011/08/10 22:38:17 Done + fixed others in that file.
294
291 private: 295 private:
292 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.formatDevice"); 296 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.formatDevice");
293 }; 297 };
294 298
295 // Retrieves devices meta-data. Expects volume's device path as an argument. 299 // Retrieves devices meta-data. Expects volume's device path as an argument.
296 class GetVolumeMetadataFunction 300 class GetVolumeMetadataFunction
297 : public SyncExtensionFunction { 301 : public SyncExtensionFunction {
298 public: 302 public:
299 GetVolumeMetadataFunction(); 303 GetVolumeMetadataFunction();
300 304
(...skipping 19 matching lines...) Expand all
320 virtual ~FileDialogStringsFunction() {} 324 virtual ~FileDialogStringsFunction() {}
321 325
322 // SyncExtensionFunction overrides. 326 // SyncExtensionFunction overrides.
323 virtual bool RunImpl() OVERRIDE; 327 virtual bool RunImpl() OVERRIDE;
324 328
325 private: 329 private:
326 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); 330 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings");
327 }; 331 };
328 332
329 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ 333 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698