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

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

Issue 1829783002: [Extensions] Convert APIs to use movable types [5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 bool RunAsync() override; 55 bool RunAsync() override;
56 56
57 private: 57 private:
58 void CompleteGetEntryProperties( 58 void CompleteGetEntryProperties(
59 size_t index, 59 size_t index,
60 const storage::FileSystemURL& url, 60 const storage::FileSystemURL& url,
61 scoped_ptr<api::file_manager_private::EntryProperties> properties, 61 scoped_ptr<api::file_manager_private::EntryProperties> properties,
62 base::File::Error error); 62 base::File::Error error);
63 63
64 size_t processed_count_; 64 size_t processed_count_;
65 std::vector<linked_ptr<api::file_manager_private::EntryProperties> > 65 std::vector<api::file_manager_private::EntryProperties> properties_list_;
66 properties_list_;
67 }; 66 };
68 67
69 // Implements the chrome.fileManagerPrivate.pinDriveFile method. 68 // Implements the chrome.fileManagerPrivate.pinDriveFile method.
70 class FileManagerPrivateInternalPinDriveFileFunction 69 class FileManagerPrivateInternalPinDriveFileFunction
71 : public LoggedAsyncExtensionFunction { 70 : public LoggedAsyncExtensionFunction {
72 public: 71 public:
73 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.pinDriveFile", 72 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.pinDriveFile",
74 FILEMANAGERPRIVATEINTERNAL_PINDRIVEFILE) 73 FILEMANAGERPRIVATEINTERNAL_PINDRIVEFILE)
75 74
76 protected: 75 protected:
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 const std::string& access_token); 255 const std::string& access_token);
257 256
258 private: 257 private:
259 GURL download_url_; 258 GURL download_url_;
260 scoped_ptr<google_apis::AuthService> auth_service_; 259 scoped_ptr<google_apis::AuthService> auth_service_;
261 }; 260 };
262 261
263 } // namespace extensions 262 } // namespace extensions
264 263
265 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_ 264 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698