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/common/extensions/webstore_install_result.h" | 12 #include "chrome/common/extensions/webstore_install_result.h" |
13 #include "google_apis/drive/gdata_errorcode.h" | 13 #include "google_apis/drive/drive_api_error_codes.h" |
14 | 14 |
15 namespace google_apis { | 15 namespace google_apis { |
16 class AuthServiceInterface; | 16 class AuthServiceInterface; |
17 } | 17 } |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 // Implements the chrome.fileManagerPrivate.logoutUserForReauthentication | 21 // Implements the chrome.fileManagerPrivate.logoutUserForReauthentication |
22 // method. | 22 // method. |
23 class FileManagerPrivateLogoutUserForReauthenticationFunction | 23 class FileManagerPrivateLogoutUserForReauthenticationFunction |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 FileManagerPrivateRequestWebStoreAccessTokenFunction(); | 126 FileManagerPrivateRequestWebStoreAccessTokenFunction(); |
127 | 127 |
128 protected: | 128 protected: |
129 ~FileManagerPrivateRequestWebStoreAccessTokenFunction() override; | 129 ~FileManagerPrivateRequestWebStoreAccessTokenFunction() override; |
130 bool RunAsync() override; | 130 bool RunAsync() override; |
131 | 131 |
132 private: | 132 private: |
133 scoped_ptr<google_apis::AuthServiceInterface> auth_service_; | 133 scoped_ptr<google_apis::AuthServiceInterface> auth_service_; |
134 | 134 |
135 void OnAccessTokenFetched(google_apis::GDataErrorCode code, | 135 void OnAccessTokenFetched(google_apis::DriveApiErrorCode code, |
136 const std::string& access_token); | 136 const std::string& access_token); |
137 | 137 |
138 }; | 138 }; |
139 | 139 |
140 class FileManagerPrivateGetProfilesFunction | 140 class FileManagerPrivateGetProfilesFunction |
141 : public ChromeSyncExtensionFunction { | 141 : public ChromeSyncExtensionFunction { |
142 public: | 142 public: |
143 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.getProfiles", | 143 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.getProfiles", |
144 FILEMANAGERPRIVATE_GETPROFILES); | 144 FILEMANAGERPRIVATE_GETPROFILES); |
145 | 145 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 // AsyncExtensionFunction overrides. | 191 // AsyncExtensionFunction overrides. |
192 bool RunAsync() override; | 192 bool RunAsync() override; |
193 | 193 |
194 void OnGetMimeType(const std::string& mimeType); | 194 void OnGetMimeType(const std::string& mimeType); |
195 }; | 195 }; |
196 | 196 |
197 } // namespace extensions | 197 } // namespace extensions |
198 | 198 |
199 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ | 199 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |
OLD | NEW |