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

Side by Side Diff: third_party/WebKit/Source/core/dom/MessagePort.h

Issue 1857143002: Oilpan: Remove RefCountedGarbageCollectedEventTargetWithInlineData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class ScriptState; 50 class ScriptState;
51 class SerializedScriptValue; 51 class SerializedScriptValue;
52 52
53 // The overwhelmingly common case is sending a single port, so handle that effic iently with an inline buffer of size 1. 53 // The overwhelmingly common case is sending a single port, so handle that effic iently with an inline buffer of size 1.
54 typedef HeapVector<Member<MessagePort>, 1> MessagePortArray; 54 typedef HeapVector<Member<MessagePort>, 1> MessagePortArray;
55 55
56 // Not to be confused with WebMessagePortChannelArray; this one uses Vector and OwnPtr instead of WebVector and raw pointers. 56 // Not to be confused with WebMessagePortChannelArray; this one uses Vector and OwnPtr instead of WebVector and raw pointers.
57 typedef Vector<OwnPtr<WebMessagePortChannel>, 1> MessagePortChannelArray; 57 typedef Vector<OwnPtr<WebMessagePortChannel>, 1> MessagePortChannelArray;
58 58
59 class CORE_EXPORT MessagePort 59 class CORE_EXPORT MessagePort
60 : public RefCountedGarbageCollectedEventTargetWithInlineData<MessagePort> 60 : public EventTargetWithInlineData<MessagePort>
61 , public ActiveScriptWrappable 61 , public ActiveScriptWrappable
62 , public ActiveDOMObject 62 , public ActiveDOMObject
63 , public WebMessagePortChannelClient { 63 , public WebMessagePortChannelClient {
64 DEFINE_WRAPPERTYPEINFO(); 64 DEFINE_WRAPPERTYPEINFO();
65 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MessagePort); 65 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MessagePort);
66 USING_GARBAGE_COLLECTED_MIXIN(MessagePort); 66 USING_GARBAGE_COLLECTED_MIXIN(MessagePort);
67 public: 67 public:
68 static MessagePort* create(ExecutionContext&); 68 static MessagePort* create(ExecutionContext&);
69 ~MessagePort() override; 69 ~MessagePort() override;
70 70
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 bool m_closed; 132 bool m_closed;
133 133
134 WeakPtrFactory<MessagePort> m_weakFactory; 134 WeakPtrFactory<MessagePort> m_weakFactory;
135 135
136 RefPtr<ScriptState> m_scriptStateForConversion; 136 RefPtr<ScriptState> m_scriptStateForConversion;
137 }; 137 };
138 138
139 } // namespace blink 139 } // namespace blink
140 140
141 #endif // MessagePort_h 141 #endif // MessagePort_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698