| OLD | NEW |
| 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> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 virtual std::string RegisterFileSystemForMassStorage( | 29 virtual std::string RegisterFileSystemForMassStorage( |
| 30 const std::string& device_id, const base::FilePath& path) = 0; | 30 const std::string& device_id, const base::FilePath& path) = 0; |
| 31 | 31 |
| 32 // Registers and returns the file system id for the MTP or PTP device | 32 // Registers and returns the file system id for the MTP or PTP device |
| 33 // specified by |device_id| and |path|. Updates |entry| with the corresponding | 33 // specified by |device_id| and |path|. Updates |entry| with the corresponding |
| 34 // ScopedMTPDeviceMapEntry object. | 34 // ScopedMTPDeviceMapEntry object. |
| 35 virtual std::string RegisterFileSystemForMTPDevice( | 35 virtual std::string RegisterFileSystemForMTPDevice( |
| 36 const std::string& device_id, const base::FilePath& path, | 36 const std::string& device_id, const base::FilePath& path, |
| 37 scoped_refptr<ScopedMTPDeviceMapEntry>* entry) = 0; | 37 scoped_refptr<ScopedMTPDeviceMapEntry>* entry) = 0; |
| 38 | 38 |
| 39 // Register a Picasa filesystem. |path| refers to the absolute path of the |
| 40 // Picasa db3 database. |
| 41 virtual std::string RegisterFileSystemForPicasa( |
| 42 const std::string& device_id, const base::FilePath& path) = 0; |
| 43 |
| 39 // Revoke the passed |fsid|. | 44 // Revoke the passed |fsid|. |
| 40 virtual void RevokeFileSystem(const std::string& fsid) = 0; | 45 virtual void RevokeFileSystem(const std::string& fsid) = 0; |
| 41 | 46 |
| 42 // The MediaFileSystemRegistry that owns this context. | 47 // The MediaFileSystemRegistry that owns this context. |
| 43 virtual MediaFileSystemRegistry* GetMediaFileSystemRegistry() = 0; | 48 virtual MediaFileSystemRegistry* GetMediaFileSystemRegistry() = 0; |
| 44 }; | 49 }; |
| 45 | 50 |
| 46 } // namespace | 51 } // namespace |
| 47 | 52 |
| 48 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_ | 53 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_CONTEXT_H_ |
| OLD | NEW |