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

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

Issue 517213003: Oilpan: fix build after r181083 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Re-intro ~FrameConsole non-Oilpan Created 6 years, 3 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
« no previous file with comments | « Source/core/frame/LocalFrame.h ('k') | Source/core/inspector/ConsoleMessageStorage.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef ConsoleMessageStorage_h 5 #ifndef ConsoleMessageStorage_h
6 #define ConsoleMessageStorage_h 6 #define ConsoleMessageStorage_h
7 7
8 #include "core/inspector/ConsoleMessage.h" 8 #include "core/inspector/ConsoleMessage.h"
9 #include "platform/heap/Handle.h"
9 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 class LocalDOMWindow; 14 class LocalDOMWindow;
14 15
15 class ConsoleMessageStorage FINAL { 16 class ConsoleMessageStorage FINAL : public NoBaseWillBeGarbageCollected<ConsoleM essageStorage> {
16 WTF_MAKE_NONCOPYABLE(ConsoleMessageStorage); 17 WTF_MAKE_NONCOPYABLE(ConsoleMessageStorage);
17 WTF_MAKE_FAST_ALLOCATED; 18 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
18 public: 19 public:
19 static PassOwnPtr<ConsoleMessageStorage> createForWorker(ExecutionContext* c ontext) 20 static PassOwnPtrWillBeRawPtr<ConsoleMessageStorage> createForWorker(Executi onContext* context)
20 { 21 {
21 return adoptPtr(new ConsoleMessageStorage(context)); 22 return adoptPtrWillBeNoop(new ConsoleMessageStorage(context));
22 } 23 }
23 24
24 static PassOwnPtr<ConsoleMessageStorage> createForFrame(LocalFrame* frame) 25 static PassOwnPtrWillBeRawPtr<ConsoleMessageStorage> createForFrame(LocalFra me* frame)
25 { 26 {
26 return adoptPtr(new ConsoleMessageStorage(frame)); 27 return adoptPtrWillBeNoop(new ConsoleMessageStorage(frame));
27 } 28 }
28 29
29 void reportMessage(PassRefPtr<ConsoleMessage>); 30 void reportMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>);
30 void clear(); 31 void clear();
31 32
32 Vector<unsigned> argumentCounts() const; 33 Vector<unsigned> argumentCounts() const;
33 void frameWindowDiscarded(LocalDOMWindow*); 34 void frameWindowDiscarded(LocalDOMWindow*);
34 35
35 size_t size() const; 36 size_t size() const;
36 PassRefPtr<ConsoleMessage> at(size_t index) const; 37 PassRefPtrWillBeRawPtr<ConsoleMessage> at(size_t index) const;
37 38
38 int expiredCount() const; 39 int expiredCount() const;
39 40
41 void trace(Visitor*);
42
40 private: 43 private:
41 ConsoleMessageStorage(ExecutionContext*); 44 explicit ConsoleMessageStorage(ExecutionContext*);
42 ConsoleMessageStorage(LocalFrame*); 45 explicit ConsoleMessageStorage(LocalFrame*);
43 46
44 ExecutionContext* executionContext() const; 47 ExecutionContext* executionContext() const;
45 48
46 int m_expiredCount; 49 int m_expiredCount;
47 Vector<RefPtr<ConsoleMessage> > m_messages; 50 WillBeHeapVector<RefPtrWillBeMember<ConsoleMessage> > m_messages;
48 ExecutionContext* m_context; 51 RawPtrWillBeMember<ExecutionContext> m_context;
49 LocalFrame* m_frame; 52 LocalFrame* m_frame;
50 }; 53 };
51 54
52 } // namespace blink 55 } // namespace blink
53 56
54 #endif // ConsoleMessageStorage_h 57 #endif // ConsoleMessageStorage_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalFrame.h ('k') | Source/core/inspector/ConsoleMessageStorage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698