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

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

Issue 1774323002: [DevTools] Remove extra plumbing from InspectorWorkerAgent, prepare to multi-client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed leaks Created 4 years, 9 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 "core/frame/ConsoleTypes.h" 10 #include "core/frame/ConsoleTypes.h"
11 #include "core/inspector/ConsoleAPITypes.h" 11 #include "core/inspector/ConsoleAPITypes.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 WorkerInspectorProxy;
24 24
25 class CORE_EXPORT ConsoleMessage final: public RefCountedWillBeGarbageCollectedF inalized<ConsoleMessage> { 25 class CORE_EXPORT ConsoleMessage final: public RefCountedWillBeGarbageCollectedF inalized<ConsoleMessage> {
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;
36 void setScriptId(int); 36 void setScriptId(int);
37 const String& url() const; 37 const String& url() const;
38 void setURL(const String&); 38 void setURL(const String&);
39 unsigned lineNumber() const; 39 unsigned lineNumber() const;
40 void setLineNumber(unsigned); 40 void setLineNumber(unsigned);
41 PassRefPtr<ScriptCallStack> callStack() const; 41 PassRefPtr<ScriptCallStack> callStack() const;
42 void setCallStack(PassRefPtr<ScriptCallStack>); 42 void setCallStack(PassRefPtr<ScriptCallStack>);
43 ScriptState* getScriptState() const; 43 ScriptState* getScriptState() const;
44 void setScriptState(ScriptState*); 44 void setScriptState(ScriptState*);
45 PassRefPtrWillBeRawPtr<ScriptArguments> scriptArguments() const; 45 PassRefPtrWillBeRawPtr<ScriptArguments> scriptArguments() const;
46 void setScriptArguments(PassRefPtrWillBeRawPtr<ScriptArguments>); 46 void setScriptArguments(PassRefPtrWillBeRawPtr<ScriptArguments>);
47 unsigned long requestIdentifier() const; 47 unsigned long requestIdentifier() const;
48 void setRequestIdentifier(unsigned long); 48 void setRequestIdentifier(unsigned long);
49 double timestamp() const; 49 double timestamp() const;
50 void setTimestamp(double); 50 void setTimestamp(double);
51 WorkerGlobalScopeProxy* workerGlobalScopeProxy() { return m_workerProxy; } 51 WorkerInspectorProxy* workerInspectorProxy() { return m_workerProxy; }
52 void setWorkerGlobalScopeProxy(WorkerGlobalScopeProxy* proxy) { m_workerProx y = proxy; } 52 void setWorkerInspectorProxy(WorkerInspectorProxy* proxy) { m_workerProxy = proxy; }
53 unsigned assignMessageId(); 53 unsigned assignMessageId();
54 unsigned messageId() const { return m_messageId; } 54 unsigned messageId() const { return m_messageId; }
55 unsigned relatedMessageId() const { return m_relatedMessageId; } 55 unsigned relatedMessageId() const { return m_relatedMessageId; }
56 void setRelatedMessageId(unsigned relatedMessageId) { m_relatedMessageId = r elatedMessageId; } 56 void setRelatedMessageId(unsigned relatedMessageId) { m_relatedMessageId = r elatedMessageId; }
57 57
58 MessageSource source() const; 58 MessageSource source() const;
59 MessageLevel level() const; 59 MessageLevel level() const;
60 const String& message() const; 60 const String& message() const;
61 unsigned columnNumber() const; 61 unsigned columnNumber() const;
62 62
(...skipping 13 matching lines...) Expand all
76 String m_message; 76 String m_message;
77 int m_scriptId; 77 int m_scriptId;
78 String m_url; 78 String m_url;
79 unsigned m_lineNumber; 79 unsigned m_lineNumber;
80 unsigned m_columnNumber; 80 unsigned m_columnNumber;
81 RefPtr<ScriptCallStack> m_callStack; 81 RefPtr<ScriptCallStack> m_callStack;
82 OwnPtr<ScriptStateProtectingContext> m_scriptState; 82 OwnPtr<ScriptStateProtectingContext> m_scriptState;
83 RefPtrWillBeMember<ScriptArguments> m_scriptArguments; 83 RefPtrWillBeMember<ScriptArguments> m_scriptArguments;
84 unsigned long m_requestIdentifier; 84 unsigned long m_requestIdentifier;
85 double m_timestamp; 85 double m_timestamp;
86 WorkerGlobalScopeProxy* m_workerProxy; 86 RawPtrWillBeMember<WorkerInspectorProxy> m_workerProxy;
87 unsigned m_messageId; 87 unsigned m_messageId;
88 unsigned m_relatedMessageId; 88 unsigned m_relatedMessageId;
89 }; 89 };
90 90
91 } // namespace blink 91 } // namespace blink
92 92
93 #endif // ConsoleMessage_h 93 #endif // ConsoleMessage_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameConsole.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