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

Side by Side Diff: chrome/browser/media_galleries/media_file_system_context.h

Issue 185393012: Change media galleries to external file system type to add toURL support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_
7 7
8 // Manages isolated filesystem namespaces for media file systems. 8 // Manages isolated filesystem namespaces for media file systems.
9 9
10 #include <string> 10 #include <string>
11 11
12 namespace base { 12 namespace base {
13 class FilePath; 13 class FilePath;
14 } 14 }
15 15
16 class MediaFileSystemRegistry; 16 class MediaFileSystemRegistry;
17 17
18 class MediaFileSystemContext { 18 class MediaFileSystemContext {
19 public: 19 public:
20 virtual ~MediaFileSystemContext() {} 20 virtual ~MediaFileSystemContext() {}
21 21
22 // Register a new media file system for |path| and return the corresponding 22 // Register a new media file system for |path| as |fs_name|.
23 // filesystem ID. 23 virtual bool RegisterFileSystem(const std::string& device_id,
24 virtual std::string RegisterFileSystem( 24 const std::string& fs_name,
25 const std::string& device_id, const base::FilePath& path) = 0; 25 const base::FilePath& path) = 0;
26 26
27 // Revoke the passed |fsid|. 27 // Revoke the passed |fs_name|.
28 virtual void RevokeFileSystem(const std::string& fsid) = 0; 28 virtual void RevokeFileSystem(const std::string& fs_name) = 0;
29
30 // Return the mount point root for the given |fs_name|. Returns an empty path
31 // if |fs_name| is not valid.
32 virtual base::FilePath GetRegisteredPath(
33 const std::string& fs_name) const = 0;
29 }; 34 };
30 35
31 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_ 36 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698