OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 InjectedScript_h | 31 #ifndef InjectedScript_h |
32 #define InjectedScript_h | 32 #define InjectedScript_h |
33 | 33 |
34 #include "platform/inspector_protocol/InspectorProtocol.h" | |
35 #include "platform/v8_inspector/InjectedScriptNative.h" | 34 #include "platform/v8_inspector/InjectedScriptNative.h" |
36 #include "platform/v8_inspector/InspectedContext.h" | 35 #include "platform/v8_inspector/InspectedContext.h" |
37 #include "platform/v8_inspector/V8Console.h" | 36 #include "platform/v8_inspector/V8Console.h" |
38 #include "platform/v8_inspector/V8Debugger.h" | 37 #include "platform/v8_inspector/V8Debugger.h" |
| 38 #include "platform/v8_inspector/protocol/InspectorProtocol.h" |
39 #include "platform/v8_inspector/protocol/Runtime.h" | 39 #include "platform/v8_inspector/protocol/Runtime.h" |
40 | 40 |
41 #include <v8.h> | 41 #include <v8.h> |
42 | 42 |
43 namespace v8_inspector { | 43 namespace v8_inspector { |
44 | 44 |
45 class RemoteObjectId; | 45 class RemoteObjectId; |
46 class V8FunctionCall; | 46 class V8FunctionCall; |
47 class V8InspectorImpl; | 47 class V8InspectorImpl; |
48 class V8InspectorSessionImpl; | 48 class V8InspectorSessionImpl; |
49 | 49 |
50 namespace protocol = blink::protocol; | 50 using protocol::ErrorString; |
51 using blink::protocol::Maybe; | 51 using protocol::Maybe; |
52 | 52 |
53 class InjectedScript final { | 53 class InjectedScript final { |
54 PROTOCOL_DISALLOW_COPY(InjectedScript); | 54 PROTOCOL_DISALLOW_COPY(InjectedScript); |
55 public: | 55 public: |
56 static std::unique_ptr<InjectedScript> create(InspectedContext*); | 56 static std::unique_ptr<InjectedScript> create(InspectedContext*); |
57 ~InjectedScript(); | 57 ~InjectedScript(); |
58 | 58 |
59 InspectedContext* context() const { return m_context; } | 59 InspectedContext* context() const { return m_context; } |
60 | 60 |
61 void getProperties(ErrorString*, v8::Local<v8::Object>, const String16& grou
pName, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, st
d::unique_ptr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, M
aybe<protocol::Runtime::ExceptionDetails>*); | 61 void getProperties(ErrorString*, v8::Local<v8::Object>, const String16& grou
pName, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, st
d::unique_ptr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, M
aybe<protocol::Runtime::ExceptionDetails>*); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 InspectedContext* m_context; | 162 InspectedContext* m_context; |
163 v8::Global<v8::Value> m_value; | 163 v8::Global<v8::Value> m_value; |
164 v8::Global<v8::Value> m_lastEvaluationResult; | 164 v8::Global<v8::Value> m_lastEvaluationResult; |
165 std::unique_ptr<InjectedScriptNative> m_native; | 165 std::unique_ptr<InjectedScriptNative> m_native; |
166 v8::Global<v8::Object> m_commandLineAPI; | 166 v8::Global<v8::Object> m_commandLineAPI; |
167 }; | 167 }; |
168 | 168 |
169 } // namespace v8_inspector | 169 } // namespace v8_inspector |
170 | 170 |
171 #endif | 171 #endif |
OLD | NEW |