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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_mount.h

Issue 23658009: Replace mountType by volumeType on fileBrowserPrivate APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This file provides task related API functions. 5 // This file provides task related API functions.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MOUNT_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MOUNT_H_
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MOUNT_H_ 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MOUNT_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 19 matching lines...) Expand all
30 FileBrowserPrivateAddMountFunction(); 30 FileBrowserPrivateAddMountFunction();
31 31
32 protected: 32 protected:
33 virtual ~FileBrowserPrivateAddMountFunction(); 33 virtual ~FileBrowserPrivateAddMountFunction();
34 34
35 // AsyncExtensionFunction overrides. 35 // AsyncExtensionFunction overrides.
36 virtual bool RunImpl() OVERRIDE; 36 virtual bool RunImpl() OVERRIDE;
37 37
38 private: 38 private:
39 // A callback method to handle the result of MarkCacheAsMounted. 39 // A callback method to handle the result of MarkCacheAsMounted.
40 void OnMountedStateSet(const std::string& mount_type, 40 void OnMountedStateSet(const base::FilePath::StringType& file_name,
41 const base::FilePath::StringType& file_name,
42 drive::FileError error, 41 drive::FileError error,
43 const base::FilePath& file_path); 42 const base::FilePath& file_path);
44 }; 43 };
45 44
46 // Implements chrome.fileBrowserPrivate.removeMount method. 45 // Implements chrome.fileBrowserPrivate.removeMount method.
47 // Unmounts selected device. Expects mount point path as an argument. 46 // Unmounts selected device. Expects mount point path as an argument.
48 class FileBrowserPrivateRemoveMountFunction 47 class FileBrowserPrivateRemoveMountFunction
49 : public LoggedAsyncExtensionFunction { 48 : public LoggedAsyncExtensionFunction {
50 public: 49 public:
51 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.removeMount", 50 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.removeMount",
(...skipping 25 matching lines...) Expand all
77 protected: 76 protected:
78 virtual ~FileBrowserPrivateGetMountPointsFunction(); 77 virtual ~FileBrowserPrivateGetMountPointsFunction();
79 78
80 // AsyncExtensionFunction overrides. 79 // AsyncExtensionFunction overrides.
81 virtual bool RunImpl() OVERRIDE; 80 virtual bool RunImpl() OVERRIDE;
82 }; 81 };
83 82
84 } // namespace extensions 83 } // namespace extensions
85 84
86 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MOUNT_H_ 85 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MOUNT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698