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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void quitNow() = 0; | 53 virtual void quitNow() = 0; |
54 }; | 54 }; |
55 | 55 |
56 static PassOwnPtrWillBeRawPtr<MainThreadDebugger> create(PassOwnPtr<ClientMe
ssageLoop> clientMessageLoop, v8::Isolate* isolate) | 56 static PassOwnPtrWillBeRawPtr<MainThreadDebugger> create(PassOwnPtr<ClientMe
ssageLoop> clientMessageLoop, v8::Isolate* isolate) |
57 { | 57 { |
58 return adoptPtrWillBeNoop(new MainThreadDebugger(clientMessageLoop, isol
ate)); | 58 return adoptPtrWillBeNoop(new MainThreadDebugger(clientMessageLoop, isol
ate)); |
59 } | 59 } |
60 | 60 |
61 ~MainThreadDebugger() override; | 61 ~MainThreadDebugger() override; |
62 | 62 |
63 static void setContextDebugData(v8::Local<v8::Context>, const String& type,
int contextDebugId); | 63 static void initializeContext(v8::Local<v8::Context>, int worldId); |
64 void addListener(ScriptDebugListener*, LocalFrame*, int contextDebugId); | 64 void addListener(ScriptDebugListener*, LocalFrame*); |
65 void removeListener(ScriptDebugListener*, LocalFrame*); | 65 void removeListener(ScriptDebugListener*, LocalFrame*); |
66 | 66 |
67 static MainThreadDebugger* instance(); | 67 static MainThreadDebugger* instance(); |
68 static void interruptMainThreadAndRun(PassOwnPtr<InspectorTaskRunner::Task>)
; | 68 static void interruptMainThreadAndRun(PassOwnPtr<InspectorTaskRunner::Task>)
; |
69 InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); } | 69 InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); } |
70 | 70 |
71 DECLARE_VIRTUAL_TRACE(); | 71 DECLARE_VIRTUAL_TRACE(); |
72 | 72 |
73 private: | 73 private: |
74 MainThreadDebugger(PassOwnPtr<ClientMessageLoop>, v8::Isolate*); | 74 MainThreadDebugger(PassOwnPtr<ClientMessageLoop>, v8::Isolate*); |
(...skipping 10 matching lines...) Expand all Loading... |
85 RawPtrWillBeMember<LocalFrame> m_pausedFrame; | 85 RawPtrWillBeMember<LocalFrame> m_pausedFrame; |
86 OwnPtr<InspectorTaskRunner> m_taskRunner; | 86 OwnPtr<InspectorTaskRunner> m_taskRunner; |
87 | 87 |
88 static MainThreadDebugger* s_instance; | 88 static MainThreadDebugger* s_instance; |
89 }; | 89 }; |
90 | 90 |
91 } // namespace blink | 91 } // namespace blink |
92 | 92 |
93 | 93 |
94 #endif // MainThreadDebugger_h | 94 #endif // MainThreadDebugger_h |
OLD | NEW |