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

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

Issue 1142593002: Generalize volume configuration over all volumes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the configure test. Created 5 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_misc.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 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 miscellaneous API functions, which don't belong to 5 // This file provides miscellaneous API functions, which don't belong to
6 // other files. 6 // other files.
7 7
8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
10 10
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 FILEMANAGERPRIVATE_ADDPROVIDEDFILESYSTEM) 218 FILEMANAGERPRIVATE_ADDPROVIDEDFILESYSTEM)
219 protected: 219 protected:
220 ~FileManagerPrivateAddProvidedFileSystemFunction() override {} 220 ~FileManagerPrivateAddProvidedFileSystemFunction() override {}
221 221
222 private: 222 private:
223 ResponseAction Run() override; 223 ResponseAction Run() override;
224 const ChromeExtensionFunctionDetails chrome_details_; 224 const ChromeExtensionFunctionDetails chrome_details_;
225 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateAddProvidedFileSystemFunction); 225 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateAddProvidedFileSystemFunction);
226 }; 226 };
227 227
228 // Implements the chrome.fileManagerPrivate.addProvidedFileSystem method. 228 // Implements the chrome.fileManagerPrivate.configureVolume method.
229 class FileManagerPrivateConfigureProvidedFileSystemFunction 229 class FileManagerPrivateConfigureVolumeFunction
230 : public UIThreadExtensionFunction { 230 : public UIThreadExtensionFunction {
231 public: 231 public:
232 FileManagerPrivateConfigureProvidedFileSystemFunction(); 232 FileManagerPrivateConfigureVolumeFunction();
233 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.configureProvidedFileSystem", 233 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.configureVolume",
234 FILEMANAGERPRIVATE_CONFIGUREPROVIDEDFILESYSTEM) 234 FILEMANAGERPRIVATE_CONFIGUREVOLUME)
235 protected: 235 protected:
236 ~FileManagerPrivateConfigureProvidedFileSystemFunction() override {} 236 ~FileManagerPrivateConfigureVolumeFunction() override {}
237 237
238 private: 238 private:
239 ResponseAction Run() override; 239 ResponseAction Run() override;
240 void OnCompleted(base::File::Error result); 240 void OnCompleted(base::File::Error result);
241 241
242 const ChromeExtensionFunctionDetails chrome_details_; 242 const ChromeExtensionFunctionDetails chrome_details_;
243 DISALLOW_COPY_AND_ASSIGN( 243 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateConfigureVolumeFunction);
244 FileManagerPrivateConfigureProvidedFileSystemFunction);
245 }; 244 };
246 245
247 } // namespace extensions 246 } // namespace extensions
248 247
249 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 248 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698