| Index: Source/modules/navigatorconnect/NavigatorServices.h
|
| diff --git a/Source/modules/navigatorconnect/NavigatorServices.h b/Source/modules/navigatorconnect/NavigatorServices.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ca1c0db2788d97d9702a29c6e0d43a920a08e905
|
| --- /dev/null
|
| +++ b/Source/modules/navigatorconnect/NavigatorServices.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 NavigatorServices_h
|
| +#define NavigatorServices_h
|
| +
|
| +#include "platform/Supplementable.h"
|
| +#include "platform/heap/Handle.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class ExecutionContext;
|
| +class ServicePortCollection;
|
| +class Navigator;
|
| +
|
| +class NavigatorServices final : public GarbageCollectedFinalized<NavigatorServices>, public HeapSupplement<Navigator> {
|
| + USING_GARBAGE_COLLECTED_MIXIN(NavigatorServices);
|
| + WTF_MAKE_NONCOPYABLE(NavigatorServices);
|
| +public:
|
| + virtual ~NavigatorServices();
|
| + static NavigatorServices& from(Navigator&);
|
| +
|
| + static ServicePortCollection* services(ExecutionContext*, Navigator&);
|
| + ServicePortCollection* services(ExecutionContext*);
|
| +
|
| + DECLARE_VIRTUAL_TRACE();
|
| +
|
| +private:
|
| + NavigatorServices();
|
| + static const char* supplementName();
|
| +
|
| + RefPtrWillBeMember<ServicePortCollection> m_services;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // NavigatorServices_h
|
|
|