| Index: chrome/renderer/extensions/api_activity_logger.h
|
| diff --git a/chrome/renderer/extensions/api_activity_logger.h b/chrome/renderer/extensions/api_activity_logger.h
|
| index 8d675aac9249f3e3d61a50a7a284d0c0cc5b826e..0cbb0caf655fc435e7d4aefc549196f0bf5d5be8 100644
|
| --- a/chrome/renderer/extensions/api_activity_logger.h
|
| +++ b/chrome/renderer/extensions/api_activity_logger.h
|
| @@ -19,23 +19,27 @@ class APIActivityLogger : public ChromeV8Extension {
|
| public:
|
| APIActivityLogger(Dispatcher* dispatcher, ChromeV8Context* context);
|
|
|
| - // This is ultimately invoked in schema_generated_bindings.js with
|
| - // JavaScript arguments. Logged as an APIAction.
|
| + // This is ultimately invoked in bindings.js with JavaScript arguments.
|
| // arg0 - extension ID as a string
|
| // arg1 - API call name as a string
|
| // arg2 - arguments to the API call
|
| // arg3 - any extra logging info as a string (optional)
|
| static void LogAPICall(const v8::FunctionCallbackInfo<v8::Value>& args);
|
|
|
| - // This is ultimately invoked in schema_generated_bindings.js with
|
| - // JavaScript arguments. Logged as an EventAction.
|
| + // This is ultimately invoked in bindings.js with JavaScript arguments.
|
| // arg0 - extension ID as a string
|
| // arg1 - Event name as a string
|
| // arg2 - Event arguments
|
| // arg3 - any extra logging info as a string (optional)
|
| static void LogEvent(const v8::FunctionCallbackInfo<v8::Value>& args);
|
|
|
| - // This is for the Dispatcher to use to log blocked API calls.
|
| + // This is invoked in binding.js with JavaScript arguments.
|
| + // arg0 - extension ID as string
|
| + // arg1 - Function name as a string
|
| + static void LogBlockedCallWrapper(
|
| + const v8::FunctionCallbackInfo<v8::Value>& args);
|
| +
|
| + // This is to use to log blocked API calls.
|
| static void LogBlockedCall(const std::string& extension_id,
|
| const std::string& function_name);
|
|
|
|
|