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

Side by Side Diff: Source/core/inspector/ScriptDebugListener.h

Issue 15096004: Passing hit breakpoint IDs to ScriptDebugServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 14 matching lines...) Expand all
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #ifndef ScriptDebugListener_h 30 #ifndef ScriptDebugListener_h
31 #define ScriptDebugListener_h 31 #define ScriptDebugListener_h
32 32
33 33
34 #include "bindings/v8/ScriptState.h" 34 #include "bindings/v8/ScriptState.h"
35 #include <wtf/Forward.h> 35 #include "wtf/Forward.h"
36 #include <wtf/text/WTFString.h> 36 #include "wtf/Vector.h"
37 #include "wtf/text/WTFString.h"
37 38
38 namespace WebCore { 39 namespace WebCore {
39 class ScriptValue; 40 class ScriptValue;
40 41
41 class ScriptDebugListener { 42 class ScriptDebugListener {
42 public: 43 public:
43 class Script { 44 class Script {
44 public: 45 public:
45 Script() 46 Script()
46 : startLine(0) 47 : startLine(0)
(...skipping 13 matching lines...) Expand all
60 int endColumn; 61 int endColumn;
61 bool isContentScript; 62 bool isContentScript;
62 63
63 void reportMemoryUsage(MemoryObjectInfo*) const; 64 void reportMemoryUsage(MemoryObjectInfo*) const;
64 }; 65 };
65 66
66 virtual ~ScriptDebugListener() { } 67 virtual ~ScriptDebugListener() { }
67 68
68 virtual void didParseSource(const String& scriptId, const Script&) = 0; 69 virtual void didParseSource(const String& scriptId, const Script&) = 0;
69 virtual void failedToParseSource(const String& url, const String& data, int firstLine, int errorLine, const String& errorMessage) = 0; 70 virtual void failedToParseSource(const String& url, const String& data, int firstLine, int errorLine, const String& errorMessage) = 0;
70 virtual void didPause(ScriptState*, const ScriptValue& callFrames, const Scr iptValue& exception) = 0; 71 virtual void didPause(ScriptState*, const ScriptValue& callFrames, const Scr iptValue& exception, const Vector<String>& hitBreakpoints) = 0;
71 virtual void didContinue() = 0; 72 virtual void didContinue() = 0;
72 }; 73 };
73 74
74 } // namespace WebCore 75 } // namespace WebCore
75 76
76 77
77 #endif // ScriptDebugListener_h 78 #endif // ScriptDebugListener_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698