OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Loca
l<v8::String>, const String16& fileName); | 105 v8::Local<v8::Script> compileInternalScript(v8::Local<v8::Context>, v8::Loca
l<v8::String>, const String16& fileName); |
106 v8::Local<v8::Context> regexContext(); | 106 v8::Local<v8::Context> regexContext(); |
107 | 107 |
108 // V8Debugger implementation | 108 // V8Debugger implementation |
109 PassOwnPtr<V8InspectorSession> connect(int contextGroupId) override; | 109 PassOwnPtr<V8InspectorSession> connect(int contextGroupId) override; |
110 void contextCreated(const V8ContextInfo&) override; | 110 void contextCreated(const V8ContextInfo&) override; |
111 void contextDestroyed(v8::Local<v8::Context>) override; | 111 void contextDestroyed(v8::Local<v8::Context>) override; |
112 void resetContextGroup(int contextGroupId) override; | 112 void resetContextGroup(int contextGroupId) override; |
113 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override; | 113 void willExecuteScript(v8::Local<v8::Context>, int scriptId) override; |
114 void didExecuteScript(v8::Local<v8::Context>) override; | 114 void didExecuteScript(v8::Local<v8::Context>) override; |
| 115 void idleStarted() override; |
| 116 void idleFinished() override; |
115 PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>, size_t
maxStackSize) override; | 117 PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>, size_t
maxStackSize) override; |
116 PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) override; | 118 PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) override; |
117 | 119 |
118 using ContextByIdMap = protocol::HashMap<int, OwnPtr<InspectedContext>>; | 120 using ContextByIdMap = protocol::HashMap<int, OwnPtr<InspectedContext>>; |
119 void discardInspectedContext(int contextGroupId, int contextId); | 121 void discardInspectedContext(int contextGroupId, int contextId); |
120 const ContextByIdMap* contextGroup(int contextGroupId); | 122 const ContextByIdMap* contextGroup(int contextGroupId); |
121 void disconnect(V8InspectorSessionImpl*); | 123 void disconnect(V8InspectorSessionImpl*); |
122 V8InspectorSessionImpl* sessionForContextGroup(int contextGroupId); | 124 V8InspectorSessionImpl* sessionForContextGroup(int contextGroupId); |
123 | 125 |
124 v8::MaybeLocal<v8::FunctionTemplate> functionTemplate(const String16& name); | 126 v8::MaybeLocal<v8::FunctionTemplate> functionTemplate(const String16& name); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 bool m_runningNestedMessageLoop; | 165 bool m_runningNestedMessageLoop; |
164 v8::Global<v8::Context> m_regexContext; | 166 v8::Global<v8::Context> m_regexContext; |
165 using FunctionTemplateMap = protocol::HashMap<String16, OwnPtr<v8::Global<v8
::FunctionTemplate>>>; | 167 using FunctionTemplateMap = protocol::HashMap<String16, OwnPtr<v8::Global<v8
::FunctionTemplate>>>; |
166 FunctionTemplateMap m_templates; | 168 FunctionTemplateMap m_templates; |
167 }; | 169 }; |
168 | 170 |
169 } // namespace blink | 171 } // namespace blink |
170 | 172 |
171 | 173 |
172 #endif // V8DebuggerImpl_h | 174 #endif // V8DebuggerImpl_h |
OLD | NEW |