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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8InspectorImpl.h

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win compile Created 4 years, 3 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) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, 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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef V8InspectorImpl_h 31 #ifndef V8InspectorImpl_h
32 #define V8InspectorImpl_h 32 #define V8InspectorImpl_h
33 33
34 #include "platform/inspector_protocol/InspectorProtocol.h" 34 #include "platform/v8_inspector/Allocator.h"
35 #include "platform/v8_inspector/protocol/Protocol.h"
35 #include "platform/v8_inspector/public/V8Inspector.h" 36 #include "platform/v8_inspector/public/V8Inspector.h"
36 37
37 #include <v8-debug.h> 38 #include <v8-debug.h>
38 #include <v8.h> 39 #include <v8.h>
39 #include <vector> 40 #include <vector>
40 41
41 namespace v8_inspector { 42 namespace v8_inspector {
42 43
43 class InspectedContext; 44 class InspectedContext;
44 class V8ConsoleMessageStorage; 45 class V8ConsoleMessageStorage;
45 class V8Debugger; 46 class V8Debugger;
46 class V8DebuggerAgentImpl; 47 class V8DebuggerAgentImpl;
47 class V8InspectorSessionImpl; 48 class V8InspectorSessionImpl;
48 class V8RuntimeAgentImpl; 49 class V8RuntimeAgentImpl;
49 class V8StackTraceImpl; 50 class V8StackTraceImpl;
50 51
51 namespace protocol = blink::protocol;
52
53 class V8InspectorImpl : public V8Inspector { 52 class V8InspectorImpl : public V8Inspector {
54 PROTOCOL_DISALLOW_COPY(V8InspectorImpl); 53 V8_INSPECTOR_DISALLOW_COPY(V8InspectorImpl);
55 public: 54 public:
56 V8InspectorImpl(v8::Isolate*, V8InspectorClient*); 55 V8InspectorImpl(v8::Isolate*, V8InspectorClient*);
57 ~V8InspectorImpl() override; 56 ~V8InspectorImpl() override;
58 57
59 v8::Isolate* isolate() const { return m_isolate; } 58 v8::Isolate* isolate() const { return m_isolate; }
60 V8InspectorClient* client() { return m_client; } 59 V8InspectorClient* client() { return m_client; }
61 V8Debugger* debugger() { return m_debugger.get(); } 60 V8Debugger* debugger() { return m_debugger.get(); }
62 61
63 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca l<v8::Script>); 62 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Loca l<v8::Script>);
64 v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, v8::Local<v8 ::Context>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[] ); 63 v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, v8::Local<v8 ::Context>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[] );
65 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context> , v8::Local<v8::String>); 64 v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8::Context> , v8::Local<v8::String>);
66 v8::Local<v8::Script> compileScript(v8::Local<v8::Context>, v8::Local<v8::St ring>, const String16& fileName, bool markAsInternal); 65 v8::Local<v8::Script> compileScript(v8::Local<v8::Context>, v8::Local<v8::St ring>, const String16& fileName, bool markAsInternal);
67 v8::Local<v8::Context> regexContext(); 66 v8::Local<v8::Context> regexContext();
68 67
69 // V8Inspector implementation. 68 // V8Inspector implementation.
70 std::unique_ptr<V8InspectorSession> connect(int contextGroupId, protocol::Fr ontendChannel*, const StringView& state) override; 69 std::unique_ptr<V8InspectorSession> connect(int contextGroupId, V8Inspector: :Channel*, const StringView& state) override;
71 void contextCreated(const V8ContextInfo&) override; 70 void contextCreated(const V8ContextInfo&) override;
72 void contextDestroyed(v8::Local<v8::Context>) override; 71 void contextDestroyed(v8::Local<v8::Context>) override;
73 void resetContextGroup(int contextGroupId) override; 72 void resetContextGroup(int contextGroupId) override;
74 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override; 73 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override;
75 void didExecuteScript(v8::Local<v8::Context>) override; 74 void didExecuteScript(v8::Local<v8::Context>) override;
76 void idleStarted() override; 75 void idleStarted() override;
77 void idleFinished() override; 76 void idleFinished() override;
78 unsigned exceptionThrown(v8::Local<v8::Context>, const StringView& message, v8::Local<v8::Value> exception, const StringView& detailedMessage, const StringV iew& url, unsigned lineNumber, unsigned columnNumber, std::unique_ptr<V8StackTra ce>, int scriptId) override; 77 unsigned exceptionThrown(v8::Local<v8::Context>, const StringView& message, v8::Local<v8::Value> exception, const StringView& detailedMessage, const StringV iew& url, unsigned lineNumber, unsigned columnNumber, std::unique_ptr<V8StackTra ce>, int scriptId) override;
79 void exceptionRevoked(v8::Local<v8::Context>, unsigned exceptionId, const St ringView& message) override; 78 void exceptionRevoked(v8::Local<v8::Context>, unsigned exceptionId, const St ringView& message) override;
80 std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>) ov erride; 79 std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>) ov erride;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 SessionMap m_sessions; 117 SessionMap m_sessions;
119 118
120 using ConsoleStorageMap = protocol::HashMap<int, std::unique_ptr<V8ConsoleMe ssageStorage>>; 119 using ConsoleStorageMap = protocol::HashMap<int, std::unique_ptr<V8ConsoleMe ssageStorage>>;
121 ConsoleStorageMap m_consoleStorageMap; 120 ConsoleStorageMap m_consoleStorageMap;
122 }; 121 };
123 122
124 } // namespace v8_inspector 123 } // namespace v8_inspector
125 124
126 125
127 #endif // V8InspectorImpl_h 126 #endif // V8InspectorImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698