| 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 13 matching lines...) Expand all Loading... |
| 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/Allocator.h" |
| 35 #include "platform/v8_inspector/protocol/Forward.h" |
| 35 #include "platform/v8_inspector/protocol/Runtime.h" | 36 #include "platform/v8_inspector/protocol/Runtime.h" |
| 36 | 37 |
| 37 #include <v8.h> | 38 #include <v8.h> |
| 38 | 39 |
| 39 namespace v8_inspector { | 40 namespace v8_inspector { |
| 40 | 41 |
| 41 class InjectedScript; | 42 class InjectedScript; |
| 42 class InspectedContext; | 43 class InspectedContext; |
| 43 class RemoteObjectIdBase; | 44 class RemoteObjectIdBase; |
| 44 class V8ConsoleMessage; | 45 class V8ConsoleMessage; |
| 45 class V8InspectorImpl; | 46 class V8InspectorImpl; |
| 46 class V8InspectorSessionImpl; | 47 class V8InspectorSessionImpl; |
| 47 | 48 |
| 48 namespace protocol = blink::protocol; | 49 using protocol::ErrorString; |
| 49 using blink::protocol::Maybe; | 50 using protocol::Maybe; |
| 50 | 51 |
| 51 class V8RuntimeAgentImpl : public protocol::Runtime::Backend { | 52 class V8RuntimeAgentImpl : public protocol::Runtime::Backend { |
| 52 PROTOCOL_DISALLOW_COPY(V8RuntimeAgentImpl); | 53 V8_INSPECTOR_DISALLOW_COPY(V8RuntimeAgentImpl); |
| 53 public: | 54 public: |
| 54 V8RuntimeAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, prot
ocol::DictionaryValue* state); | 55 V8RuntimeAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, prot
ocol::DictionaryValue* state); |
| 55 ~V8RuntimeAgentImpl() override; | 56 ~V8RuntimeAgentImpl() override; |
| 56 void restore(); | 57 void restore(); |
| 57 | 58 |
| 58 // Part of the protocol. | 59 // Part of the protocol. |
| 59 void enable(ErrorString*) override; | 60 void enable(ErrorString*) override; |
| 60 void disable(ErrorString*) override; | 61 void disable(ErrorString*) override; |
| 61 void evaluate( | 62 void evaluate( |
| 62 const String16& expression, | 63 const String16& expression, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 protocol::DictionaryValue* m_state; | 130 protocol::DictionaryValue* m_state; |
| 130 protocol::Runtime::Frontend m_frontend; | 131 protocol::Runtime::Frontend m_frontend; |
| 131 V8InspectorImpl* m_inspector; | 132 V8InspectorImpl* m_inspector; |
| 132 bool m_enabled; | 133 bool m_enabled; |
| 133 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi
ledScripts; | 134 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi
ledScripts; |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 } // namespace v8_inspector | 137 } // namespace v8_inspector |
| 137 | 138 |
| 138 #endif // V8RuntimeAgentImpl_h | 139 #endif // V8RuntimeAgentImpl_h |
| OLD | NEW |