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 #ifndef SourceLocation_h | 5 #ifndef SourceLocation_h |
6 #define SourceLocation_h | 6 #define SourceLocation_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/CrossThreadCopier.h" | 9 #include "platform/CrossThreadCopier.h" |
10 #include "platform/v8_inspector/public/V8StackTrace.h" | |
11 #include "wtf/Forward.h" | 10 #include "wtf/Forward.h" |
12 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
13 #include <memory> | 12 #include <memory> |
14 #include <v8.h> | 13 #include <v8-inspector-protocol.h> |
15 | 14 |
16 namespace blink { | 15 namespace blink { |
17 | 16 |
18 class ExecutionContext; | 17 class ExecutionContext; |
19 class TracedValue; | 18 class TracedValue; |
20 | 19 |
21 class CORE_EXPORT SourceLocation { | 20 class CORE_EXPORT SourceLocation { |
22 public: | 21 public: |
23 // Zero lineNumber and columnNumber mean unknown. Captures current stack tra
ce. | 22 // Zero lineNumber and columnNumber mean unknown. Captures current stack tra
ce. |
24 static std::unique_ptr<SourceLocation> capture(const String& url, unsigned l
ineNumber, unsigned columnNumber); | 23 static std::unique_ptr<SourceLocation> capture(const String& url, unsigned l
ineNumber, unsigned columnNumber); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 String m_url; | 60 String m_url; |
62 unsigned m_lineNumber; | 61 unsigned m_lineNumber; |
63 unsigned m_columnNumber; | 62 unsigned m_columnNumber; |
64 std::unique_ptr<v8_inspector::V8StackTrace> m_stackTrace; | 63 std::unique_ptr<v8_inspector::V8StackTrace> m_stackTrace; |
65 int m_scriptId; | 64 int m_scriptId; |
66 }; | 65 }; |
67 | 66 |
68 } // namespace blink | 67 } // namespace blink |
69 | 68 |
70 #endif // SourceLocation_h | 69 #endif // SourceLocation_h |
OLD | NEW |