Index: src/inspector/v8-console.h |
diff --git a/src/inspector/v8-console.h b/src/inspector/v8-console.h |
index 0b833b3c943f37e9171838b8e6b2eba16722f18b..a5dc416e1d99329b1bd22b112711b4549d7c1cc1 100644 |
--- a/src/inspector/v8-console.h |
+++ b/src/inspector/v8-console.h |
@@ -11,8 +11,16 @@ |
namespace v8_inspector { |
+enum class ConsoleAPIType; |
+class InjectedScript; |
class InspectedContext; |
+class String16; |
+class V8ConsoleMessageStorage; |
+class V8DebuggerAgentImpl; |
class V8InspectorImpl; |
+class V8InspectorSessionImpl; |
+class V8ProfilerAgentImpl; |
+class V8RuntimeAgentImpl; |
// Console API |
// https://console.spec.whatwg.org/#console-interface |
@@ -71,6 +79,8 @@ class V8Console { |
void timelineEndCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
void timeCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
void timeEndCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
+ void time(const v8::FunctionCallbackInfo<v8::Value>&, bool timelinePrefix); |
+ void timeEnd(const v8::FunctionCallbackInfo<v8::Value>&, bool timelinePrefix); |
void timeStampCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
template <void (V8Console::*func)(const v8::FunctionCallbackInfo<v8::Value>&)> |
@@ -113,6 +123,30 @@ class V8Console { |
inspectedObject(info, 4); |
} |
+ int currentContextId(); |
+ V8InspectorSessionImpl* currentSession(); |
+ V8ProfilerAgentImpl* profilerAgent(); |
+ V8DebuggerAgentImpl* debuggerAgent(); |
+ V8RuntimeAgentImpl* runtimeAgent(); |
+ InjectedScript* injectedScript(); |
+ V8ConsoleMessageStorage* messageStorage(); |
+ |
+ void reportCall(ConsoleAPIType type, |
+ const v8::FunctionCallbackInfo<v8::Value>& info); |
+ void reportCallWithDefaultArgument( |
+ ConsoleAPIType type, const v8::FunctionCallbackInfo<v8::Value>& info, |
+ const String16& message); |
+ void reportCallWithArgument(ConsoleAPIType type, const String16& message); |
+ void reportDeprecatedCall(const char* id, const String16& message); |
+ |
+ void reportCall(ConsoleAPIType type, |
+ const std::vector<v8::Local<v8::Value>>& arguments); |
+ |
+ String16 firstArgToString(const v8::FunctionCallbackInfo<v8::Value>& info, |
+ const String16& defaultValue); |
+ bool firstArgToBoolean(const v8::FunctionCallbackInfo<v8::Value>& info, |
+ bool defaultValue); |
+ |
V8InspectorImpl* m_inspector; |
}; |