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

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

Issue 658313002: [fsp] Store observed entries in preferences. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Fixed. Created 6 years, 2 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 d81b57e2628106860500cd05b6f5d7a5aac6b9f9..1bf4417d6cf1df2012965d604a28147c79f49973 100644
--- a/chrome/browser/chromeos/file_system_provider/service.h
+++ b/chrome/browser/chromeos/file_system_provider/service.h
@@ -17,6 +17,7 @@
#include "base/observer_list.h"
#include "base/threading/thread_checker.h"
#include "base/values.h"
+#include "chrome/browser/chromeos/file_system_provider/observed_entry.h"
#include "chrome/browser/chromeos/file_system_provider/observer.h"
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h"
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_observer.h"
@@ -43,6 +44,10 @@ extern const char kPrefKeyFileSystemId[];
extern const char kPrefKeyDisplayName[];
extern const char kPrefKeyWritable[];
extern const char kPrefKeySupportsNotifyTag[];
+extern const char kPrefKeyObservedEntries[];
+extern const char kPrefKeyObservedEntryEntryPath[];
+extern const char kPrefKeyObservedEntryRecursive[];
+extern const char kPrefKeyObservedEntryLastTag[];
class ProvidedFileSystemFactoryInterface;
class ProvidedFileSystemInfo;
@@ -145,6 +150,8 @@ class Service : public KeyedService,
const ObservedEntries& observed_entries) override;
private:
+ FRIEND_TEST_ALL_PREFIXES(FileSystemProviderServiceTest, RememberFileSystem);
+
// Key is a pair of an extension id and file system id, which makes it
// unique among the entire service instance.
typedef std::pair<std::string, std::string> FileSystemKey;
@@ -160,7 +167,8 @@ class Service : public KeyedService,
// Remembers the file system in preferences, in order to remount after a
// reboot.
- void RememberFileSystem(const ProvidedFileSystemInfo& file_system_info);
+ void RememberFileSystem(const ProvidedFileSystemInfo& file_system_info,
+ const ObservedEntries& observed_entries);
// Removes the file system from preferences, so it is not remounmted anymore
// after a reboot.

Powered by Google App Engine
This is Rietveld 408576698