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

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_media_view_util.cc

Issue 2580303002: mediaview: Mount ARC documents provider file system volumes. (Closed)
Patch Set: Consistently use GetGlobalService(). Created 3 years, 11 months 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_media_view_util.cc
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_media_view_util.cc b/chrome/browser/chromeos/arc/fileapi/arc_media_view_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..261516ff7c96e4476b231a536181b4965570ca35
--- /dev/null
+++ b/chrome/browser/chromeos/arc/fileapi/arc_media_view_util.cc
@@ -0,0 +1,29 @@
+// Copyright 2017 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.
+
+#include "chrome/browser/chromeos/arc/fileapi/arc_media_view_util.h"
+
+namespace arc {
+
+namespace {
+
+constexpr char kMediaViewVolumeIdPrefix[] = "media_view:";
+
+} // namespace
+
+const base::Feature kMediaViewFeature{"ArcMediaView",
+ base::FEATURE_DISABLED_BY_DEFAULT};
+
+const char kMediaDocumentsProviderAuthority[] =
+ "com.android.providers.media.documents";
+
+const char kImagesRootDocumentId[] = "images_root";
+const char kVideosRootDocumentId[] = "videos_root";
+const char kAudioRootDocumentId[] = "audio_root";
+
+std::string GetMediaViewVolumeId(const std::string& root_document_id) {
+ return std::string(kMediaViewVolumeIdPrefix) + root_document_id;
+}
+
+} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698