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

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

Issue 1089193002: Add chrome.fileManagerPrivate.getProvidingExtensions(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 8 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
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
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_
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