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

Unified Diff: Source/platform/exported/WebServiceWorkerRegistrationProxy.cpp

Issue 473743002: ServiceWorker: register() should return the existing registration object if available (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix Created 6 years, 4 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/platform/exported/WebServiceWorkerRegistrationProxy.cpp
diff --git a/Source/platform/exported/WebServiceWorkerRegistrationProxy.cpp b/Source/platform/exported/WebServiceWorkerRegistrationProxy.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..01643153457a756b200ac44a518903a1f4c0f1e2
--- /dev/null
+++ b/Source/platform/exported/WebServiceWorkerRegistrationProxy.cpp
@@ -0,0 +1,20 @@
+// Copyright 2014 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.
+
+#include "config.h"
+#include "public/platform/WebServiceWorkerRegistrationProxy.h"
+
+namespace blink {
+
+WebServiceWorkerRegistrationProxy::WebServiceWorkerRegistrationProxy(ServiceWorkerRegistration* registration)
+ : m_private(registration)
+{
+}
+
+WebServiceWorkerRegistrationProxy::operator ServiceWorkerRegistration*() const
+{
+ return m_private;
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698