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

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

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (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 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 V8RuntimeAgentImpl_h 31 #ifndef V8RuntimeAgentImpl_h
32 #define V8RuntimeAgentImpl_h 32 #define V8RuntimeAgentImpl_h
33 33
34 #include "platform/inspector_protocol/InspectorProtocol.h" 34 #include "platform/v8_inspector/protocol/InspectorProtocol.h"
35 #include "platform/v8_inspector/protocol/Runtime.h" 35 #include "platform/v8_inspector/protocol/Runtime.h"
36 36
37 #include <v8.h> 37 #include <v8.h>
38 38
39 namespace v8_inspector { 39 namespace v8_inspector {
40 40
41 class InjectedScript; 41 class InjectedScript;
42 class InspectedContext; 42 class InspectedContext;
43 class RemoteObjectIdBase; 43 class RemoteObjectIdBase;
44 class V8ConsoleMessage; 44 class V8ConsoleMessage;
45 class V8InspectorImpl; 45 class V8InspectorImpl;
46 class V8InspectorSessionImpl; 46 class V8InspectorSessionImpl;
47 47
48 namespace protocol = blink::protocol; 48 using protocol::ErrorString;
49 using blink::protocol::Maybe; 49 using protocol::Maybe;
50 50
51 class V8RuntimeAgentImpl : public protocol::Runtime::Backend { 51 class V8RuntimeAgentImpl : public protocol::Runtime::Backend {
52 PROTOCOL_DISALLOW_COPY(V8RuntimeAgentImpl); 52 PROTOCOL_DISALLOW_COPY(V8RuntimeAgentImpl);
53 public: 53 public:
54 V8RuntimeAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, prot ocol::DictionaryValue* state); 54 V8RuntimeAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, prot ocol::DictionaryValue* state);
55 ~V8RuntimeAgentImpl() override; 55 ~V8RuntimeAgentImpl() override;
56 void restore(); 56 void restore();
57 57
58 // Part of the protocol. 58 // Part of the protocol.
59 void enable(ErrorString*) override; 59 void enable(ErrorString*) override;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 protocol::DictionaryValue* m_state; 129 protocol::DictionaryValue* m_state;
130 protocol::Runtime::Frontend m_frontend; 130 protocol::Runtime::Frontend m_frontend;
131 V8InspectorImpl* m_inspector; 131 V8InspectorImpl* m_inspector;
132 bool m_enabled; 132 bool m_enabled;
133 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi ledScripts; 133 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi ledScripts;
134 }; 134 };
135 135
136 } // namespace v8_inspector 136 } // namespace v8_inspector
137 137
138 #endif // V8RuntimeAgentImpl_h 138 #endif // V8RuntimeAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698