| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); } | 63 InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); } |
| 64 bool isWorker() override { return false; } | 64 bool isWorker() override { return false; } |
| 65 void setClientMessageLoop(PassOwnPtr<ClientMessageLoop>); | 65 void setClientMessageLoop(PassOwnPtr<ClientMessageLoop>); |
| 66 int contextGroupId(LocalFrame*); | 66 int contextGroupId(LocalFrame*); |
| 67 void contextCreated(ScriptState*, LocalFrame*, SecurityOrigin*); | 67 void contextCreated(ScriptState*, LocalFrame*, SecurityOrigin*); |
| 68 void contextWillBeDestroyed(ScriptState*); | 68 void contextWillBeDestroyed(ScriptState*); |
| 69 | 69 |
| 70 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O
bject>) override; | 70 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O
bject>) override; |
| 71 | 71 |
| 72 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Context>) o
verride; | 72 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Context>) o
verride; |
| 73 protected: | 73 void messageAddedToConsole(int contextGroupId, MessageSource, MessageLevel,
const String16& message, const String16& url, unsigned lineNumber, unsigned colu
mnNumber, V8StackTrace*) override; |
| 74 void reportMessageToConsole(v8::Local<v8::Context>, ConsoleMessage*) overrid
e; | |
| 75 | 74 |
| 76 private: | 75 private: |
| 77 // V8DebuggerClient implementation. | 76 // V8DebuggerClient implementation. |
| 78 void runMessageLoopOnPause(int contextGroupId) override; | 77 void runMessageLoopOnPause(int contextGroupId) override; |
| 79 void quitMessageLoopOnPause() override; | 78 void quitMessageLoopOnPause() override; |
| 80 void muteWarningsAndDeprecations() override; | 79 void muteWarningsAndDeprecations() override; |
| 81 void unmuteWarningsAndDeprecations() override; | 80 void unmuteWarningsAndDeprecations() override; |
| 82 void muteConsole() override; | |
| 83 void unmuteConsole() override; | |
| 84 bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Loca
l<v8::Context> target) override; | 81 bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Loca
l<v8::Context> target) override; |
| 85 int ensureDefaultContextInGroup(int contextGroupId) override; | 82 v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupId) overr
ide; |
| 86 | 83 |
| 87 OwnPtr<ClientMessageLoop> m_clientMessageLoop; | 84 OwnPtr<ClientMessageLoop> m_clientMessageLoop; |
| 88 OwnPtr<InspectorTaskRunner> m_taskRunner; | 85 OwnPtr<InspectorTaskRunner> m_taskRunner; |
| 89 | 86 |
| 90 static MainThreadDebugger* s_instance; | 87 static MainThreadDebugger* s_instance; |
| 91 | 88 |
| 92 static void querySelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&
); | 89 static void querySelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&
); |
| 93 static void querySelectorAllCallback(const v8::FunctionCallbackInfo<v8::Valu
e>&); | 90 static void querySelectorAllCallback(const v8::FunctionCallbackInfo<v8::Valu
e>&); |
| 94 static void xpathSelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&
); | 91 static void xpathSelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&
); |
| 95 }; | 92 }; |
| 96 | 93 |
| 97 } // namespace blink | 94 } // namespace blink |
| 98 | 95 |
| 99 | 96 |
| 100 #endif // MainThreadDebugger_h | 97 #endif // MainThreadDebugger_h |
| OLD | NEW |