| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EXTENSIONS_RENDERER_API_ACTIVITY_LOGGER_H_ | 5 #ifndef EXTENSIONS_RENDERER_API_ACTIVITY_LOGGER_H_ |
| 6 #define EXTENSIONS_RENDERER_API_ACTIVITY_LOGGER_H_ | 6 #define EXTENSIONS_RENDERER_API_ACTIVITY_LOGGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "extensions/common/features/feature.h" | 11 #include "extensions/common/features/feature.h" |
| 11 #include "extensions/renderer/object_backed_native_handler.h" | 12 #include "extensions/renderer/object_backed_native_handler.h" |
| 12 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
| 13 | 14 |
| 14 namespace extensions { | 15 namespace extensions { |
| 15 | 16 |
| 16 // Used to log extension API calls and events that are implemented with custom | 17 // Used to log extension API calls and events that are implemented with custom |
| 17 // bindings.The actions are sent via IPC to extensions::ActivityLog for | 18 // bindings.The actions are sent via IPC to extensions::ActivityLog for |
| 18 // recording and display. | 19 // recording and display. |
| 19 class APIActivityLogger : public ObjectBackedNativeHandler { | 20 class APIActivityLogger : public ObjectBackedNativeHandler { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 42 // how they are ultimately dispatched to the log. | 43 // how they are ultimately dispatched to the log. |
| 43 static void LogInternal(const CallType call_type, | 44 static void LogInternal(const CallType call_type, |
| 44 const v8::FunctionCallbackInfo<v8::Value>& args); | 45 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 45 | 46 |
| 46 DISALLOW_COPY_AND_ASSIGN(APIActivityLogger); | 47 DISALLOW_COPY_AND_ASSIGN(APIActivityLogger); |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 } // namespace extensions | 50 } // namespace extensions |
| 50 | 51 |
| 51 #endif // EXTENSIONS_RENDERER_API_ACTIVITY_LOGGER_H_ | 52 #endif // EXTENSIONS_RENDERER_API_ACTIVITY_LOGGER_H_ |
| OLD | NEW |