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

Unified Diff: Source/modules/navigatorconnect/NavigatorServices.h

Issue 1192913003: Start implementing new navigator.connect API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: override instead of virtual 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698