| OLD | NEW |
| 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 Loading... |
| 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 | |
| OLD | NEW |