summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/user_script_master.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 21:19:57 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 21:19:57 +0000
commita5b04d1c6d10a3a6a1a246342761e55382da711b (patch)
tree9660a03b21f18ad1cb1eedfeaf5b4f053ccb5f87 /chrome/browser/extensions/user_script_master.h
parent69a680223700fc62ee97eae634a8f4921ae7c587 (diff)
downloadchromium_src-a5b04d1c6d10a3a6a1a246342761e55382da711b.zip
chromium_src-a5b04d1c6d10a3a6a1a246342761e55382da711b.tar.gz
chromium_src-a5b04d1c6d10a3a6a1a246342761e55382da711b.tar.bz2
TBR: Revert "Hook up more of extension uninstall."
This reverts commit 5b2fc12fbca26b20ed4176ac740c58fe49360c4a. Review URL: http://codereview.chromium.org/113664 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16538 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/user_script_master.h')
-rw-r--r--chrome/browser/extensions/user_script_master.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h
index 4367c7e..6a9a425 100644
--- a/chrome/browser/extensions/user_script_master.h
+++ b/chrome/browser/extensions/user_script_master.h
@@ -14,7 +14,6 @@
#include "base/scoped_ptr.h"
#include "base/shared_memory.h"
#include "chrome/common/extensions/user_script.h"
-#include "chrome/common/notification_registrar.h"
#include "googleurl/src/gurl.h"
#include "testing/gtest/include/gtest/gtest_prod.h"
@@ -23,8 +22,7 @@ class StringPiece;
// Manages a segment of shared memory that contains the user scripts the user
// has installed. Lives on the UI thread.
class UserScriptMaster : public base::RefCounted<UserScriptMaster>,
- public DirectoryWatcher::Delegate,
- public NotificationObserver {
+ public DirectoryWatcher::Delegate {
public:
// For testability, the constructor takes the MessageLoop to run the
// script-reloading worker on as well as the path the scripts live in.
@@ -32,6 +30,11 @@ class UserScriptMaster : public base::RefCounted<UserScriptMaster>,
UserScriptMaster(MessageLoop* worker, const FilePath& script_dir);
~UserScriptMaster();
+ // Add a single user script that exists outside the script directory.
+ void AddLoneScript(const UserScript& script) {
+ lone_scripts_.push_back(script);
+ }
+
// Add a watched directory. All scripts will be reloaded when any file in
// this directory changes.
void AddWatchedPath(const FilePath& path);
@@ -123,14 +126,6 @@ class UserScriptMaster : public base::RefCounted<UserScriptMaster>,
// DirectoryWatcher::Delegate implementation.
virtual void OnDirectoryChanged(const FilePath& path);
- // NotificationObserver implementation.
- virtual void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
-
- // Manages our notification registrations.
- NotificationRegistrar registrar_;
-
// The directories containing user scripts.
FilePath user_script_dir_;