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

Side by Side Diff: third_party/WebKit/Source/core/inspector/MainThreadDebugger.h

Issue 1648463002: DevTools: migrate injectedscript from ScriptValue to v8::Global. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 Google Inc. All rights reserved. 2 * Copyright (c) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 static MainThreadDebugger* instance(); 70 static MainThreadDebugger* instance();
71 static void interruptMainThreadAndRun(PassOwnPtr<InspectorTaskRunner::Task>) ; 71 static void interruptMainThreadAndRun(PassOwnPtr<InspectorTaskRunner::Task>) ;
72 InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); } 72 InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); }
73 73
74 private: 74 private:
75 MainThreadDebugger(PassOwnPtr<ClientMessageLoop>, v8::Isolate*); 75 MainThreadDebugger(PassOwnPtr<ClientMessageLoop>, v8::Isolate*);
76 76
77 // V8DebuggerClient implementation. 77 // V8DebuggerClient implementation.
78 void runMessageLoopOnPause(int contextGroupId) override; 78 void runMessageLoopOnPause(int contextGroupId) override;
79 void quitMessageLoopOnPause() override; 79 void quitMessageLoopOnPause() override;
80 bool callingContextCanAccessContext(v8::Local<v8::Context>) override; 80 bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Loca l<v8::Context> target) override;
81 81
82 static WTF::Mutex& creationMutex(); 82 static WTF::Mutex& creationMutex();
83 83
84 OwnPtr<ClientMessageLoop> m_clientMessageLoop; 84 OwnPtr<ClientMessageLoop> m_clientMessageLoop;
85 OwnPtr<InspectorTaskRunner> m_taskRunner; 85 OwnPtr<InspectorTaskRunner> m_taskRunner;
86 86
87 static MainThreadDebugger* s_instance; 87 static MainThreadDebugger* s_instance;
88 }; 88 };
89 89
90 } // namespace blink 90 } // namespace blink
91 91
92 92
93 #endif // MainThreadDebugger_h 93 #endif // MainThreadDebugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698