Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5434)

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h

Issue 2572683004: mediaview: Introduce ArcDocumentsProviderRoot. (Closed)
Patch Set: Constructors are called on the UI thread. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..1d4f263da7e0e57088b24ac0e2c51fdce6f07333
--- /dev/null
+++ b/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h
@@ -0,0 +1,35 @@
+// 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.
+extern const char kDocumentsProviderMountPointName[];
+
+// The path of ARC documents provider file system mount point.
+extern const base::FilePath::CharType kDocumentsProviderMountPointPath[];
+
+// 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_

Powered by Google App Engine
This is Rietveld 408576698