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

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

Issue 2209603003: [DevTools] Remove V8InspectorSessionClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 class CORE_EXPORT MainThreadDebugger final : public ThreadDebugger { 50 class CORE_EXPORT MainThreadDebugger final : public ThreadDebugger {
51 WTF_MAKE_NONCOPYABLE(MainThreadDebugger); 51 WTF_MAKE_NONCOPYABLE(MainThreadDebugger);
52 public: 52 public:
53 class ClientMessageLoop { 53 class ClientMessageLoop {
54 USING_FAST_MALLOC(ClientMessageLoop); 54 USING_FAST_MALLOC(ClientMessageLoop);
55 public: 55 public:
56 virtual ~ClientMessageLoop() { } 56 virtual ~ClientMessageLoop() { }
57 virtual void run(LocalFrame*) = 0; 57 virtual void run(LocalFrame*) = 0;
58 virtual void quitNow() = 0; 58 virtual void quitNow() = 0;
59 virtual void resumeStartup(LocalFrame*) = 0;
59 }; 60 };
60 61
61 explicit MainThreadDebugger(v8::Isolate*); 62 explicit MainThreadDebugger(v8::Isolate*);
62 ~MainThreadDebugger() override; 63 ~MainThreadDebugger() override;
63 64
64 static MainThreadDebugger* instance(); 65 static MainThreadDebugger* instance();
65 static void interruptMainThreadAndRun(std::unique_ptr<InspectorTaskRunner::T ask>); 66 static void interruptMainThreadAndRun(std::unique_ptr<InspectorTaskRunner::T ask>);
66 67
67 InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); } 68 InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); }
68 bool isWorker() override { return false; } 69 bool isWorker() override { return false; }
(...skipping 16 matching lines...) Expand all
85 private: 86 private:
86 // V8InspectorClient implementation. 87 // V8InspectorClient implementation.
87 void runMessageLoopOnPause(int contextGroupId) override; 88 void runMessageLoopOnPause(int contextGroupId) override;
88 void quitMessageLoopOnPause() override; 89 void quitMessageLoopOnPause() override;
89 void muteMetrics(int contextGroupId) override; 90 void muteMetrics(int contextGroupId) override;
90 void unmuteMetrics(int contextGroupId) override; 91 void unmuteMetrics(int contextGroupId) override;
91 v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupId) overr ide; 92 v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupId) overr ide;
92 void beginEnsureAllContextsInGroup(int contextGroupId) override; 93 void beginEnsureAllContextsInGroup(int contextGroupId) override;
93 void endEnsureAllContextsInGroup(int contextGroupId) override; 94 void endEnsureAllContextsInGroup(int contextGroupId) override;
94 bool canExecuteScripts(int contextGroupId) override; 95 bool canExecuteScripts(int contextGroupId) override;
96 void resumeStartup(int contextGroupId) override;
95 void consoleAPIMessage(int contextGroupId, V8ConsoleAPIType, const String16& message, const String16& url, unsigned lineNumber, unsigned columnNumber, V8Sta ckTrace*) override; 97 void consoleAPIMessage(int contextGroupId, V8ConsoleAPIType, const String16& message, const String16& url, unsigned lineNumber, unsigned columnNumber, V8Sta ckTrace*) override;
96 98
97 std::unique_ptr<ClientMessageLoop> m_clientMessageLoop; 99 std::unique_ptr<ClientMessageLoop> m_clientMessageLoop;
98 std::unique_ptr<InspectorTaskRunner> m_taskRunner; 100 std::unique_ptr<InspectorTaskRunner> m_taskRunner;
99 bool m_paused; 101 bool m_paused;
100 102
101 static MainThreadDebugger* s_instance; 103 static MainThreadDebugger* s_instance;
102 104
103 static void querySelectorCallback(const v8::FunctionCallbackInfo<v8::Value>& ); 105 static void querySelectorCallback(const v8::FunctionCallbackInfo<v8::Value>& );
104 static void querySelectorAllCallback(const v8::FunctionCallbackInfo<v8::Valu e>&); 106 static void querySelectorAllCallback(const v8::FunctionCallbackInfo<v8::Valu e>&);
105 static void xpathSelectorCallback(const v8::FunctionCallbackInfo<v8::Value>& ); 107 static void xpathSelectorCallback(const v8::FunctionCallbackInfo<v8::Value>& );
106 }; 108 };
107 109
108 } // namespace blink 110 } // namespace blink
109 111
110 112
111 #endif // MainThreadDebugger_h 113 #endif // MainThreadDebugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698