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

Unified Diff: chrome/browser/extensions/extension_activity_log.h

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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
Index: chrome/browser/extensions/extension_activity_log.h
diff --git a/chrome/browser/extensions/extension_activity_log.h b/chrome/browser/extensions/extension_activity_log.h
index 1c18077780bd1c24f38ba22fba2f05a396e297aa..ffef1d608f921a82968b77dc06acca5989b036c5 100644
--- a/chrome/browser/extensions/extension_activity_log.h
+++ b/chrome/browser/extensions/extension_activity_log.h
@@ -12,7 +12,9 @@
#include "base/observer_list_threadsafe.h"
#include "base/synchronization/lock.h"
+namespace extensions {
class Extension;
+}
// A utility for tracing interesting activity for each extension.
class ExtensionActivityLog {
@@ -25,7 +27,7 @@ class ExtensionActivityLog {
// Observers can listen for activity events.
class Observer {
public:
- virtual void OnExtensionActivity(const Extension* extension,
+ virtual void OnExtensionActivity(const extensions::Extension* extension,
Activity activity,
const std::string& msg) = 0;
};
@@ -34,14 +36,15 @@ class ExtensionActivityLog {
static ExtensionActivityLog* GetInstance();
// Add/remove observer.
- void AddObserver(const Extension* extension, Observer* observer);
- void RemoveObserver(const Extension* extension, Observer* observer);
+ void AddObserver(const extensions::Extension* extension, Observer* observer);
+ void RemoveObserver(const extensions::Extension* extension,
+ Observer* observer);
// Check for the existence observer list by extension_id.
- bool HasObservers(const Extension* extension) const;
+ bool HasObservers(const extensions::Extension* extension) const;
// Log |activity| for |extension|.
- void Log(const Extension* extension,
+ void Log(const extensions::Extension* extension,
Activity activity,
const std::string& msg) const;
@@ -59,7 +62,8 @@ class ExtensionActivityLog {
bool log_activity_to_stdout_;
typedef ObserverListThreadSafe<Observer> ObserverList;
- typedef std::map<const Extension*, scoped_refptr<ObserverList> > ObserverMap;
+ typedef std::map<const extensions::Extension*, scoped_refptr<ObserverList> >
+ ObserverMap;
// A map of extensions to activity observers for that extension.
ObserverMap observers_;
« no previous file with comments | « chrome/browser/extensions/execute_code_in_tab_function.cc ('k') | chrome/browser/extensions/extension_activity_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698