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

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

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 21 matching lines...) Expand all
32 #define V8RuntimeAgentImpl_h 32 #define V8RuntimeAgentImpl_h
33 33
34 #include "platform/inspector_protocol/Frontend.h" 34 #include "platform/inspector_protocol/Frontend.h"
35 #include "platform/v8_inspector/public/V8RuntimeAgent.h" 35 #include "platform/v8_inspector/public/V8RuntimeAgent.h"
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 #include "wtf/Noncopyable.h" 37 #include "wtf/Noncopyable.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class InjectedScriptManager; 41 class InjectedScriptManager;
42 class JSONArray;
43 class V8DebuggerImpl; 42 class V8DebuggerImpl;
44 43
44 namespace protocol {
45 class DictionaryValue;
46 }
47
45 typedef String ErrorString; 48 typedef String ErrorString;
46 49
47 using protocol::Maybe; 50 using protocol::Maybe;
48 51
49 class V8RuntimeAgentImpl : public V8RuntimeAgent { 52 class V8RuntimeAgentImpl : public V8RuntimeAgent {
50 WTF_MAKE_NONCOPYABLE(V8RuntimeAgentImpl); 53 WTF_MAKE_NONCOPYABLE(V8RuntimeAgentImpl);
51 public: 54 public:
52 V8RuntimeAgentImpl(V8DebuggerImpl*); 55 V8RuntimeAgentImpl(V8DebuggerImpl*);
53 ~V8RuntimeAgentImpl() override; 56 ~V8RuntimeAgentImpl() override;
54 57
55 // State management methods. 58 // State management methods.
56 void setInspectorState(PassRefPtr<JSONObject>) override; 59 void setInspectorState(PassRefPtr<protocol::DictionaryValue>) override;
57 void setFrontend(protocol::Frontend::Runtime*) override; 60 void setFrontend(protocol::Frontend::Runtime*) override;
58 void clearFrontend() override; 61 void clearFrontend() override;
59 void restore() override; 62 void restore() override;
60 63
61 // Part of the protocol. 64 // Part of the protocol.
62 void enable(ErrorString*) override; 65 void enable(ErrorString*) override;
63 void disable(ErrorString*) override; 66 void disable(ErrorString*) override;
64 void evaluate(ErrorString*, 67 void evaluate(ErrorString*,
65 const String& expression, 68 const String& expression,
66 const Maybe<String>& objectGroup, 69 const Maybe<String>& objectGroup,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Context> , v8::Local<v8::Value> table, v8::Local<v8::Value> columns) override; 124 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Context> , v8::Local<v8::Value> table, v8::Local<v8::Value> columns) override;
122 void disposeObjectGroup(const String&) override; 125 void disposeObjectGroup(const String&) override;
123 v8::Local<v8::Value> findObject(const String& objectId, v8::Local<v8::Contex t>* = nullptr, String* groupName = nullptr) override; 126 v8::Local<v8::Value> findObject(const String& objectId, v8::Local<v8::Contex t>* = nullptr, String* groupName = nullptr) override;
124 void addInspectedObject(PassOwnPtr<Inspectable>) override; 127 void addInspectedObject(PassOwnPtr<Inspectable>) override;
125 void clearInspectedObjects() override; 128 void clearInspectedObjects() override;
126 129
127 void reportExecutionContextCreated(v8::Local<v8::Context>, const String& typ e, const String& origin, const String& humanReadableName, const String& frameId) override; 130 void reportExecutionContextCreated(v8::Local<v8::Context>, const String& typ e, const String& origin, const String& humanReadableName, const String& frameId) override;
128 void reportExecutionContextDestroyed(v8::Local<v8::Context>) override; 131 void reportExecutionContextDestroyed(v8::Local<v8::Context>) override;
129 PassOwnPtr<protocol::Runtime::ExceptionDetails> createExceptionDetails(v8::I solate*, v8::Local<v8::Message>); 132 PassOwnPtr<protocol::Runtime::ExceptionDetails> createExceptionDetails(v8::I solate*, v8::Local<v8::Message>);
130 133
131 RefPtr<JSONObject> m_state; 134 RefPtr<protocol::DictionaryValue> m_state;
132 protocol::Frontend::Runtime* m_frontend; 135 protocol::Frontend::Runtime* m_frontend;
133 OwnPtr<InjectedScriptManager> m_injectedScriptManager; 136 OwnPtr<InjectedScriptManager> m_injectedScriptManager;
134 V8DebuggerImpl* m_debugger; 137 V8DebuggerImpl* m_debugger;
135 bool m_enabled; 138 bool m_enabled;
136 HashMap<String, OwnPtr<v8::Global<v8::Script>>> m_compiledScripts; 139 HashMap<String, OwnPtr<v8::Global<v8::Script>>> m_compiledScripts;
137 }; 140 };
138 141
139 } // namespace blink 142 } // namespace blink
140 143
141 #endif // V8RuntimeAgentImpl_h 144 #endif // V8RuntimeAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698