| 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 29 matching lines...) Expand all Loading... |
| 40 // |contextGroupId| must be non-0. | 40 // |contextGroupId| must be non-0. |
| 41 static void setContextDebugData(v8::Local<v8::Context>, const String16& type
, int contextGroupId); | 41 static void setContextDebugData(v8::Local<v8::Context>, const String16& type
, int contextGroupId); |
| 42 static int contextId(v8::Local<v8::Context>); | 42 static int contextId(v8::Local<v8::Context>); |
| 43 | 43 |
| 44 // Context should have been already marked with |setContextDebugData| call. | 44 // Context should have been already marked with |setContextDebugData| call. |
| 45 virtual void contextCreated(const V8ContextInfo&) = 0; | 45 virtual void contextCreated(const V8ContextInfo&) = 0; |
| 46 virtual void contextDestroyed(v8::Local<v8::Context>) = 0; | 46 virtual void contextDestroyed(v8::Local<v8::Context>) = 0; |
| 47 | 47 |
| 48 static v8::Local<v8::Symbol> commandLineAPISymbol(v8::Isolate*); | 48 static v8::Local<v8::Symbol> commandLineAPISymbol(v8::Isolate*); |
| 49 static bool isCommandLineAPIMethod(const String16& name); | 49 static bool isCommandLineAPIMethod(const String16& name); |
| 50 static bool isCommandLineAPIGetter(const String16& name); |
| 50 | 51 |
| 51 virtual PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>,
size_t maxStackSize) = 0; | 52 virtual PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>,
size_t maxStackSize) = 0; |
| 52 virtual PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) = 0; | 53 virtual PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) = 0; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace blink | 56 } // namespace blink |
| 56 | 57 |
| 57 | 58 |
| 58 #endif // V8Debugger_h | 59 #endif // V8Debugger_h |
| OLD | NEW |