OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/inspector_protocol/Frontend.h" | 9 #include "platform/inspector_protocol/Frontend.h" |
10 #include "wtf/PassOwnPtr.h" | 10 #include "wtf/PassOwnPtr.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 virtual void clearFrontend() = 0; | 30 virtual void clearFrontend() = 0; |
31 virtual void restore() = 0; | 31 virtual void restore() = 0; |
32 }; | 32 }; |
33 | 33 |
34 static PassOwnPtr<V8Debugger> create(v8::Isolate*, V8DebuggerClient*); | 34 static PassOwnPtr<V8Debugger> create(v8::Isolate*, V8DebuggerClient*); |
35 virtual ~V8Debugger() { } | 35 virtual ~V8Debugger() { } |
36 | 36 |
37 // Each v8::Context is a part of a group. The group id is used to find appro
apriate | 37 // Each v8::Context is a part of a group. The group id is used to find appro
apriate |
38 // V8DebuggerAgent to notify about events in the context. | 38 // V8DebuggerAgent to notify about events in the context. |
39 // |contextGroupId| must be non-0. | 39 // |contextGroupId| must be non-0. |
40 static void setContextDebugData(v8::Local<v8::Context>, const String& type,
int contextGroupId); | 40 static void setContextDebugData(v8::Local<v8::Context>, const String16& type
, int contextGroupId); |
41 static int contextId(v8::Local<v8::Context>); | 41 static int contextId(v8::Local<v8::Context>); |
42 | 42 |
43 static v8::Local<v8::Symbol> commandLineAPISymbol(v8::Isolate*); | 43 static v8::Local<v8::Symbol> commandLineAPISymbol(v8::Isolate*); |
44 static bool isCommandLineAPIMethod(const AtomicString& name); | 44 static bool isCommandLineAPIMethod(const String16& name); |
45 | 45 |
46 virtual PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>,
size_t maxStackSize) = 0; | 46 virtual PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>,
size_t maxStackSize) = 0; |
47 virtual PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) = 0; | 47 virtual PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) = 0; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace blink | 50 } // namespace blink |
51 | 51 |
52 | 52 |
53 #endif // V8Debugger_h | 53 #endif // V8Debugger_h |
OLD | NEW |