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

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

Issue 829553002: [fsp] Add throttling for number of opened files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 11 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/provided_file_system_info.h
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system_info.h b/chrome/browser/chromeos/file_system_provider/provided_file_system_info.h
index 164e194c9fd2edb3533e9f897c7ca8dd564db326..795577ce3c72814c833b8f8daa8acfe030b7ade1 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system_info.h
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system_info.h
@@ -24,6 +24,7 @@ struct MountOptions {
std::string display_name;
bool writable;
bool supports_notify_tag;
+ int opened_files_limit;
};
// Contains information about the provided file system instance.
@@ -42,6 +43,7 @@ class ProvidedFileSystemInfo {
const std::string& display_name() const { return display_name_; }
bool writable() const { return writable_; }
bool supports_notify_tag() const { return supports_notify_tag_; }
+ int opened_files_limit() const { return opened_files_limit_; }
const base::FilePath& mount_path() const { return mount_path_; }
private:
@@ -60,6 +62,9 @@ class ProvidedFileSystemInfo {
// Supports tags for file/directory change notifications.
bool supports_notify_tag_;
+ // Limit of opened files in parallel. If unlimited, then 0.
+ int opened_files_limit_;
+
// Mount path of the underlying file system.
base::FilePath mount_path_;
};

Powered by Google App Engine
This is Rietveld 408576698