OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |