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

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

Issue 2260233002: [DevTools] Migrate v8_inspector/public from String16 to String{View,Buffer}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: styling 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 V8Debugger_h 5 #ifndef V8Debugger_h
6 #define V8Debugger_h 6 #define V8Debugger_h
7 7
8 #include "platform/inspector_protocol/InspectorProtocol.h" 8 #include "platform/inspector_protocol/InspectorProtocol.h"
9 #include "platform/v8_inspector/JavaScriptCallFrame.h" 9 #include "platform/v8_inspector/JavaScriptCallFrame.h"
10 #include "platform/v8_inspector/V8DebuggerScript.h" 10 #include "platform/v8_inspector/V8DebuggerScript.h"
11 #include "platform/v8_inspector/protocol/Runtime.h" 11 #include "platform/v8_inspector/protocol/Runtime.h"
12 #include "platform/v8_inspector/public/StringView.h"
12 #include "platform/v8_inspector/public/V8ContextInfo.h" 13 #include "platform/v8_inspector/public/V8ContextInfo.h"
13 14
14 #include <v8-debug.h> 15 #include <v8-debug.h>
15 #include <v8.h> 16 #include <v8.h>
16 #include <vector> 17 #include <vector>
17 18
18 namespace v8_inspector { 19 namespace v8_inspector {
19 20
20 struct ScriptBreakpoint; 21 struct ScriptBreakpoint;
21 class V8DebuggerAgentImpl; 22 class V8DebuggerAgentImpl;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } 72 v8::Local<v8::Context> pausedContext() { return m_pausedContext; }
72 73
73 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } 74 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; }
74 V8StackTraceImpl* currentAsyncCallChain(); 75 V8StackTraceImpl* currentAsyncCallChain();
75 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); 76 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int);
76 std::unique_ptr<V8StackTraceImpl> createStackTrace(v8::Local<v8::StackTrace> ); 77 std::unique_ptr<V8StackTraceImpl> createStackTrace(v8::Local<v8::StackTrace> );
77 std::unique_ptr<V8StackTraceImpl> captureStackTrace(bool fullStack); 78 std::unique_ptr<V8StackTraceImpl> captureStackTrace(bool fullStack);
78 79
79 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>, v8::Loc al<v8::Value>); 80 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>, v8::Loc al<v8::Value>);
80 81
82 void asyncTaskScheduled(const StringView& taskName, void* task, bool recurri ng);
81 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring ); 83 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring );
82 void asyncTaskCanceled(void* task); 84 void asyncTaskCanceled(void* task);
83 void asyncTaskStarted(void* task); 85 void asyncTaskStarted(void* task);
84 void asyncTaskFinished(void* task); 86 void asyncTaskFinished(void* task);
85 void allAsyncTasksCanceled(); 87 void allAsyncTasksCanceled();
86 88
87 void muteScriptParsedEvents(); 89 void muteScriptParsedEvents();
88 void unmuteScriptParsedEvents(); 90 void unmuteScriptParsedEvents();
89 91
90 private: 92 private:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 protocol::HashSet<void*> m_recurringTasks; 124 protocol::HashSet<void*> m_recurringTasks;
123 int m_maxAsyncCallStackDepth; 125 int m_maxAsyncCallStackDepth;
124 std::vector<void*> m_currentTasks; 126 std::vector<void*> m_currentTasks;
125 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; 127 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks;
126 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; 128 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap;
127 }; 129 };
128 130
129 } // namespace v8_inspector 131 } // namespace v8_inspector
130 132
131 #endif // V8Debugger_h 133 #endif // V8Debugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698