| Index: chrome/browser/extensions/activity_log.h
|
| diff --git a/chrome/browser/extensions/activity_log.h b/chrome/browser/extensions/activity_log.h
|
| index 27761a9c334f39de7d2c74c66943ab990bf053d8..d6fadbc87edbff3d2da8a11f97918acd294cf27b 100644
|
| --- a/chrome/browser/extensions/activity_log.h
|
| +++ b/chrome/browser/extensions/activity_log.h
|
| @@ -36,7 +36,8 @@ class ActivityLog : public ProfileKeyedService,
|
| enum Activity {
|
| ACTIVITY_EXTENSION_API_CALL, // Extension API invocation is called.
|
| ACTIVITY_EXTENSION_API_BLOCK, // Extension API invocation is blocked.
|
| - ACTIVITY_CONTENT_SCRIPT // Content script is executing.
|
| + ACTIVITY_CONTENT_SCRIPT, // Content script is executing.
|
| + ACTIVITY_EVENT_DISPATCH, // Event sent to listener in extension.
|
| };
|
|
|
| // Observers can listen for activity events.
|
| @@ -67,14 +68,21 @@ class ActivityLog : public ProfileKeyedService,
|
| // Log a successful API call made by an extension.
|
| // This will create an APIAction for storage in the database.
|
| void LogAPIAction(const Extension* extension,
|
| - const std::string& name, // e.g., chrome.tabs.get
|
| + const std::string& name, // e.g., tabs.get
|
| const ListValue* args, // the argument values e.g. 46
|
| const std::string& extra); // any extra logging info
|
|
|
| + // Log an event notification delivered to an extension.
|
| + // This will crate an APIActiion for storage in the database.
|
| + void LogEventAction(const Extension* extension,
|
| + const std::string& name, // e.g., tabs.onUpdate
|
| + const ListValue* args, // arguments to the callback
|
| + const std::string& extra); // any extra logging info
|
| +
|
| // Log a blocked API call made by an extension.
|
| // This will create a BlockedAction for storage in the database.
|
| void LogBlockedAction(const Extension* extension,
|
| - const std::string& blocked_call, // eg chrome.tabs.get
|
| + const std::string& blocked_call, // eg tabs.get
|
| const ListValue* args, // argument values
|
| const char* reason, // why it's blocked
|
| const std::string& extra); // extra logging info
|
|
|