| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 using protocol::Runtime::ExceptionDetails; | 49 using protocol::Runtime::ExceptionDetails; |
| 50 using protocol::Runtime::RemoteObject; | 50 using protocol::Runtime::RemoteObject; |
| 51 | 51 |
| 52 static bool hasInternalError(ErrorString* errorString, bool hasError) | 52 static bool hasInternalError(ErrorString* errorString, bool hasError) |
| 53 { | 53 { |
| 54 if (hasError) | 54 if (hasError) |
| 55 *errorString = "Internal error"; | 55 *errorString = "Internal error"; |
| 56 return hasError; | 56 return hasError; |
| 57 } | 57 } |
| 58 | 58 |
| 59 V8RuntimeAgentImpl::V8RuntimeAgentImpl(V8InspectorSessionImpl* session, protocol
::Frontend::Runtime* frontend, protocol::DictionaryValue* state) | 59 V8RuntimeAgentImpl::V8RuntimeAgentImpl(V8InspectorSessionImpl* session, protocol
::Runtime::Frontend* frontend, protocol::DictionaryValue* state) |
| 60 : m_session(session) | 60 : m_session(session) |
| 61 , m_state(state) | 61 , m_state(state) |
| 62 , m_frontend(frontend) | 62 , m_frontend(frontend) |
| 63 , m_debugger(session->debugger()) | 63 , m_debugger(session->debugger()) |
| 64 , m_enabled(false) | 64 , m_enabled(false) |
| 65 { | 65 { |
| 66 } | 66 } |
| 67 | 67 |
| 68 V8RuntimeAgentImpl::~V8RuntimeAgentImpl() | 68 V8RuntimeAgentImpl::~V8RuntimeAgentImpl() |
| 69 { | 69 { |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 } | 410 } |
| 411 } | 411 } |
| 412 | 412 |
| 413 void V8RuntimeAgentImpl::inspect(std::unique_ptr<protocol::Runtime::RemoteObject
> objectToInspect, std::unique_ptr<protocol::DictionaryValue> hints) | 413 void V8RuntimeAgentImpl::inspect(std::unique_ptr<protocol::Runtime::RemoteObject
> objectToInspect, std::unique_ptr<protocol::DictionaryValue> hints) |
| 414 { | 414 { |
| 415 if (m_enabled) | 415 if (m_enabled) |
| 416 m_frontend->inspectRequested(std::move(objectToInspect), std::move(hints
)); | 416 m_frontend->inspectRequested(std::move(objectToInspect), std::move(hints
)); |
| 417 } | 417 } |
| 418 | 418 |
| 419 } // namespace blink | 419 } // namespace blink |
| OLD | NEW |