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

Unified Diff: chrome/browser/media_gallery/media_file_system_registry.h

Issue 10827057: Plumb file system name down from MediaFileSystemRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_gallery/media_file_system_registry.h
diff --git a/chrome/browser/media_gallery/media_file_system_registry.h b/chrome/browser/media_gallery/media_file_system_registry.h
index e936a8b3e414460fbd88a489cdbd8de6ae35928a..a4055710de1bb16d1555360f1d2503b8d1fa8fe9 100644
--- a/chrome/browser/media_gallery/media_file_system_registry.h
+++ b/chrome/browser/media_gallery/media_file_system_registry.h
@@ -39,15 +39,18 @@ class MediaFileSystemRegistry
: public base::SystemMonitor::DevicesChangedObserver,
public content::NotificationObserver {
public:
- // (Filesystem ID, path)
- typedef std::pair<std::string, FilePath> MediaFSIDAndPath;
+ struct MediaFSInfo {
+ std::string name;
+ std::string fsid;
+ FilePath path;
+ };
// The instance is lazily created per browser process.
static MediaFileSystemRegistry* GetInstance();
// Returns the list of media filesystem IDs and paths for a given RPH.
// Called on the UI thread.
- std::vector<MediaFSIDAndPath> GetMediaFileSystems(
+ std::vector<MediaFSInfo> GetMediaFileSystemsForExtension(
const content::RenderProcessHost* rph,
const extensions::Extension& extension);

Powered by Google App Engine
This is Rietveld 408576698