Stuart Langley | 22cca24 | 2018-05-18 05:59:12 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_DRIVE_CHROMEOS_DRIVE_FILE_UTIL_H_ |
| 6 | #define COMPONENTS_DRIVE_CHROMEOS_DRIVE_FILE_UTIL_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include "components/drive/file_errors.h" |
| 11 | |
| 12 | namespace drive { |
| 13 | namespace internal { |
| 14 | |
| 15 | class ResourceMetadata; |
| 16 | |
| 17 | // Obtains the start page token for the supplied |team_drive_id|. If the |
| 18 | // |team_drive_id| equals kTeamDriveIdDefaultCorpus then it will retrieve |
| 19 | // the start page token just for the users default corpus. |
| 20 | FileError GetStartPageToken(internal::ResourceMetadata* resource_metadata, |
| 21 | const std::string& team_drive_id, |
| 22 | std::string* out_value); |
| 23 | |
| 24 | // Sets the start page token for the supplied |team_drive_id|. If the |
| 25 | // |team_drive_id| equals kTeamDriveIdDefaultCorpus then it will set |
| 26 | // the start page token just for the users default corpus. |
| 27 | FileError SetStartPageToken(internal::ResourceMetadata* resource_metadata, |
| 28 | const std::string& team_drive_id, |
| 29 | const std::string& value); |
| 30 | |
| 31 | } // namespace internal |
| 32 | } // namespace drive |
| 33 | |
| 34 | #endif // COMPONENTS_DRIVE_CHROMEOS_DRIVE_FILE_UTIL_H_ |