OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "bindings/core/v8/SourceLocation.h" | 5 #include "bindings/core/v8/SourceLocation.h" |
6 | 6 |
7 #include "bindings/core/v8/V8BindingMacros.h" | 7 #include "bindings/core/v8/V8BindingMacros.h" |
8 #include "bindings/core/v8/V8PerIsolateData.h" | 8 #include "bindings/core/v8/V8PerIsolateData.h" |
9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
10 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
11 #include "core/dom/ScriptableDocumentParser.h" | 11 #include "core/dom/ScriptableDocumentParser.h" |
12 #include "core/html/HTMLFrameOwnerElement.h" | 12 #include "core/html/HTMLFrameOwnerElement.h" |
13 #include "core/inspector/ThreadDebugger.h" | 13 #include "core/inspector/ThreadDebugger.h" |
14 #include "core/inspector/V8InspectorString.h" | 14 #include "core/inspector/V8InspectorString.h" |
15 #include "platform/ScriptForbiddenScope.h" | 15 #include "platform/ScriptForbiddenScope.h" |
16 #include "platform/TracedValue.h" | 16 #include "platform/TracedValue.h" |
17 #include "platform/v8_inspector/public/V8Inspector.h" | |
18 #include "wtf/PtrUtil.h" | 17 #include "wtf/PtrUtil.h" |
19 #include <memory> | 18 #include <memory> |
20 | 19 |
21 namespace blink { | 20 namespace blink { |
22 | 21 |
23 namespace { | 22 namespace { |
24 | 23 |
25 std::unique_ptr<v8_inspector::V8StackTrace> captureStackTrace(bool full) | 24 std::unique_ptr<v8_inspector::V8StackTrace> captureStackTrace(bool full) |
26 { | 25 { |
27 v8::Isolate* isolate = v8::Isolate::GetCurrent(); | 26 v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 } | 165 } |
167 | 166 |
168 String SourceLocation::toString() const | 167 String SourceLocation::toString() const |
169 { | 168 { |
170 if (!m_stackTrace) | 169 if (!m_stackTrace) |
171 return String(); | 170 return String(); |
172 return toCoreString(m_stackTrace->toString()); | 171 return toCoreString(m_stackTrace->toString()); |
173 } | 172 } |
174 | 173 |
175 } // namespace blink | 174 } // namespace blink |
OLD | NEW |