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

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

Issue 376213002: DevTools: Make FrameConsole methods accept ConsoleMessage objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scriptFailedToParse
Patch Set: Created 6 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ConsoleMessage_h
6 #define ConsoleMessage_h
7
8 #include "bindings/core/v8/ScriptState.h"
9 #include "core/frame/ConsoleTypes.h"
10 #include "core/inspector/ScriptCallStack.h"
11 #include "wtf/Forward.h"
12 #include "wtf/PassRefPtr.h"
13 #include "wtf/RefCounted.h"
14 #include "wtf/text/WTFString.h"
15
16 namespace blink {
17
18 class ScriptCallStack;
19 class ScriptState;
20
21 class ConsoleMessage FINAL: public RefCounted<ConsoleMessage> {
22 public:
23 static PassRefPtr<ConsoleMessage> create(MessageSource source, MessageLevel level, const String& message, const String& url = String(), unsigned lineNumber = 0, unsigned columnNumber = 0)
24 {
25 return adoptRef(new ConsoleMessage(source, level, message, url, lineNumb er, columnNumber));
26 }
27
28 PassRefPtr<ScriptCallStack> callStack() const;
29 void setCallStack(PassRefPtr<ScriptCallStack>);
30 ScriptState* scriptState() const;
31 void setScriptState(ScriptState*);
32 unsigned long requestIdentifier() const;
33 void setRequestIdentifier(unsigned long);
34 const String& url() const;
35 void setURL(const String&);
36 unsigned lineNumber() const;
37 void setLineNumber(unsigned);
38
39 MessageSource source() const;
40 MessageLevel level() const;
41 const String& message() const;
42 unsigned columnNumber() const;
43
44 private:
45 ConsoleMessage();
46 ConsoleMessage(MessageSource, MessageLevel, const String& message, const Str ing& url = String(), unsigned lineNumber = 0, unsigned columnNumber = 0);
47
48 MessageSource m_source;
49 MessageLevel m_level;
50 String m_message;
51 String m_url;
52 unsigned m_lineNumber;
53 unsigned m_columnNumber;
54 RefPtr<ScriptCallStack> m_callStack;
55 ScriptState* m_scriptState;
56 unsigned long m_requestIdentifier;
57 };
58
59 } // namespace WebCore
60
61 #endif // ConsoleMessage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698