OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef COMPONENTS_DRIVE_JOB_SCHEDULER_H_ | 5 #ifndef COMPONENTS_DRIVE_JOB_SCHEDULER_H_ |
6 #define COMPONENTS_DRIVE_JOB_SCHEDULER_H_ | 6 #define COMPONENTS_DRIVE_JOB_SCHEDULER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // |callback| must not be null. | 88 // |callback| must not be null. |
89 void GetAllTeamDriveList(const google_apis::TeamDriveListCallback& callback); | 89 void GetAllTeamDriveList(const google_apis::TeamDriveListCallback& callback); |
90 | 90 |
91 // Adds a GetAllFileList operation to the queue. | 91 // Adds a GetAllFileList operation to the queue. |
92 // |callback| must not be null. | 92 // |callback| must not be null. |
93 void GetAllFileList(const google_apis::FileListCallback& callback); | 93 void GetAllFileList(const google_apis::FileListCallback& callback); |
94 | 94 |
95 // Adds a GetFileListInDirectory operation to the queue. | 95 // Adds a GetFileListInDirectory operation to the queue. |
96 // |callback| must not be null. | 96 // |callback| must not be null. |
97 void GetFileListInDirectory(const std::string& directory_resource_id, | 97 void GetFileListInDirectory(const std::string& directory_resource_id, |
| 98 const std::string& team_drive_id, |
98 const google_apis::FileListCallback& callback); | 99 const google_apis::FileListCallback& callback); |
99 | 100 |
100 // Adds a Search operation to the queue. | 101 // Adds a Search operation to the queue. |
101 // |callback| must not be null. | 102 // |callback| must not be null. |
102 void Search(const std::string& search_query, | 103 void Search(const std::string& search_query, |
103 const google_apis::FileListCallback& callback); | 104 const google_apis::FileListCallback& callback); |
104 | 105 |
105 // Adds a GetChangeList operation to the queue. | 106 // Adds a GetChangeList operation to the queue. |
106 // |callback| must not be null. | 107 // |callback| must not be null. |
107 void GetChangeList(int64_t start_changestamp, | 108 void GetChangeList(int64_t start_changestamp, |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 417 |
417 // Note: This should remain the last member so it'll be destroyed and | 418 // Note: This should remain the last member so it'll be destroyed and |
418 // invalidate its weak pointers before any other members are destroyed. | 419 // invalidate its weak pointers before any other members are destroyed. |
419 base::WeakPtrFactory<JobScheduler> weak_ptr_factory_; | 420 base::WeakPtrFactory<JobScheduler> weak_ptr_factory_; |
420 DISALLOW_COPY_AND_ASSIGN(JobScheduler); | 421 DISALLOW_COPY_AND_ASSIGN(JobScheduler); |
421 }; | 422 }; |
422 | 423 |
423 } // namespace drive | 424 } // namespace drive |
424 | 425 |
425 #endif // COMPONENTS_DRIVE_JOB_SCHEDULER_H_ | 426 #endif // COMPONENTS_DRIVE_JOB_SCHEDULER_H_ |
OLD | NEW |