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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void didClearContextsForFrame(LocalFrame*); | 76 void didClearContextsForFrame(LocalFrame*); |
77 void contextCreated(ScriptState*, LocalFrame*, SecurityOrigin*); | 77 void contextCreated(ScriptState*, LocalFrame*, SecurityOrigin*); |
78 void contextWillBeDestroyed(ScriptState*); | 78 void contextWillBeDestroyed(ScriptState*); |
79 void exceptionThrown(ExecutionContext*, ErrorEvent*); | 79 void exceptionThrown(ExecutionContext*, ErrorEvent*); |
80 | 80 |
81 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O
bject>) override; | 81 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O
bject>) override; |
82 | 82 |
83 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Context>) o
verride; | 83 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Context>) o
verride; |
84 | 84 |
85 private: | 85 private: |
86 // V8DebuggerClient implementation. | 86 // V8InspectorClient implementation. |
87 void runMessageLoopOnPause(int contextGroupId) override; | 87 void runMessageLoopOnPause(int contextGroupId) override; |
88 void quitMessageLoopOnPause() override; | 88 void quitMessageLoopOnPause() override; |
89 void muteWarningsAndDeprecations(int contextGroupId) override; | 89 void muteWarningsAndDeprecations(int contextGroupId) override; |
90 void unmuteWarningsAndDeprecations(int contextGroupId) override; | 90 void unmuteWarningsAndDeprecations(int contextGroupId) override; |
91 v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupId) overr
ide; | 91 v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupId) overr
ide; |
92 void beginEnsureAllContextsInGroup(int contextGroupId) override; | 92 void beginEnsureAllContextsInGroup(int contextGroupId) override; |
93 void endEnsureAllContextsInGroup(int contextGroupId) override; | 93 void endEnsureAllContextsInGroup(int contextGroupId) override; |
94 bool canExecuteScripts(int contextGroupId) override; | 94 bool canExecuteScripts(int contextGroupId) override; |
95 void consoleAPIMessage(int contextGroupId, V8ConsoleAPIType, const String16&
message, const String16& url, unsigned lineNumber, unsigned columnNumber, V8Sta
ckTrace*) override; | 95 void consoleAPIMessage(int contextGroupId, V8ConsoleAPIType, const String16&
message, const String16& url, unsigned lineNumber, unsigned columnNumber, V8Sta
ckTrace*) override; |
96 | 96 |
97 std::unique_ptr<ClientMessageLoop> m_clientMessageLoop; | 97 std::unique_ptr<ClientMessageLoop> m_clientMessageLoop; |
98 std::unique_ptr<InspectorTaskRunner> m_taskRunner; | 98 std::unique_ptr<InspectorTaskRunner> m_taskRunner; |
99 bool m_paused; | 99 bool m_paused; |
100 | 100 |
101 static MainThreadDebugger* s_instance; | 101 static MainThreadDebugger* s_instance; |
102 | 102 |
103 static void querySelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&
); | 103 static void querySelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&
); |
104 static void querySelectorAllCallback(const v8::FunctionCallbackInfo<v8::Valu
e>&); | 104 static void querySelectorAllCallback(const v8::FunctionCallbackInfo<v8::Valu
e>&); |
105 static void xpathSelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&
); | 105 static void xpathSelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&
); |
106 }; | 106 }; |
107 | 107 |
108 } // namespace blink | 108 } // namespace blink |
109 | 109 |
110 | 110 |
111 #endif // MainThreadDebugger_h | 111 #endif // MainThreadDebugger_h |
OLD | NEW |