| 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 <stddef.h> | 10 #include <stddef.h> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |