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

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

Issue 464293002: [DevTools] ConsoleMessage storage moved from ConsoleAgent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@remove-can-generate
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 ConsoleMessageStorage_h
6 #define ConsoleMessageStorage_h
7
8 #include "core/inspector/ConsoleMessage.h"
9 #include "wtf/Forward.h"
10
11 namespace blink {
12
13 class LocalDOMWindow;
14
15 class ConsoleMessageStorage FINAL {
16 WTF_MAKE_NONCOPYABLE(ConsoleMessageStorage);
17 WTF_MAKE_FAST_ALLOCATED;
18 public:
19 static PassOwnPtr<ConsoleMessageStorage> create(ExecutionContext* context, L ocalFrame* frame = 0)
20 {
21 return adoptPtr(new ConsoleMessageStorage(context, frame));
22 }
23
24 void reportMessage(PassRefPtr<ConsoleMessage>);
25 void clear();
26
27 Vector<unsigned> argumentCounts();
aandrey 2014/08/26 08:56:42 const method?
kozyatinskiy1 2014/08/26 09:39:29 Done.
28 void windowCleared(LocalDOMWindow*);
29
30 size_t size() const;
31 PassRefPtr<ConsoleMessage> at(size_t index);
aandrey 2014/08/26 08:56:42 const method?
kozyatinskiy1 2014/08/26 09:39:29 Done.
32
33 int expiredCount() const;
34
35 private:
36 ConsoleMessageStorage(ExecutionContext*, LocalFrame*);
yurys 2014/08/26 07:38:56 Please use two separate constructors for Execution
kozyatinskiy1 2014/08/26 09:39:29 Done.
37
38 ExecutionContext* executionContext() const;
39
40 int m_expiredCount;
41 Vector<RefPtr<ConsoleMessage> > m_messages;
42 ExecutionContext* m_context;
43 LocalFrame* m_frame;
44 };
45
46 } // namespace blink
47
48 #endif // ConsoleMessageStorage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698