summaryrefslogtreecommitdiffstats
path: root/content/browser/plugin_service.cc
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-01 18:48:19 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-01 18:48:19 +0000
commit7b3ee8bf212b43ea15d46a390af411c689ba24a8 (patch)
treecb3125ddf1795edce4ca006568ce0ff73b9b16df /content/browser/plugin_service.cc
parent21453884c357a0845e994f4dd7323d2c9cc61192 (diff)
downloadchromium_src-7b3ee8bf212b43ea15d46a390af411c689ba24a8.zip
chromium_src-7b3ee8bf212b43ea15d46a390af411c689ba24a8.tar.gz
chromium_src-7b3ee8bf212b43ea15d46a390af411c689ba24a8.tar.bz2
kqueue implementation of FilePathWatcher on Mac.
BUG=54822,77391,77217,77064,69641 TEST=BUILD Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80101 Review URL: http://codereview.chromium.org/6731064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80196 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/plugin_service.cc')
-rw-r--r--content/browser/plugin_service.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/content/browser/plugin_service.cc b/content/browser/plugin_service.cc
index 46230c1..c604040 100644
--- a/content/browser/plugin_service.cc
+++ b/content/browser/plugin_service.cc
@@ -7,6 +7,7 @@
#include <vector>
#include "base/command_line.h"
+#include "base/compiler_specific.h"
#include "base/path_service.h"
#include "base/string_util.h"
#include "base/synchronization/waitable_event.h"
@@ -61,12 +62,12 @@ static void PurgePluginListCache(bool reload_pages) {
#if defined(OS_LINUX)
// Delegate class for monitoring directories.
class PluginDirWatcherDelegate : public FilePathWatcher::Delegate {
- virtual void OnFilePathChanged(const FilePath& path) {
+ virtual void OnFilePathChanged(const FilePath& path) OVERRIDE {
VLOG(1) << "Watched path changed: " << path.value();
// Make the plugin list update itself
webkit::npapi::PluginList::Singleton()->RefreshPlugins();
}
- virtual void OnError() {
+ virtual void OnFilePathError(const FilePath& path) OVERRIDE {
// TODO(pastarmovj): Add some sensible error handling. Maybe silently
// stopping the watcher would be enough. Or possibly restart it.
NOTREACHED();
@@ -549,8 +550,7 @@ void PluginService::RegisterFilePathWatcher(
FilePathWatcher *watcher,
const FilePath& path,
FilePathWatcher::Delegate* delegate) {
- bool result = watcher->Watch(
- path, delegate, base::MessageLoopProxy::CreateForCurrentThread());
+ bool result = watcher->Watch(path, delegate);
DCHECK(result);
}
#endif