OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 // Utilities for ARC documents provider file system. | |
6 | |
7 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_UTIL_H_ | |
8 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_UTIL_H_ | |
9 | |
10 #include <string> | |
11 | |
12 #include "base/files/file_path.h" | |
13 | |
14 namespace storage { | |
15 class FileSystemURL; | |
16 } // namespace storage | |
17 | |
18 namespace arc { | |
19 | |
20 // The name of ARC documents provider file system mount point. | |
21 constexpr char kDocumentsProviderMountPointName[] = "arc-documents-provider"; | |
Luis Héctor Chávez
2016/12/14 20:53:51
The convention is to declare string constants as "
Shuhei Takahashi
2016/12/15 02:37:55
I think it's rather C++03 convention, but I'm fine
| |
22 | |
23 // The path of ARC documents provider file system mount point. | |
24 constexpr base::FilePath::CharType kDocumentsProviderMountPointPath[] = | |
25 "/special/arc-documents-provider"; | |
26 | |
27 // Parses a FileSystemURL pointing to ARC documents provider file system. | |
28 // On success, true is returned. All arguments must not be nullptr. | |
29 bool ParseDocumentsProviderUrl(const storage::FileSystemURL& url, | |
30 std::string* authority, | |
31 std::string* root_document_id, | |
32 base::FilePath* path); | |
33 | |
34 } // namespace arc | |
35 | |
36 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_UTIL_H_ | |
OLD | NEW |