| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/v8_inspector/V8InjectedScriptHost.h" | 5 #include "platform/v8_inspector/V8InjectedScriptHost.h" |
| 6 | 6 |
| 7 #include "platform/JSONValues.h" | 7 #include "platform/JSONValues.h" |
| 8 #include "platform/JSONValuesForV8.h" | 8 #include "platform/JSONValuesForV8.h" |
| 9 #include "platform/v8_inspector/InjectedScript.h" | 9 #include "platform/v8_inspector/InjectedScript.h" |
| 10 #include "platform/v8_inspector/InjectedScriptHost.h" | 10 #include "platform/v8_inspector/InjectedScriptHost.h" |
| 11 #include "platform/v8_inspector/InspectorWrapper.h" | 11 #include "platform/v8_inspector/InspectorWrapper.h" |
| 12 #include "platform/v8_inspector/JavaScriptCallFrame.h" | 12 #include "platform/v8_inspector/JavaScriptCallFrame.h" |
| 13 #include "platform/v8_inspector/V8DebuggerImpl.h" | 13 #include "platform/v8_inspector/V8DebuggerImpl.h" |
| 14 #include "platform/v8_inspector/V8StringUtil.h" | 14 #include "platform/v8_inspector/V8StringUtil.h" |
| 15 #include "platform/v8_inspector/public/V8DebuggerClient.h" | 15 #include "platform/v8_inspector/public/V8DebuggerClient.h" |
| 16 #include "platform/v8_inspector/public/V8EventListenerInfo.h" | 16 #include "platform/v8_inspector/public/V8EventListenerInfo.h" |
| 17 #include "wtf/HashSet.h" |
| 17 #include "wtf/NonCopyingSort.h" | 18 #include "wtf/NonCopyingSort.h" |
| 18 #include "wtf/RefPtr.h" | 19 #include "wtf/RefPtr.h" |
| 20 #include "wtf/text/WTFString.h" |
| 19 #include <algorithm> | 21 #include <algorithm> |
| 20 | 22 |
| 21 namespace blink { | 23 namespace blink { |
| 22 | 24 |
| 23 namespace { | 25 namespace { |
| 24 | 26 |
| 25 template<typename CallbackInfo, typename S> | 27 template<typename CallbackInfo, typename S> |
| 26 inline void v8SetReturnValue(const CallbackInfo& info, const v8::Local<S> handle
) | 28 inline void v8SetReturnValue(const CallbackInfo& info, const v8::Local<S> handle
) |
| 27 { | 29 { |
| 28 info.GetReturnValue().Set(handle); | 30 info.GetReturnValue().Set(handle); |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 { | 605 { |
| 604 return InjectedScriptHostWrapper::wrap(client, constructorTemplate, context,
host); | 606 return InjectedScriptHostWrapper::wrap(client, constructorTemplate, context,
host); |
| 605 } | 607 } |
| 606 | 608 |
| 607 InjectedScriptHost* V8InjectedScriptHost::unwrap(v8::Local<v8::Context> context,
v8::Local<v8::Object> object) | 609 InjectedScriptHost* V8InjectedScriptHost::unwrap(v8::Local<v8::Context> context,
v8::Local<v8::Object> object) |
| 608 { | 610 { |
| 609 return InjectedScriptHostWrapper::unwrap(context, object); | 611 return InjectedScriptHostWrapper::unwrap(context, object); |
| 610 } | 612 } |
| 611 | 613 |
| 612 } // namespace blink | 614 } // namespace blink |
| OLD | NEW |