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

Unified Diff: chrome/browser/plugin_service.h

Issue 6163003: Added automatic update for plugins based on watching file changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a line >80chars long. Created 9 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
« no previous file with comments | « no previous file | chrome/browser/plugin_service.cc » ('j') | chrome/browser/plugin_service.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_service.h
diff --git a/chrome/browser/plugin_service.h b/chrome/browser/plugin_service.h
index d24c4e20cff106ed8ef66df21e2d659c8e99ec12..7ce0d0d88a957d8786c4206c2564c267ae0d4129 100644
--- a/chrome/browser/plugin_service.h
+++ b/chrome/browser/plugin_service.h
@@ -10,12 +10,14 @@
#pragma once
#include <string>
+#include <vector>
#include "base/basictypes.h"
#include "base/file_path.h"
#include "base/hash_tables.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
+ std::vector<FilePathWatcher*> file_watchers_;
Bernhard Bauer 2011/01/10 13:27:20 I think you could use a scoped_vector for automati
pastarmovj 2011/01/11 17:17:26 Done.
+ scoped_refptr<PluginDirWatcherDelegate> file_watcher_delegate_;
+
// Set to true if chrome plugins are enabled. Defaults to true.
static bool enable_chrome_plugins_;
« no previous file with comments | « no previous file | chrome/browser/plugin_service.cc » ('j') | chrome/browser/plugin_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698