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

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

Issue 2151273003: [DevTools] Move browser logging from Console domain to Log domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@internals-method
Patch Set: protocol improvements Created 4 years, 5 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 #include "core/inspector/ConsoleMessage.h" 5 #include "core/inspector/ConsoleMessage.h"
6 6
7 #include "bindings/core/v8/SourceLocation.h" 7 #include "bindings/core/v8/SourceLocation.h"
8 #include "wtf/CurrentTime.h" 8 #include "wtf/CurrentTime.h"
9 #include <memory> 9 #include <memory>
10 10
(...skipping 29 matching lines...) Expand all
40 40
41 ConsoleMessage::ConsoleMessage(MessageSource source, 41 ConsoleMessage::ConsoleMessage(MessageSource source,
42 MessageLevel level, 42 MessageLevel level,
43 const String& message, 43 const String& message,
44 std::unique_ptr<SourceLocation> location) 44 std::unique_ptr<SourceLocation> location)
45 : m_source(source) 45 : m_source(source)
46 , m_level(level) 46 , m_level(level)
47 , m_message(message) 47 , m_message(message)
48 , m_location(std::move(location)) 48 , m_location(std::move(location))
49 , m_requestIdentifier(0) 49 , m_requestIdentifier(0)
50 , m_timestamp(WTF::currentTime()) 50 , m_timestamp(WTF::currentTimeMS())
51 { 51 {
52 } 52 }
53 53
54 ConsoleMessage::~ConsoleMessage() 54 ConsoleMessage::~ConsoleMessage()
55 { 55 {
56 } 56 }
57 57
58 SourceLocation* ConsoleMessage::location() const 58 SourceLocation* ConsoleMessage::location() const
59 { 59 {
60 return m_location.get(); 60 return m_location.get();
(...skipping 27 matching lines...) Expand all
88 const String& ConsoleMessage::workerId() const 88 const String& ConsoleMessage::workerId() const
89 { 89 {
90 return m_workerId; 90 return m_workerId;
91 } 91 }
92 92
93 DEFINE_TRACE(ConsoleMessage) 93 DEFINE_TRACE(ConsoleMessage)
94 { 94 {
95 } 95 }
96 96
97 } // namespace blink 97 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698