| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 class RemoteObjectIdBase; | 45 class RemoteObjectIdBase; |
| 46 class V8DebuggerImpl; | 46 class V8DebuggerImpl; |
| 47 class V8InspectorSessionImpl; | 47 class V8InspectorSessionImpl; |
| 48 | 48 |
| 49 namespace protocol { | 49 namespace protocol { |
| 50 class DictionaryValue; | 50 class DictionaryValue; |
| 51 } | 51 } |
| 52 | 52 |
| 53 using protocol::Maybe; | 53 using protocol::Maybe; |
| 54 | 54 |
| 55 class V8RuntimeAgentImpl : public protocol::Backend::Runtime { | 55 class V8RuntimeAgentImpl : public protocol::Runtime::Backend { |
| 56 PROTOCOL_DISALLOW_COPY(V8RuntimeAgentImpl); | 56 PROTOCOL_DISALLOW_COPY(V8RuntimeAgentImpl); |
| 57 public: | 57 public: |
| 58 V8RuntimeAgentImpl(V8InspectorSessionImpl*, protocol::Frontend::Runtime*, pr
otocol::DictionaryValue* state); | 58 V8RuntimeAgentImpl(V8InspectorSessionImpl*, protocol::Runtime::Frontend*, pr
otocol::DictionaryValue* state); |
| 59 ~V8RuntimeAgentImpl() override; | 59 ~V8RuntimeAgentImpl() override; |
| 60 void restore(); | 60 void restore(); |
| 61 | 61 |
| 62 // Part of the protocol. | 62 // Part of the protocol. |
| 63 void enable(ErrorString*) override; | 63 void enable(ErrorString*) override; |
| 64 void disable(ErrorString*) override; | 64 void disable(ErrorString*) override; |
| 65 void evaluate(ErrorString*, | 65 void evaluate(ErrorString*, |
| 66 const String16& expression, | 66 const String16& expression, |
| 67 const Maybe<String16>& objectGroup, | 67 const Maybe<String16>& objectGroup, |
| 68 const Maybe<bool>& includeCommandLineAPI, | 68 const Maybe<bool>& includeCommandLineAPI, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 Maybe<protocol::Runtime::ExceptionDetails>*) override; | 113 Maybe<protocol::Runtime::ExceptionDetails>*) override; |
| 114 | 114 |
| 115 void reset(); | 115 void reset(); |
| 116 void reportExecutionContextCreated(InspectedContext*); | 116 void reportExecutionContextCreated(InspectedContext*); |
| 117 void reportExecutionContextDestroyed(InspectedContext*); | 117 void reportExecutionContextDestroyed(InspectedContext*); |
| 118 void inspect(std::unique_ptr<protocol::Runtime::RemoteObject> objectToInspec
t, std::unique_ptr<protocol::DictionaryValue> hints); | 118 void inspect(std::unique_ptr<protocol::Runtime::RemoteObject> objectToInspec
t, std::unique_ptr<protocol::DictionaryValue> hints); |
| 119 | 119 |
| 120 private: | 120 private: |
| 121 V8InspectorSessionImpl* m_session; | 121 V8InspectorSessionImpl* m_session; |
| 122 protocol::DictionaryValue* m_state; | 122 protocol::DictionaryValue* m_state; |
| 123 protocol::Frontend::Runtime* m_frontend; | 123 protocol::Runtime::Frontend* m_frontend; |
| 124 V8DebuggerImpl* m_debugger; | 124 V8DebuggerImpl* m_debugger; |
| 125 bool m_enabled; | 125 bool m_enabled; |
| 126 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi
ledScripts; | 126 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi
ledScripts; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace blink | 129 } // namespace blink |
| 130 | 130 |
| 131 #endif // V8RuntimeAgentImpl_h | 131 #endif // V8RuntimeAgentImpl_h |
| OLD | NEW |