Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(635)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp

Issue 2856173004: Clean up bindings/core/v8 (Part 5) (Closed)
Patch Set: Fix build Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 7 #include <memory>
8 #include "bindings/core/v8/V8BindingForCore.h" 8 #include "bindings/core/v8/V8BindingForCore.h"
9 #include "bindings/core/v8/V8PerIsolateData.h"
10 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
11 #include "core/dom/ExecutionContext.h" 10 #include "core/dom/ExecutionContext.h"
12 #include "core/dom/ScriptableDocumentParser.h" 11 #include "core/dom/ScriptableDocumentParser.h"
13 #include "core/html/HTMLFrameOwnerElement.h" 12 #include "core/html/HTMLFrameOwnerElement.h"
14 #include "core/inspector/ThreadDebugger.h" 13 #include "core/inspector/ThreadDebugger.h"
15 #include "core/inspector/V8InspectorString.h" 14 #include "core/inspector/V8InspectorString.h"
16 #include "platform/ScriptForbiddenScope.h" 15 #include "platform/ScriptForbiddenScope.h"
17 #include "platform/bindings/V8BindingMacros.h" 16 #include "platform/bindings/V8BindingMacros.h"
17 #include "platform/bindings/V8PerIsolateData.h"
18 #include "platform/instrumentation/tracing/TracedValue.h" 18 #include "platform/instrumentation/tracing/TracedValue.h"
19 #include "platform/wtf/PtrUtil.h" 19 #include "platform/wtf/PtrUtil.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 namespace { 23 namespace {
24 24
25 std::unique_ptr<v8_inspector::V8StackTrace> CaptureStackTrace(bool full) { 25 std::unique_ptr<v8_inspector::V8StackTrace> CaptureStackTrace(bool full) {
26 v8::Isolate* isolate = v8::Isolate::GetCurrent(); 26 v8::Isolate* isolate = v8::Isolate::GetCurrent();
27 ThreadDebugger* debugger = ThreadDebugger::From(isolate); 27 ThreadDebugger* debugger = ThreadDebugger::From(isolate);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 return stack_trace_ ? stack_trace_->buildInspectorObject() : nullptr; 196 return stack_trace_ ? stack_trace_->buildInspectorObject() : nullptr;
197 } 197 }
198 198
199 String SourceLocation::ToString() const { 199 String SourceLocation::ToString() const {
200 if (!stack_trace_) 200 if (!stack_trace_)
201 return String(); 201 return String();
202 return ToCoreString(stack_trace_->toString()); 202 return ToCoreString(stack_trace_->toString());
203 } 203 }
204 204
205 } // namespace blink 205 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698