| 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
|
|
|