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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8StackTraceImpl.h

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win compile Created 4 years, 3 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 #ifndef V8StackTraceImpl_h 5 #ifndef V8StackTraceImpl_h
6 #define V8StackTraceImpl_h 6 #define V8StackTraceImpl_h
7 7
8 #include "platform/inspector_protocol/InspectorProtocol.h" 8 #include "platform/v8_inspector/Allocator.h"
9 #include "platform/v8_inspector/protocol/Forward.h"
9 #include "platform/v8_inspector/protocol/Runtime.h" 10 #include "platform/v8_inspector/protocol/Runtime.h"
10 #include "platform/v8_inspector/public/V8StackTrace.h" 11 #include "platform/v8_inspector/public/V8StackTrace.h"
11 12
12 #include <vector> 13 #include <vector>
13 14
14 namespace v8_inspector { 15 namespace v8_inspector {
15 16
16 class TracedValue; 17 class TracedValue;
17 class V8Debugger; 18 class V8Debugger;
18 19
19 namespace protocol = blink::protocol;
20
21 // Note: async stack trace may have empty top stack with non-empty tail to indic ate 20 // Note: async stack trace may have empty top stack with non-empty tail to indic ate
22 // that current native-only state had some async story. 21 // that current native-only state had some async story.
23 // On the other hand, any non-top async stack is guaranteed to be non-empty. 22 // On the other hand, any non-top async stack is guaranteed to be non-empty.
24 class V8StackTraceImpl final : public V8StackTrace { 23 class V8StackTraceImpl final : public V8StackTrace {
25 PROTOCOL_DISALLOW_COPY(V8StackTraceImpl); 24 V8_INSPECTOR_DISALLOW_COPY(V8StackTraceImpl);
26 public: 25 public:
27 static const size_t maxCallStackSizeToCapture = 200; 26 static const size_t maxCallStackSizeToCapture = 200;
28 27
29 class Frame { 28 class Frame {
30 public: 29 public:
31 Frame(); 30 Frame();
32 Frame(const String16& functionName, const String16& scriptId, const Stri ng16& scriptName, int lineNumber, int column = 0); 31 Frame(const String16& functionName, const String16& scriptId, const Stri ng16& scriptName, int lineNumber, int column = 0);
33 ~Frame(); 32 ~Frame();
34 33
35 const String16& functionName() const { return m_functionName; } 34 const String16& functionName() const { return m_functionName; }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 76
78 int m_contextGroupId; 77 int m_contextGroupId;
79 String16 m_description; 78 String16 m_description;
80 std::vector<Frame> m_frames; 79 std::vector<Frame> m_frames;
81 std::unique_ptr<V8StackTraceImpl> m_parent; 80 std::unique_ptr<V8StackTraceImpl> m_parent;
82 }; 81 };
83 82
84 } // namespace v8_inspector 83 } // namespace v8_inspector
85 84
86 #endif // V8StackTraceImpl_h 85 #endif // V8StackTraceImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698