OLD | NEW |
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 |
11 #include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h" | 11 #include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h" |
| 12 #include "chrome/browser/extensions/chrome_extension_function.h" |
| 13 #include "chrome/browser/extensions/chrome_extension_function_details.h" |
12 #include "chrome/common/extensions/webstore_install_result.h" | 14 #include "chrome/common/extensions/webstore_install_result.h" |
13 #include "google_apis/drive/drive_api_error_codes.h" | 15 #include "google_apis/drive/drive_api_error_codes.h" |
14 | 16 |
15 namespace google_apis { | 17 namespace google_apis { |
16 class AuthServiceInterface; | 18 class AuthServiceInterface; |
17 } | 19 } |
18 | 20 |
19 namespace extensions { | 21 namespace extensions { |
20 | 22 |
21 // Implements the chrome.fileManagerPrivate.logoutUserForReauthentication | 23 // Implements the chrome.fileManagerPrivate.logoutUserForReauthentication |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.isPiexLoaderEnabled", | 191 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.isPiexLoaderEnabled", |
190 FILEMANAGERPRIVATE_ISPIEXLOADERENABLED) | 192 FILEMANAGERPRIVATE_ISPIEXLOADERENABLED) |
191 protected: | 193 protected: |
192 ~FileManagerPrivateIsPiexLoaderEnabledFunction() override {} | 194 ~FileManagerPrivateIsPiexLoaderEnabledFunction() override {} |
193 | 195 |
194 private: | 196 private: |
195 ResponseAction Run() override; | 197 ResponseAction Run() override; |
196 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateIsPiexLoaderEnabledFunction); | 198 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateIsPiexLoaderEnabledFunction); |
197 }; | 199 }; |
198 | 200 |
| 201 // Implements the chrome.fileManagerPrivate.getProvidingExtensions method. |
| 202 class FileManagerPrivateGetProvidingExtensionsFunction |
| 203 : public UIThreadExtensionFunction { |
| 204 public: |
| 205 FileManagerPrivateGetProvidingExtensionsFunction(); |
| 206 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.getProvidingExtensions", |
| 207 FILEMANAGERPRIVATE_GETPROVIDINGEXTENSIONS) |
| 208 protected: |
| 209 ~FileManagerPrivateGetProvidingExtensionsFunction() override {} |
| 210 |
| 211 private: |
| 212 ResponseAction Run() override; |
| 213 const ChromeExtensionFunctionDetails chrome_details_; |
| 214 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateGetProvidingExtensionsFunction); |
| 215 }; |
199 } // namespace extensions | 216 } // namespace extensions |
200 | 217 |
201 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ | 218 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |
OLD | NEW |