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