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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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_GALLERY_MEDIA_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_FILE_SYSTEM_CONTEXT_H_
6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_FILE_SYSTEM_CONTEXT_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERY_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 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "chrome/browser/media_gallery/scoped_mtp_device_map_entry.h" 13 #include "chrome/browser/media_gallery/scoped_mtp_device_map_entry.h"
14 #include "webkit/fileapi/media/mtp_device_file_system_config.h" 14 #include "webkit/fileapi/media/mtp_device_file_system_config.h"
15 15
16 namespace base {
16 class FilePath; 17 class FilePath;
18 }
17 19
18 namespace chrome { 20 namespace chrome {
19 21
20 class MediaFileSystemRegistry; 22 class MediaFileSystemRegistry;
21 23
22 class MediaFileSystemContext { 24 class MediaFileSystemContext {
23 public: 25 public:
24 virtual ~MediaFileSystemContext() {} 26 virtual ~MediaFileSystemContext() {}
25 27
26 // Register a media file system (filtered to media files) for |path| and 28 // Register a media file system (filtered to media files) for |path| and
27 // return the new file system id. 29 // return the new file system id.
28 virtual std::string RegisterFileSystemForMassStorage( 30 virtual std::string RegisterFileSystemForMassStorage(
29 const std::string& device_id, const FilePath& path) = 0; 31 const std::string& device_id, const base::FilePath& path) = 0;
30 32
31 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) 33 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM)
32 // Registers and returns the file system id for the MTP or PTP device 34 // 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 35 // specified by |device_id| and |path|. Updates |entry| with the corresponding
34 // ScopedMTPDeviceMapEntry object. 36 // ScopedMTPDeviceMapEntry object.
35 virtual std::string RegisterFileSystemForMTPDevice( 37 virtual std::string RegisterFileSystemForMTPDevice(
36 const std::string& device_id, const FilePath& path, 38 const std::string& device_id, const base::FilePath& path,
37 scoped_refptr<ScopedMTPDeviceMapEntry>* entry) = 0; 39 scoped_refptr<ScopedMTPDeviceMapEntry>* entry) = 0;
38 #endif 40 #endif
39 41
40 // Revoke the passed |fsid|. 42 // Revoke the passed |fsid|.
41 virtual void RevokeFileSystem(const std::string& fsid) = 0; 43 virtual void RevokeFileSystem(const std::string& fsid) = 0;
42 44
43 // The MediaFileSystemRegistry that owns this context. 45 // The MediaFileSystemRegistry that owns this context.
44 virtual MediaFileSystemRegistry* GetMediaFileSystemRegistry() = 0; 46 virtual MediaFileSystemRegistry* GetMediaFileSystemRegistry() = 0;
45 }; 47 };
46 48
47 } // namespace 49 } // namespace
48 50
49 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_FILE_SYSTEM_CONTEXT_H_ 51 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_FILE_SYSTEM_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698