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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8ConsoleMessage.h

Issue 2194683003: [DevTools] Cleanup v8_inspector console API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile Created 4 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
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"
11 #include "platform/v8_inspector/protocol/Runtime.h" 11 #include "platform/v8_inspector/protocol/Runtime.h"
12 #include "platform/v8_inspector/public/V8ConsoleTypes.h"
13 #include <deque> 12 #include <deque>
14 #include <v8.h> 13 #include <v8.h>
15 14
16 namespace blink { 15 namespace blink {
17 16
18 class InspectedContext; 17 class InspectedContext;
19 class V8DebuggerImpl; 18 class V8DebuggerImpl;
20 class V8InspectorSessionImpl; 19 class V8InspectorSessionImpl;
21 class V8StackTraceImpl; 20 class V8StackTraceImpl;
22 21
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 88
90 int contextGroupId() { return m_contextGroupId; } 89 int contextGroupId() { return m_contextGroupId; }
91 int expiredCount() { return m_expiredCount; } 90 int expiredCount() { return m_expiredCount; }
92 const std::deque<std::unique_ptr<V8ConsoleMessage>>& messages() const { retu rn m_messages; } 91 const std::deque<std::unique_ptr<V8ConsoleMessage>>& messages() const { retu rn m_messages; }
93 92
94 void addMessage(std::unique_ptr<V8ConsoleMessage>); 93 void addMessage(std::unique_ptr<V8ConsoleMessage>);
95 void contextDestroyed(int contextId); 94 void contextDestroyed(int contextId);
96 void clear(); 95 void clear();
97 96
98 private: 97 private:
99 void notifyClear();
100
101 V8DebuggerImpl* m_debugger; 98 V8DebuggerImpl* m_debugger;
102 int m_contextGroupId; 99 int m_contextGroupId;
103 int m_expiredCount; 100 int m_expiredCount;
104 std::deque<std::unique_ptr<V8ConsoleMessage>> m_messages; 101 std::deque<std::unique_ptr<V8ConsoleMessage>> m_messages;
105 }; 102 };
106 103
107 } // namespace blink 104 } // namespace blink
108 105
109 #endif // V8ConsoleMessage_h 106 #endif // V8ConsoleMessage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698