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

Side by Side Diff: third_party/WebKit/Source/core/inspector/ConsoleMessage.h

Issue 2010603002: Use SourceLocation when reporting runtime exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2004243002
Patch Set: test fixes Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ConsoleMessage_h 5 #ifndef ConsoleMessage_h
6 #define ConsoleMessage_h 6 #define ConsoleMessage_h
7 7
8 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // Shortcut when location is unavailable. This method captures callstack. 37 // Shortcut when location is unavailable. This method captures callstack.
38 static ConsoleMessage* create(MessageSource, MessageLevel, const String& mes sage); 38 static ConsoleMessage* create(MessageSource, MessageLevel, const String& mes sage);
39 39
40 // This method captures callstack. 40 // This method captures callstack.
41 static ConsoleMessage* createForRequest(MessageSource, MessageLevel, const S tring& message, const String& url, unsigned long requestIdentifier); 41 static ConsoleMessage* createForRequest(MessageSource, MessageLevel, const S tring& message, const String& url, unsigned long requestIdentifier);
42 42
43 // This method captures callstack. 43 // This method captures callstack.
44 static ConsoleMessage* createForConsoleAPI(MessageLevel, MessageType, const String& message, ScriptArguments*); 44 static ConsoleMessage* createForConsoleAPI(MessageLevel, MessageType, const String& message, ScriptArguments*);
45 45
46 static ConsoleMessage* create(MessageSource, MessageLevel, const String& mes sage, PassOwnPtr<SourceLocation>); 46 static ConsoleMessage* create(MessageSource, MessageLevel, const String& mes sage, PassOwnPtr<SourceLocation>, ScriptArguments* = nullptr);
47 static ConsoleMessage* create(MessageSource, MessageLevel, const String& mes sage, const String& url, unsigned lineNumber, unsigned columnNumber, std::unique _ptr<V8StackTrace>, int scriptId, ScriptArguments*); 47 static ConsoleMessage* create(MessageSource, MessageLevel, const String& mes sage, const String& url, unsigned lineNumber, unsigned columnNumber, std::unique _ptr<V8StackTrace>, int scriptId, ScriptArguments*);
48 48
49 ~ConsoleMessage(); 49 ~ConsoleMessage();
50 50
51 MessageType type() const; 51 MessageType type() const;
52 int scriptId() const; 52 int scriptId() const;
53 const String& url() const; 53 const String& url() const;
54 unsigned lineNumber() const; 54 unsigned lineNumber() const;
55 unsigned columnNumber() const; 55 unsigned columnNumber() const;
56 V8StackTrace* stackTrace() const; 56 V8StackTrace* stackTrace() const;
(...skipping 28 matching lines...) Expand all
85 Member<ScriptArguments> m_scriptArguments; 85 Member<ScriptArguments> m_scriptArguments;
86 unsigned long m_requestIdentifier; 86 unsigned long m_requestIdentifier;
87 double m_timestamp; 87 double m_timestamp;
88 unsigned m_messageId; 88 unsigned m_messageId;
89 unsigned m_relatedMessageId; 89 unsigned m_relatedMessageId;
90 }; 90 };
91 91
92 } // namespace blink 92 } // namespace blink
93 93
94 #endif // ConsoleMessage_h 94 #endif // ConsoleMessage_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.cpp ('k') | third_party/WebKit/Source/core/inspector/ConsoleMessage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698