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

Unified Diff: src/isolate.h

Issue 2785293002: [inspector] move console to builtins (Closed)
Patch Set: use console helper 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
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index ae8d71b9f8e80f6f63a32ab0b9120838ad55acaf..29d63ce047af6136605ba62118069f96f2996096 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -32,6 +32,10 @@ namespace base {
class RandomNumberGenerator;
}
+namespace debug {
+class ConsoleDelegate;
+}
+
namespace internal {
class AccessCompilerData;
@@ -737,6 +741,11 @@ class Isolate {
return MaybeHandle<T>();
}
+ void set_console_delegate(debug::ConsoleDelegate* delegate) {
+ console_delegate_ = delegate;
+ }
+ debug::ConsoleDelegate* console_delegate() { return console_delegate_; }
+
// Re-throw an exception. This involves no error reporting since error
// reporting was handled when the exception was thrown originally.
Object* ReThrow(Object* exception);
@@ -1532,6 +1541,8 @@ class Isolate {
CancelableTaskManager* cancelable_task_manager_;
+ debug::ConsoleDelegate* console_delegate_ = nullptr;
+
v8::Isolate::AbortOnUncaughtExceptionCallback
abort_on_uncaught_exception_callback_;

Powered by Google App Engine
This is Rietveld 408576698