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/frame/ConsoleTypes.h" | 9 #include "core/frame/ConsoleTypes.h" |
10 #include "core/inspector/ConsoleAPITypes.h" | 10 #include "core/inspector/ConsoleAPITypes.h" |
11 #include "core/inspector/ScriptCallStack.h" | 11 #include "core/inspector/ScriptCallStack.h" |
12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
13 #include "wtf/Forward.h" | 13 #include "wtf/Forward.h" |
14 #include "wtf/PassRefPtr.h" | 14 #include "wtf/PassRefPtr.h" |
15 #include "wtf/RefCounted.h" | 15 #include "wtf/RefCounted.h" |
16 #include "wtf/text/WTFString.h" | 16 #include "wtf/text/WTFString.h" |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 | 19 |
20 class ScriptArguments; | 20 class ScriptArguments; |
21 class ScriptCallStack; | 21 class ScriptCallStack; |
22 class ScriptState; | 22 class ScriptState; |
23 class WorkerGlobalScopeProxy; | 23 class WorkerGlobalScopeProxy; |
24 | 24 |
25 class ConsoleMessage FINAL: public RefCountedWillBeGarbageCollectedFinalized<Con
soleMessage> { | 25 class ConsoleMessage final: public RefCountedWillBeGarbageCollectedFinalized<Con
soleMessage> { |
26 public: | 26 public: |
27 static PassRefPtrWillBeRawPtr<ConsoleMessage> create(MessageSource source, M
essageLevel level, const String& message, const String& url = String(), unsigned
lineNumber = 0, unsigned columnNumber = 0) | 27 static PassRefPtrWillBeRawPtr<ConsoleMessage> create(MessageSource source, M
essageLevel level, const String& message, const String& url = String(), unsigned
lineNumber = 0, unsigned columnNumber = 0) |
28 { | 28 { |
29 return adoptRefWillBeNoop(new ConsoleMessage(source, level, message, url
, lineNumber, columnNumber)); | 29 return adoptRefWillBeNoop(new ConsoleMessage(source, level, message, url
, lineNumber, columnNumber)); |
30 } | 30 } |
31 ~ConsoleMessage(); | 31 ~ConsoleMessage(); |
32 | 32 |
33 MessageType type() const; | 33 MessageType type() const; |
34 void setType(MessageType); | 34 void setType(MessageType); |
35 int scriptId() const; | 35 int scriptId() const; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 OwnPtr<ScriptStateProtectingContext> m_scriptState; | 78 OwnPtr<ScriptStateProtectingContext> m_scriptState; |
79 RefPtrWillBeMember<ScriptArguments> m_scriptArguments; | 79 RefPtrWillBeMember<ScriptArguments> m_scriptArguments; |
80 unsigned long m_requestIdentifier; | 80 unsigned long m_requestIdentifier; |
81 double m_timestamp; | 81 double m_timestamp; |
82 WorkerGlobalScopeProxy* m_workerProxy; | 82 WorkerGlobalScopeProxy* m_workerProxy; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace blink | 85 } // namespace blink |
86 | 86 |
87 #endif // ConsoleMessage_h | 87 #endif // ConsoleMessage_h |
OLD | NEW |