1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_
8 // Manages isolated filesystem namespaces for media file systems.
16 class MediaFileSystemRegistry
;
18 class MediaFileSystemContext
{
20 virtual ~MediaFileSystemContext() {}
22 // Register a new media file system for |path| and return the corresponding
24 virtual std::string
RegisterFileSystem(
25 const std::string
& device_id
, const base::FilePath
& path
) = 0;
27 // Revoke the passed |fsid|.
28 virtual void RevokeFileSystem(const std::string
& fsid
) = 0;
31 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_