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

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

Issue 2335213004: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_drive.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 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 <stddef.h> 10 #include <stddef.h>
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // entry definitions. 163 // entry definitions.
164 void OnEntryDefinitionList( 164 void OnEntryDefinitionList(
165 std::unique_ptr<drive::MetadataSearchResultVector> 165 std::unique_ptr<drive::MetadataSearchResultVector>
166 search_result_info_list, 166 search_result_info_list,
167 std::unique_ptr<file_manager::util::EntryDefinitionList> 167 std::unique_ptr<file_manager::util::EntryDefinitionList>
168 entry_definition_list); 168 entry_definition_list);
169 }; 169 };
170 170
171 // Implements the chrome.fileManagerPrivate.getDriveConnectionState method. 171 // Implements the chrome.fileManagerPrivate.getDriveConnectionState method.
172 class FileManagerPrivateGetDriveConnectionStateFunction 172 class FileManagerPrivateGetDriveConnectionStateFunction
173 : public ChromeSyncExtensionFunction { 173 : public UIThreadExtensionFunction {
174 public: 174 public:
175 DECLARE_EXTENSION_FUNCTION( 175 DECLARE_EXTENSION_FUNCTION(
176 "fileManagerPrivate.getDriveConnectionState", 176 "fileManagerPrivate.getDriveConnectionState",
177 FILEMANAGERPRIVATE_GETDRIVECONNECTIONSTATE); 177 FILEMANAGERPRIVATE_GETDRIVECONNECTIONSTATE);
178 178
179 protected: 179 protected:
180 ~FileManagerPrivateGetDriveConnectionStateFunction() override {} 180 ~FileManagerPrivateGetDriveConnectionStateFunction() override {}
181 181
182 bool RunSync() override; 182 ResponseAction Run() override;
183 }; 183 };
184 184
185 // Implements the chrome.fileManagerPrivate.requestAccessToken method. 185 // Implements the chrome.fileManagerPrivate.requestAccessToken method.
186 class FileManagerPrivateRequestAccessTokenFunction 186 class FileManagerPrivateRequestAccessTokenFunction
187 : public LoggedAsyncExtensionFunction { 187 : public LoggedAsyncExtensionFunction {
188 public: 188 public:
189 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.requestAccessToken", 189 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.requestAccessToken",
190 FILEMANAGERPRIVATE_REQUESTACCESSTOKEN) 190 FILEMANAGERPRIVATE_REQUESTACCESSTOKEN)
191 191
192 protected: 192 protected:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 const std::string& access_token); 258 const std::string& access_token);
259 259
260 private: 260 private:
261 GURL download_url_; 261 GURL download_url_;
262 std::unique_ptr<google_apis::AuthService> auth_service_; 262 std::unique_ptr<google_apis::AuthService> auth_service_;
263 }; 263 };
264 264
265 } // namespace extensions 265 } // namespace extensions
266 266
267 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_ 267 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698