| 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 26 matching lines...) Expand all Loading... |
| 37 #include "platform/v8_inspector/V8Compat.h" | 37 #include "platform/v8_inspector/V8Compat.h" |
| 38 #include "platform/v8_inspector/V8Console.h" | 38 #include "platform/v8_inspector/V8Console.h" |
| 39 #include "platform/v8_inspector/V8FunctionCall.h" | 39 #include "platform/v8_inspector/V8FunctionCall.h" |
| 40 #include "platform/v8_inspector/V8InjectedScriptHost.h" | 40 #include "platform/v8_inspector/V8InjectedScriptHost.h" |
| 41 #include "platform/v8_inspector/V8InspectorImpl.h" | 41 #include "platform/v8_inspector/V8InspectorImpl.h" |
| 42 #include "platform/v8_inspector/V8InspectorSessionImpl.h" | 42 #include "platform/v8_inspector/V8InspectorSessionImpl.h" |
| 43 #include "platform/v8_inspector/V8StackTraceImpl.h" | 43 #include "platform/v8_inspector/V8StackTraceImpl.h" |
| 44 #include "platform/v8_inspector/V8StringUtil.h" | 44 #include "platform/v8_inspector/V8StringUtil.h" |
| 45 #include "platform/v8_inspector/public/V8InspectorClient.h" | 45 #include "platform/v8_inspector/public/V8InspectorClient.h" |
| 46 | 46 |
| 47 using blink::protocol::Array; | 47 namespace v8_inspector { |
| 48 using blink::protocol::Debugger::CallFrame; | |
| 49 using blink::protocol::Runtime::PropertyDescriptor; | |
| 50 using blink::protocol::Runtime::InternalPropertyDescriptor; | |
| 51 using blink::protocol::Runtime::RemoteObject; | |
| 52 using blink::protocol::Maybe; | |
| 53 | 48 |
| 54 namespace v8_inspector { | 49 using protocol::Array; |
| 50 using protocol::Debugger::CallFrame; |
| 51 using protocol::Runtime::PropertyDescriptor; |
| 52 using protocol::Runtime::InternalPropertyDescriptor; |
| 53 using protocol::Runtime::RemoteObject; |
| 54 using protocol::Maybe; |
| 55 | 55 |
| 56 static bool hasInternalError(ErrorString* errorString, bool hasError) | 56 static bool hasInternalError(ErrorString* errorString, bool hasError) |
| 57 { | 57 { |
| 58 if (hasError) | 58 if (hasError) |
| 59 *errorString = "Internal error"; | 59 *errorString = "Internal error"; |
| 60 return hasError; | 60 return hasError; |
| 61 } | 61 } |
| 62 | 62 |
| 63 std::unique_ptr<InjectedScript> InjectedScript::create(InspectedContext* inspect
edContext) | 63 std::unique_ptr<InjectedScript> InjectedScript::create(InspectedContext* inspect
edContext) |
| 64 { | 64 { |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 void InjectedScript::CallFrameScope::findInjectedScript(V8InspectorSessionImpl*
session) | 494 void InjectedScript::CallFrameScope::findInjectedScript(V8InspectorSessionImpl*
session) |
| 495 { | 495 { |
| 496 std::unique_ptr<RemoteCallFrameId> remoteId = RemoteCallFrameId::parse(m_err
orString, m_remoteCallFrameId); | 496 std::unique_ptr<RemoteCallFrameId> remoteId = RemoteCallFrameId::parse(m_err
orString, m_remoteCallFrameId); |
| 497 if (!remoteId) | 497 if (!remoteId) |
| 498 return; | 498 return; |
| 499 m_frameOrdinal = static_cast<size_t>(remoteId->frameOrdinal()); | 499 m_frameOrdinal = static_cast<size_t>(remoteId->frameOrdinal()); |
| 500 m_injectedScript = session->findInjectedScript(m_errorString, remoteId.get()
); | 500 m_injectedScript = session->findInjectedScript(m_errorString, remoteId.get()
); |
| 501 } | 501 } |
| 502 | 502 |
| 503 } // namespace v8_inspector | 503 } // namespace v8_inspector |
| OLD | NEW |