OLD | NEW |
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 Loading... |
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 |
OLD | NEW |