| 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 ce98392f3e1f985a7e13c2100ad5e1c69cf653b5..05293629486dce2ac8a9e532a8148f5b919d32f8 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"
|
| @@ -74,6 +75,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);
|
| @@ -86,6 +92,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.
|
| @@ -96,6 +103,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_;
|
|
|
|
|