| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "platform/v8_inspector/V8InjectedScriptHost.h" | 44 #include "platform/v8_inspector/V8InjectedScriptHost.h" |
| 45 #include "platform/v8_inspector/V8InspectorSessionImpl.h" | 45 #include "platform/v8_inspector/V8InspectorSessionImpl.h" |
| 46 #include "platform/v8_inspector/V8StackTraceImpl.h" | 46 #include "platform/v8_inspector/V8StackTraceImpl.h" |
| 47 #include "platform/v8_inspector/V8StringUtil.h" | 47 #include "platform/v8_inspector/V8StringUtil.h" |
| 48 #include "platform/v8_inspector/public/V8Debugger.h" | 48 #include "platform/v8_inspector/public/V8Debugger.h" |
| 49 #include "platform/v8_inspector/public/V8DebuggerClient.h" | 49 #include "platform/v8_inspector/public/V8DebuggerClient.h" |
| 50 #include "platform/v8_inspector/public/V8ToProtocolValue.h" | 50 #include "platform/v8_inspector/public/V8ToProtocolValue.h" |
| 51 | 51 |
| 52 using blink::protocol::Array; | 52 using blink::protocol::Array; |
| 53 using blink::protocol::Debugger::CallFrame; | 53 using blink::protocol::Debugger::CallFrame; |
| 54 using blink::protocol::Debugger::FunctionDetails; | |
| 55 using blink::protocol::Runtime::PropertyDescriptor; | 54 using blink::protocol::Runtime::PropertyDescriptor; |
| 56 using blink::protocol::Runtime::InternalPropertyDescriptor; | 55 using blink::protocol::Runtime::InternalPropertyDescriptor; |
| 57 using blink::protocol::Runtime::RemoteObject; | 56 using blink::protocol::Runtime::RemoteObject; |
| 58 using blink::protocol::Maybe; | 57 using blink::protocol::Maybe; |
| 59 | 58 |
| 60 namespace blink { | 59 namespace blink { |
| 61 | 60 |
| 62 static bool hasInternalError(ErrorString* errorString, bool hasError) | 61 static bool hasInternalError(ErrorString* errorString, bool hasError) |
| 63 { | 62 { |
| 64 if (hasError) | 63 if (hasError) |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 void InjectedScript::CallFrameScope::findInjectedScript(V8InspectorSessionImpl*
session) | 492 void InjectedScript::CallFrameScope::findInjectedScript(V8InspectorSessionImpl*
session) |
| 494 { | 493 { |
| 495 std::unique_ptr<RemoteCallFrameId> remoteId = RemoteCallFrameId::parse(m_err
orString, m_remoteCallFrameId); | 494 std::unique_ptr<RemoteCallFrameId> remoteId = RemoteCallFrameId::parse(m_err
orString, m_remoteCallFrameId); |
| 496 if (!remoteId) | 495 if (!remoteId) |
| 497 return; | 496 return; |
| 498 m_frameOrdinal = static_cast<size_t>(remoteId->frameOrdinal()); | 497 m_frameOrdinal = static_cast<size_t>(remoteId->frameOrdinal()); |
| 499 m_injectedScript = session->findInjectedScript(m_errorString, remoteId.get()
); | 498 m_injectedScript = session->findInjectedScript(m_errorString, remoteId.get()
); |
| 500 } | 499 } |
| 501 | 500 |
| 502 } // namespace blink | 501 } // namespace blink |
| OLD | NEW |