Index: chrome/browser/plugin_service.h |
diff --git a/chrome/browser/plugin_service.h b/chrome/browser/plugin_service.h |
index d24c4e20cff106ed8ef66df21e2d659c8e99ec12..a37036c91bf6b87a063b782cce2f16a2c420793c 100644 |
--- a/chrome/browser/plugin_service.h |
+++ b/chrome/browser/plugin_service.h |
@@ -14,8 +14,10 @@ |
#include "base/basictypes.h" |
#include "base/file_path.h" |
#include "base/hash_tables.h" |
+#include "base/scoped_vector.h" |
#include "base/singleton.h" |
#include "base/synchronization/waitable_event_watcher.h" |
+#include "chrome/browser/file_path_watcher/file_path_watcher.h" |
#include "chrome/browser/plugin_process_host.h" |
#include "chrome/common/notification_observer.h" |
#include "chrome/common/notification_registrar.h" |
@@ -39,6 +41,7 @@ class Message; |
class MessageLoop; |
class Profile; |
+class PluginDirWatcherDelegate; |
class ResourceDispatcherHost; |
namespace net { |
@@ -143,6 +146,12 @@ class PluginService |
const FilePath& plugin_path, |
PluginProcessHost::Client* client); |
+ // Registers a new FilePathWatcher for a given path. |
+ static void RegisterFilePathWatcher( |
+ FilePathWatcher* watcher, |
+ const FilePath& path, |
+ FilePathWatcher::Delegate* delegate); |
+ |
// mapping between plugin path and PluginProcessHost |
typedef base::hash_map<FilePath, PluginProcessHost*> PluginMap; |
PluginMap plugin_hosts_; |
@@ -180,6 +189,9 @@ class PluginService |
base::WaitableEventWatcher hklm_watcher_; |
#endif |
+ ScopedVector<FilePathWatcher> file_watchers_; |
+ scoped_refptr<PluginDirWatcherDelegate> file_watcher_delegate_; |
+ |
// Set to true if chrome plugins are enabled. Defaults to true. |
static bool enable_chrome_plugins_; |