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

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

Issue 1913283003: [DevTools] Rework idle{Started,Finished} instrumentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1907663005
Patch Set: Created 4 years, 8 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 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 27 matching lines...) Expand all
38 38
39 // TODO(dgozman): make this non-static? 39 // TODO(dgozman): make this non-static?
40 static int contextId(v8::Local<v8::Context>); 40 static int contextId(v8::Local<v8::Context>);
41 41
42 virtual void contextCreated(const V8ContextInfo&) = 0; 42 virtual void contextCreated(const V8ContextInfo&) = 0;
43 virtual void contextDestroyed(v8::Local<v8::Context>) = 0; 43 virtual void contextDestroyed(v8::Local<v8::Context>) = 0;
44 // TODO(dgozman): remove this one. 44 // TODO(dgozman): remove this one.
45 virtual void resetContextGroup(int contextGroupId) = 0; 45 virtual void resetContextGroup(int contextGroupId) = 0;
46 virtual void willExecuteScript(v8::Local<v8::Context>, int scriptId) = 0; 46 virtual void willExecuteScript(v8::Local<v8::Context>, int scriptId) = 0;
47 virtual void didExecuteScript(v8::Local<v8::Context>) = 0; 47 virtual void didExecuteScript(v8::Local<v8::Context>) = 0;
48 virtual void idleStarted() = 0;
49 virtual void idleFinished() = 0;
48 50
49 virtual PassOwnPtr<V8InspectorSession> connect(int contextGroupId) = 0; 51 virtual PassOwnPtr<V8InspectorSession> connect(int contextGroupId) = 0;
50 virtual bool isPaused() = 0; 52 virtual bool isPaused() = 0;
51 53
52 static v8::Local<v8::Symbol> scopeExtensionSymbol(v8::Isolate*); 54 static v8::Local<v8::Symbol> scopeExtensionSymbol(v8::Isolate*);
53 static bool isCommandLineAPIMethod(const String16& name); 55 static bool isCommandLineAPIMethod(const String16& name);
54 static bool isCommandLineAPIGetter(const String16& name); 56 static bool isCommandLineAPIGetter(const String16& name);
55 static bool isRemoteObjectAPIMethod(const String16& name); 57 static bool isRemoteObjectAPIMethod(const String16& name);
56 58
57 virtual PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>, size_t maxStackSize) = 0; 59 virtual PassOwnPtr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>, size_t maxStackSize) = 0;
58 virtual PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) = 0; 60 virtual PassOwnPtr<V8StackTrace> captureStackTrace(size_t maxStackSize) = 0;
59 }; 61 };
60 62
61 } // namespace blink 63 } // namespace blink
62 64
63 65
64 #endif // V8Debugger_h 66 #endif // V8Debugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698