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 Drive specific API functions. | 5 // This file provides Drive specific API functions. |
6 | 6 |
7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_ |
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_ | 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_ |
9 | 9 |
10 #include "chrome/browser/chromeos/drive/file_errors.h" | 10 #include "chrome/browser/chromeos/drive/file_errors.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 class FileBrowserPrivateGetDriveConnectionStateFunction | 178 class FileBrowserPrivateGetDriveConnectionStateFunction |
179 : public ChromeSyncExtensionFunction { | 179 : public ChromeSyncExtensionFunction { |
180 public: | 180 public: |
181 DECLARE_EXTENSION_FUNCTION( | 181 DECLARE_EXTENSION_FUNCTION( |
182 "fileBrowserPrivate.getDriveConnectionState", | 182 "fileBrowserPrivate.getDriveConnectionState", |
183 FILEBROWSERPRIVATE_GETDRIVECONNECTIONSTATE); | 183 FILEBROWSERPRIVATE_GETDRIVECONNECTIONSTATE); |
184 | 184 |
185 protected: | 185 protected: |
186 virtual ~FileBrowserPrivateGetDriveConnectionStateFunction() {} | 186 virtual ~FileBrowserPrivateGetDriveConnectionStateFunction() {} |
187 | 187 |
188 virtual bool RunImpl() OVERRIDE; | 188 virtual bool RunSync() OVERRIDE; |
189 }; | 189 }; |
190 | 190 |
191 // Implements the chrome.fileBrowserPrivate.requestAccessToken method. | 191 // Implements the chrome.fileBrowserPrivate.requestAccessToken method. |
192 class FileBrowserPrivateRequestAccessTokenFunction | 192 class FileBrowserPrivateRequestAccessTokenFunction |
193 : public LoggedAsyncExtensionFunction { | 193 : public LoggedAsyncExtensionFunction { |
194 public: | 194 public: |
195 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.requestAccessToken", | 195 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.requestAccessToken", |
196 FILEBROWSERPRIVATE_REQUESTACCESSTOKEN) | 196 FILEBROWSERPRIVATE_REQUESTACCESSTOKEN) |
197 | 197 |
198 protected: | 198 protected: |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 virtual bool RunImpl() OVERRIDE; | 236 virtual bool RunImpl() OVERRIDE; |
237 | 237 |
238 private: | 238 private: |
239 // Called back after the drive file system operation is finished. | 239 // Called back after the drive file system operation is finished. |
240 void OnAddPermission(drive::FileError error); | 240 void OnAddPermission(drive::FileError error); |
241 }; | 241 }; |
242 | 242 |
243 } // namespace extensions | 243 } // namespace extensions |
244 | 244 |
245 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_ | 245 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_ |
OLD | NEW |