| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 V8ConsoleMessage_h | 5 #ifndef V8ConsoleMessage_h |
| 6 #define V8ConsoleMessage_h | 6 #define V8ConsoleMessage_h |
| 7 | 7 |
| 8 #include "platform/inspector_protocol/Collections.h" | 8 #include "platform/inspector_protocol/Collections.h" |
| 9 #include "platform/inspector_protocol/String16.h" | 9 #include "platform/inspector_protocol/String16.h" |
| 10 #include "platform/v8_inspector/protocol/Console.h" | 10 #include "platform/v8_inspector/protocol/Console.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 unsigned lineNumber, | 63 unsigned lineNumber, |
| 64 unsigned columnNumber, | 64 unsigned columnNumber, |
| 65 std::unique_ptr<V8StackTrace>, | 65 std::unique_ptr<V8StackTrace>, |
| 66 int scriptId, | 66 int scriptId, |
| 67 const String16& requestIdentifier, | 67 const String16& requestIdentifier, |
| 68 const String16& workerId); | 68 const String16& workerId); |
| 69 | 69 |
| 70 V8MessageOrigin origin() const; | 70 V8MessageOrigin origin() const; |
| 71 void reportToFrontend(protocol::Console::Frontend*, V8InspectorSessionImpl*,
bool generatePreview) const; | 71 void reportToFrontend(protocol::Console::Frontend*, V8InspectorSessionImpl*,
bool generatePreview) const; |
| 72 void reportToFrontend(protocol::Runtime::Frontend*, V8InspectorSessionImpl*,
bool generatePreview) const; | 72 void reportToFrontend(protocol::Runtime::Frontend*, V8InspectorSessionImpl*,
bool generatePreview) const; |
| 73 unsigned argumentCount() const; | |
| 74 ConsoleAPIType type() const; | 73 ConsoleAPIType type() const; |
| 75 void contextDestroyed(int contextId); | 74 void contextDestroyed(int contextId); |
| 76 | 75 |
| 77 private: | 76 private: |
| 78 V8ConsoleMessage(V8MessageOrigin, double timestamp, MessageSource, MessageLe
vel, const String16& message); | 77 V8ConsoleMessage(V8MessageOrigin, double timestamp, MessageSource, MessageLe
vel, const String16& message); |
| 79 | 78 |
| 80 using Arguments = std::vector<std::unique_ptr<v8::Global<v8::Value>>>; | 79 using Arguments = std::vector<std::unique_ptr<v8::Global<v8::Value>>>; |
| 81 std::unique_ptr<protocol::Array<protocol::Runtime::RemoteObject>> wrapArgume
nts(V8InspectorSessionImpl*, bool generatePreview) const; | 80 std::unique_ptr<protocol::Array<protocol::Runtime::RemoteObject>> wrapArgume
nts(V8InspectorSessionImpl*, bool generatePreview) const; |
| 82 std::unique_ptr<protocol::Runtime::RemoteObject> wrapException(V8InspectorSe
ssionImpl*, bool generatePreview) const; | 81 std::unique_ptr<protocol::Runtime::RemoteObject> wrapException(V8InspectorSe
ssionImpl*, bool generatePreview) const; |
| 83 void setLocation(const String16& url, unsigned lineNumber, unsigned columnNu
mber, std::unique_ptr<V8StackTrace>, int scriptId); | 82 void setLocation(const String16& url, unsigned lineNumber, unsigned columnNu
mber, std::unique_ptr<V8StackTrace>, int scriptId); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 private: | 116 private: |
| 118 V8DebuggerImpl* m_debugger; | 117 V8DebuggerImpl* m_debugger; |
| 119 int m_contextGroupId; | 118 int m_contextGroupId; |
| 120 int m_expiredCount; | 119 int m_expiredCount; |
| 121 std::deque<std::unique_ptr<V8ConsoleMessage>> m_messages; | 120 std::deque<std::unique_ptr<V8ConsoleMessage>> m_messages; |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 } // namespace blink | 123 } // namespace blink |
| 125 | 124 |
| 126 #endif // V8ConsoleMessage_h | 125 #endif // V8ConsoleMessage_h |
| OLD | NEW |