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

Side by Side Diff: Source/modules/serviceworkers/StashedPortCollection.cpp

Issue 1197763002: Oilpan: keep StashedPortCollection always on the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "config.h" 5 #include "config.h"
6 #include "modules/serviceworkers/StashedPortCollection.h" 6 #include "modules/serviceworkers/StashedPortCollection.h"
7 7
8 #include "bindings/core/v8/SerializedScriptValueFactory.h" 8 #include "bindings/core/v8/SerializedScriptValueFactory.h"
9 #include "modules/EventTargetModules.h" 9 #include "modules/EventTargetModules.h"
10 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 10 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
11 #include "modules/serviceworkers/StashedMessagePort.h" 11 #include "modules/serviceworkers/StashedMessagePort.h"
12 #include "public/platform/WebString.h" 12 #include "public/platform/WebString.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 PassRefPtrWillBeRawPtr<StashedPortCollection> StashedPortCollection::create(Exec utionContext* context) 16 StashedPortCollection* StashedPortCollection::create(ExecutionContext* context)
17 { 17 {
18 return adoptRefWillBeNoop(new StashedPortCollection(context)); 18 return new StashedPortCollection(context);
19 } 19 }
20 20
21 StashedPortCollection::StashedPortCollection(ExecutionContext* context) 21 StashedPortCollection::StashedPortCollection(ExecutionContext* context)
22 : ContextLifecycleObserver(context) 22 : ContextLifecycleObserver(context)
23 { 23 {
24 } 24 }
25 25
26 StashedPortCollection::~StashedPortCollection() 26 StashedPortCollection::~StashedPortCollection()
27 { 27 {
28 } 28 }
(...skipping 18 matching lines...) Expand all
47 } 47 }
48 48
49 ExecutionContext* StashedPortCollection::executionContext() const 49 ExecutionContext* StashedPortCollection::executionContext() const
50 { 50 {
51 return ContextLifecycleObserver::executionContext(); 51 return ContextLifecycleObserver::executionContext();
52 } 52 }
53 53
54 DEFINE_TRACE(StashedPortCollection) 54 DEFINE_TRACE(StashedPortCollection)
55 { 55 {
56 visitor->trace(m_ports); 56 visitor->trace(m_ports);
57 EventTargetWithInlineData::trace(visitor); 57 RefCountedGarbageCollectedEventTargetWithInlineData::trace(visitor);
58 ContextLifecycleObserver::trace(visitor); 58 ContextLifecycleObserver::trace(visitor);
59 } 59 }
60 60
61 } // namespace blink 61 } // namespace blink
62
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/StashedPortCollection.h ('k') | Source/modules/serviceworkers/StashedPortCollection.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698