Index: chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h |
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h b/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..07676343ed73aa3662714971567cc1bccc3cf4eb |
--- /dev/null |
+++ b/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+// |
+// Utilities for ARC documents provider file system. |
+ |
+#ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_UTIL_H_ |
+#define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_UTIL_H_ |
+ |
+#include <string> |
+ |
+#include "base/files/file_path.h" |
+ |
+namespace storage { |
+class FileSystemURL; |
+} // namespace storage |
+ |
+namespace arc { |
+ |
+// The name of ARC documents provider file system mount point. |
+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
|
+ |
+// The path of ARC documents provider file system mount point. |
+constexpr base::FilePath::CharType kDocumentsProviderMountPointPath[] = |
+ "/special/arc-documents-provider"; |
+ |
+// Parses a FileSystemURL pointing to ARC documents provider file system. |
+// On success, true is returned. All arguments must not be nullptr. |
+bool ParseDocumentsProviderUrl(const storage::FileSystemURL& url, |
+ std::string* authority, |
+ std::string* root_document_id, |
+ base::FilePath* path); |
+ |
+} // namespace arc |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_UTIL_H_ |