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

Unified Diff: src/inspector/v8-console.h

Issue 2771413009: [inspector] get rid of ConsoleHelper (Closed)
Patch Set: rebased Created 3 years, 9 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
« no previous file with comments | « no previous file | src/inspector/v8-console.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « no previous file | src/inspector/v8-console.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698