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

Unified Diff: chrome/browser/devtools/devtools_file_helper.h

Issue 1422463007: DevTools: use inotify to pick changes on the filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 5 years, 1 month 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
« no previous file with comments | « chrome/browser/devtools/BUILD.gn ('k') | chrome/browser/devtools/devtools_file_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_file_helper.h
diff --git a/chrome/browser/devtools/devtools_file_helper.h b/chrome/browser/devtools/devtools_file_helper.h
index d7f63c3020bfb778a2da031d356e006a3aa6fc6f..550a19d5d7c89ebe1de8e9fb578736a1e8379467 100644
--- a/chrome/browser/devtools/devtools_file_helper.h
+++ b/chrome/browser/devtools/devtools_file_helper.h
@@ -17,6 +17,7 @@
#include "base/prefs/pref_change_registrar.h"
#include "base/strings/string16.h"
+class DevToolsFileWatcher;
class Profile;
namespace base {
@@ -45,6 +46,7 @@ class DevToolsFileHelper {
virtual ~Delegate() {}
virtual void FileSystemAdded(const FileSystem& file_system) = 0;
virtual void FileSystemRemoved(const std::string& file_system_path) = 0;
+ virtual void FilePathsChanged(const std::vector<std::string>& paths) = 0;
};
DevToolsFileHelper(content::WebContents* web_contents, Profile* profile,
@@ -129,6 +131,7 @@ class DevToolsFileHelper {
const base::FilePath& path,
bool allowed);
void FileSystemPathsSettingChanged();
+ void FilePathsChanged(const std::vector<std::string>& paths);
content::WebContents* web_contents_;
Profile* profile_;
@@ -137,6 +140,7 @@ class DevToolsFileHelper {
PathsMap saved_files_;
PrefChangeRegistrar pref_change_registrar_;
std::set<std::string> file_system_paths_;
+ scoped_ptr<DevToolsFileWatcher> file_watcher_;
base::WeakPtrFactory<DevToolsFileHelper> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(DevToolsFileHelper);
};
« no previous file with comments | « chrome/browser/devtools/BUILD.gn ('k') | chrome/browser/devtools/devtools_file_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698