| Index: Source/modules/navigatorconnect/WorkerNavigatorServices.h
|
| diff --git a/Source/modules/navigatorconnect/WorkerNavigatorServices.h b/Source/modules/navigatorconnect/WorkerNavigatorServices.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d18ca2d819ceffe897b4577893a76c5bb80746ba
|
| --- /dev/null
|
| +++ b/Source/modules/navigatorconnect/WorkerNavigatorServices.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef WorkerNavigatorServices_h
|
| +#define WorkerNavigatorServices_h
|
| +
|
| +#include "platform/Supplementable.h"
|
| +#include "platform/heap/Handle.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class ExecutionContext;
|
| +class ServicePortCollection;
|
| +class WorkerNavigator;
|
| +
|
| +class WorkerNavigatorServices final : public GarbageCollectedFinalized<WorkerNavigatorServices>, public HeapSupplement<WorkerNavigator> {
|
| + USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorServices);
|
| + WTF_MAKE_NONCOPYABLE(WorkerNavigatorServices);
|
| +public:
|
| + virtual ~WorkerNavigatorServices();
|
| + static WorkerNavigatorServices& from(WorkerNavigator&);
|
| +
|
| + static ServicePortCollection* services(ExecutionContext*, WorkerNavigator&);
|
| + ServicePortCollection* services(ExecutionContext*);
|
| +
|
| + DECLARE_VIRTUAL_TRACE();
|
| +
|
| +private:
|
| + WorkerNavigatorServices();
|
| + static const char* supplementName();
|
| +
|
| + RefPtrWillBeMember<ServicePortCollection> m_services;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WorkerNavigatorServices_h
|
|
|