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

Unified Diff: chrome/browser/chromeos/file_system_provider/service.h

Issue 244623003: [fsp] [recommit] Add FileSystemURLParser to the file system provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/file_system_provider/service.h
diff --git a/chrome/browser/chromeos/file_system_provider/service.h b/chrome/browser/chromeos/file_system_provider/service.h
index da8fa15b03b2e0a55f35dcd0924731ababda65a1..f5554bd4592fa0e5bff94e5fdce8f3b4aac1587c 100644
--- a/chrome/browser/chromeos/file_system_provider/service.h
+++ b/chrome/browser/chromeos/file_system_provider/service.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/files/file.h"
+#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
@@ -78,6 +79,11 @@ class Service : public KeyedService,
const std::string& extension_id,
int file_system_id);
+ // Returns a provided file system attached to the the passed
+ // |mount_point_name|. If not found, then returns NULL.
+ ProvidedFileSystemInterface* GetProvidedFileSystem(
+ const std::string& mount_point_name);
+
// Adds and removes observers.
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
@@ -93,6 +99,7 @@ class Service : public KeyedService,
private:
typedef std::map<int, ProvidedFileSystemInterface*> ProvidedFileSystemMap;
+ typedef std::map<std::string, int> MountPointNameToIdMap;
// Called when the providing extension accepts or refuses a unmount request.
// If |error| is equal to FILE_OK, then the request is accepted.
@@ -104,6 +111,7 @@ class Service : public KeyedService,
FileSystemFactoryCallback file_system_factory_;
ObserverList<Observer> observers_;
ProvidedFileSystemMap file_system_map_; // Owns pointers.
+ MountPointNameToIdMap mount_point_name_to_id_map_;
int next_id_;
base::WeakPtrFactory<Service> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698