blob: e7986ab6f04a57fbe3f496fc131c25dbada052dc [file] [log] [blame]
Stuart Langley22cca242018-05-18 05:59:121// 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
12namespace drive {
13namespace internal {
14
15class 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.
20FileError 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.
27FileError 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_