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 17 matching lines...) Expand all Loading... |
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 #include "src/inspector/InjectedScript.h" | 31 #include "src/inspector/InjectedScript.h" |
32 | 32 |
33 #include "src/inspector/InjectedScriptNative.h" | 33 #include "src/inspector/InjectedScriptNative.h" |
34 #include "src/inspector/InjectedScriptSource.h" | 34 #include "src/inspector/InjectedScriptSource.h" |
35 #include "src/inspector/InspectedContext.h" | 35 #include "src/inspector/InspectedContext.h" |
36 #include "src/inspector/RemoteObjectId.h" | 36 #include "src/inspector/RemoteObjectId.h" |
37 #include "src/inspector/StringUtil.h" | 37 #include "src/inspector/StringUtil.h" |
38 #include "src/inspector/V8Compat.h" | |
39 #include "src/inspector/V8Console.h" | 38 #include "src/inspector/V8Console.h" |
40 #include "src/inspector/V8FunctionCall.h" | 39 #include "src/inspector/V8FunctionCall.h" |
41 #include "src/inspector/V8InjectedScriptHost.h" | 40 #include "src/inspector/V8InjectedScriptHost.h" |
42 #include "src/inspector/V8InspectorImpl.h" | 41 #include "src/inspector/V8InspectorImpl.h" |
43 #include "src/inspector/V8InspectorSessionImpl.h" | 42 #include "src/inspector/V8InspectorSessionImpl.h" |
44 #include "src/inspector/V8StackTraceImpl.h" | 43 #include "src/inspector/V8StackTraceImpl.h" |
45 #include "src/inspector/V8ValueCopier.h" | 44 #include "src/inspector/V8ValueCopier.h" |
46 #include "src/inspector/protocol/Protocol.h" | 45 #include "src/inspector/protocol/Protocol.h" |
47 #include "src/inspector/public/V8InspectorClient.h" | 46 |
| 47 #include "include/v8-inspector.h" |
48 | 48 |
49 namespace v8_inspector { | 49 namespace v8_inspector { |
50 | 50 |
51 using protocol::Array; | 51 using protocol::Array; |
52 using protocol::Runtime::PropertyDescriptor; | 52 using protocol::Runtime::PropertyDescriptor; |
53 using protocol::Runtime::InternalPropertyDescriptor; | 53 using protocol::Runtime::InternalPropertyDescriptor; |
54 using protocol::Runtime::RemoteObject; | 54 using protocol::Runtime::RemoteObject; |
55 using protocol::Maybe; | 55 using protocol::Maybe; |
56 | 56 |
57 static bool hasInternalError(ErrorString* errorString, bool hasError) { | 57 static bool hasInternalError(ErrorString* errorString, bool hasError) { |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 void InjectedScript::CallFrameScope::findInjectedScript( | 559 void InjectedScript::CallFrameScope::findInjectedScript( |
560 V8InspectorSessionImpl* session) { | 560 V8InspectorSessionImpl* session) { |
561 std::unique_ptr<RemoteCallFrameId> remoteId = | 561 std::unique_ptr<RemoteCallFrameId> remoteId = |
562 RemoteCallFrameId::parse(m_errorString, m_remoteCallFrameId); | 562 RemoteCallFrameId::parse(m_errorString, m_remoteCallFrameId); |
563 if (!remoteId) return; | 563 if (!remoteId) return; |
564 m_frameOrdinal = static_cast<size_t>(remoteId->frameOrdinal()); | 564 m_frameOrdinal = static_cast<size_t>(remoteId->frameOrdinal()); |
565 m_injectedScript = session->findInjectedScript(m_errorString, remoteId.get()); | 565 m_injectedScript = session->findInjectedScript(m_errorString, remoteId.get()); |
566 } | 566 } |
567 | 567 |
568 } // namespace v8_inspector | 568 } // namespace v8_inspector |
OLD | NEW |