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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/LocalFrame.h ('k') | Source/core/inspector/ConsoleMessageStorage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/ConsoleMessageStorage.h
diff --git a/Source/core/inspector/ConsoleMessageStorage.h b/Source/core/inspector/ConsoleMessageStorage.h
index 55c47e9da49cb66ed7ec28ecba6b478bb8e53e39..0adb591527d6e930633f5ab7e717be7befb687af 100644
--- a/Source/core/inspector/ConsoleMessageStorage.h
+++ b/Source/core/inspector/ConsoleMessageStorage.h
@@ -6,46 +6,49 @@
#define ConsoleMessageStorage_h
#include "core/inspector/ConsoleMessage.h"
+#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
namespace blink {
class LocalDOMWindow;
-class ConsoleMessageStorage FINAL {
+class ConsoleMessageStorage FINAL : public NoBaseWillBeGarbageCollected<ConsoleMessageStorage> {
WTF_MAKE_NONCOPYABLE(ConsoleMessageStorage);
- WTF_MAKE_FAST_ALLOCATED;
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- static PassOwnPtr<ConsoleMessageStorage> createForWorker(ExecutionContext* context)
+ static PassOwnPtrWillBeRawPtr<ConsoleMessageStorage> createForWorker(ExecutionContext* context)
{
- return adoptPtr(new ConsoleMessageStorage(context));
+ return adoptPtrWillBeNoop(new ConsoleMessageStorage(context));
}
- static PassOwnPtr<ConsoleMessageStorage> createForFrame(LocalFrame* frame)
+ static PassOwnPtrWillBeRawPtr<ConsoleMessageStorage> createForFrame(LocalFrame* frame)
{
- return adoptPtr(new ConsoleMessageStorage(frame));
+ return adoptPtrWillBeNoop(new ConsoleMessageStorage(frame));
}
- void reportMessage(PassRefPtr<ConsoleMessage>);
+ void reportMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>);
void clear();
Vector<unsigned> argumentCounts() const;
void frameWindowDiscarded(LocalDOMWindow*);
size_t size() const;
- PassRefPtr<ConsoleMessage> at(size_t index) const;
+ PassRefPtrWillBeRawPtr<ConsoleMessage> at(size_t index) const;
int expiredCount() const;
+ void trace(Visitor*);
+
private:
- ConsoleMessageStorage(ExecutionContext*);
- ConsoleMessageStorage(LocalFrame*);
+ explicit ConsoleMessageStorage(ExecutionContext*);
+ explicit ConsoleMessageStorage(LocalFrame*);
ExecutionContext* executionContext() const;
int m_expiredCount;
- Vector<RefPtr<ConsoleMessage> > m_messages;
- ExecutionContext* m_context;
+ WillBeHeapVector<RefPtrWillBeMember<ConsoleMessage> > m_messages;
+ RawPtrWillBeMember<ExecutionContext> m_context;
LocalFrame* m_frame;
};
« 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