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

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

Issue 550863003: Rename fileBrowserPrivate to fileManagerPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 <vector> 10 #include <vector>
11 11
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "chrome/browser/chromeos/drive/file_errors.h" 13 #include "chrome/browser/chromeos/drive/file_errors.h"
14 #include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h" 14 #include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h"
15 15
16 namespace ui { 16 namespace ui {
17 struct SelectedFileInfo; 17 struct SelectedFileInfo;
18 } 18 }
19 19
20 namespace extensions { 20 namespace extensions {
21 21
22 // Implements chrome.fileBrowserPrivate.addMount method. 22 // Implements chrome.fileManagerPrivate.addMount method.
23 // Mounts removable devices and archive files. 23 // Mounts removable devices and archive files.
24 class FileBrowserPrivateAddMountFunction : public LoggedAsyncExtensionFunction { 24 class FileManagerPrivateAddMountFunction : public LoggedAsyncExtensionFunction {
25 public: 25 public:
26 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.addMount", 26 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.addMount",
27 FILEBROWSERPRIVATE_ADDMOUNT) 27 FILEMANAGERPRIVATE_ADDMOUNT)
28 28
29 protected: 29 protected:
30 virtual ~FileBrowserPrivateAddMountFunction() {} 30 virtual ~FileManagerPrivateAddMountFunction() {}
31 31
32 // AsyncExtensionFunction overrides. 32 // AsyncExtensionFunction overrides.
33 virtual bool RunAsync() OVERRIDE; 33 virtual bool RunAsync() OVERRIDE;
34 34
35 private: 35 private:
36 // Part of Run(). Called after MarkCacheFielAsMounted for Drive File System. 36 // Part of Run(). Called after MarkCacheFielAsMounted for Drive File System.
37 // (or directly called from RunAsync() for other file system). 37 // (or directly called from RunAsync() for other file system).
38 void RunAfterMarkCacheFileAsMounted(const base::FilePath& display_name, 38 void RunAfterMarkCacheFileAsMounted(const base::FilePath& display_name,
39 drive::FileError error, 39 drive::FileError error,
40 const base::FilePath& file_path); 40 const base::FilePath& file_path);
41 }; 41 };
42 42
43 // Implements chrome.fileBrowserPrivate.removeMount method. 43 // Implements chrome.fileManagerPrivate.removeMount method.
44 // Unmounts selected volume. Expects volume id as an argument. 44 // Unmounts selected volume. Expects volume id as an argument.
45 class FileBrowserPrivateRemoveMountFunction 45 class FileManagerPrivateRemoveMountFunction
46 : public LoggedAsyncExtensionFunction { 46 : public LoggedAsyncExtensionFunction {
47 public: 47 public:
48 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.removeMount", 48 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.removeMount",
49 FILEBROWSERPRIVATE_REMOVEMOUNT) 49 FILEMANAGERPRIVATE_REMOVEMOUNT)
50 50
51 protected: 51 protected:
52 virtual ~FileBrowserPrivateRemoveMountFunction() {} 52 virtual ~FileManagerPrivateRemoveMountFunction() {}
53 53
54 // AsyncExtensionFunction overrides. 54 // AsyncExtensionFunction overrides.
55 virtual bool RunAsync() OVERRIDE; 55 virtual bool RunAsync() OVERRIDE;
56 }; 56 };
57 57
58 // Implements chrome.fileBrowserPrivate.getVolumeMetadataList method. 58 // Implements chrome.fileManagerPrivate.getVolumeMetadataList method.
59 class FileBrowserPrivateGetVolumeMetadataListFunction 59 class FileManagerPrivateGetVolumeMetadataListFunction
60 : public LoggedAsyncExtensionFunction { 60 : public LoggedAsyncExtensionFunction {
61 public: 61 public:
62 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.getVolumeMetadataList", 62 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.getVolumeMetadataList",
63 FILEBROWSERPRIVATE_GETVOLUMEMETADATALIST) 63 FILEMANAGERPRIVATE_GETVOLUMEMETADATALIST)
64 64
65 protected: 65 protected:
66 virtual ~FileBrowserPrivateGetVolumeMetadataListFunction() {} 66 virtual ~FileManagerPrivateGetVolumeMetadataListFunction() {}
67 67
68 // AsyncExtensionFunction overrides. 68 // AsyncExtensionFunction overrides.
69 virtual bool RunAsync() OVERRIDE; 69 virtual bool RunAsync() OVERRIDE;
70 }; 70 };
71 71
72 } // namespace extensions 72 } // namespace extensions
73 73
74 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MOUNT_H_ 74 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MOUNT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698