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

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

Issue 23740004: Files.app: Let the file browser private tasks APIs use the auto-generated helper classes. (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_TASKS_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_ 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 11 matching lines...) Expand all
22 22
23 namespace extensions { 23 namespace extensions {
24 24
25 // Implements the chrome.fileBrowserPrivate.executeTask method. 25 // Implements the chrome.fileBrowserPrivate.executeTask method.
26 class FileBrowserPrivateExecuteTaskFunction 26 class FileBrowserPrivateExecuteTaskFunction
27 : public LoggedAsyncExtensionFunction { 27 : public LoggedAsyncExtensionFunction {
28 public: 28 public:
29 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.executeTask", 29 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.executeTask",
30 FILEBROWSERPRIVATE_EXECUTETASK) 30 FILEBROWSERPRIVATE_EXECUTETASK)
31 31
32 FileBrowserPrivateExecuteTaskFunction();
33
34 protected: 32 protected:
35 virtual ~FileBrowserPrivateExecuteTaskFunction(); 33 virtual ~FileBrowserPrivateExecuteTaskFunction() {}
36 34
37 // AsyncExtensionFunction overrides. 35 // AsyncExtensionFunction overrides.
38 virtual bool RunImpl() OVERRIDE; 36 virtual bool RunImpl() OVERRIDE;
39 37
40 void OnTaskExecuted(bool success); 38 void OnTaskExecuted(bool success);
41 }; 39 };
42 40
43 // Implements the chrome.fileBrowserPrivate.getFileTasks method. 41 // Implements the chrome.fileBrowserPrivate.getFileTasks method.
44 class FileBrowserPrivateGetFileTasksFunction 42 class FileBrowserPrivateGetFileTasksFunction
45 : public LoggedAsyncExtensionFunction { 43 : public LoggedAsyncExtensionFunction {
46 public: 44 public:
47 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.getFileTasks", 45 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.getFileTasks",
48 FILEBROWSERPRIVATE_GETFILETASKS) 46 FILEBROWSERPRIVATE_GETFILETASKS)
49 47
50 FileBrowserPrivateGetFileTasksFunction();
51
52 protected: 48 protected:
53 virtual ~FileBrowserPrivateGetFileTasksFunction(); 49 virtual ~FileBrowserPrivateGetFileTasksFunction() {}
54 50
55 // AsyncExtensionFunction overrides. 51 // AsyncExtensionFunction overrides.
56 virtual bool RunImpl() OVERRIDE; 52 virtual bool RunImpl() OVERRIDE;
57 }; 53 };
58 54
59 // Implements the chrome.fileBrowserPrivate.setDefaultTask method. 55 // Implements the chrome.fileBrowserPrivate.setDefaultTask method.
60 class FileBrowserPrivateSetDefaultTaskFunction : public SyncExtensionFunction { 56 class FileBrowserPrivateSetDefaultTaskFunction : public SyncExtensionFunction {
61 public: 57 public:
62 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.setDefaultTask", 58 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.setDefaultTask",
63 FILEBROWSERPRIVATE_SETDEFAULTTASK) 59 FILEBROWSERPRIVATE_SETDEFAULTTASK)
64 60
65 FileBrowserPrivateSetDefaultTaskFunction();
66
67 protected: 61 protected:
68 virtual ~FileBrowserPrivateSetDefaultTaskFunction(); 62 virtual ~FileBrowserPrivateSetDefaultTaskFunction() {}
69 63
70 // SyncExtensionFunction overrides. 64 // SyncExtensionFunction overrides.
71 virtual bool RunImpl() OVERRIDE; 65 virtual bool RunImpl() OVERRIDE;
72 }; 66 };
73 67
74 } // namespace extensions 68 } // namespace extensions
75 69
76 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_ 70 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_TASKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698