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

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

Issue 306133002: WebServiceWorkerProxy instances can be unwrapped to ServiceWorkers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Crib from WebNode: make m_private protected to avoid unused field warnings. Created 6 years, 7 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
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | public/platform/WebServiceWorker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebServiceWorkerProxy.cpp
diff --git a/Source/platform/exported/WebServiceWorkerProxy.cpp b/Source/platform/exported/WebServiceWorkerProxy.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..2e57d0e9465b1985a47811d6f89a8ff244fcc1b7
--- /dev/null
+++ b/Source/platform/exported/WebServiceWorkerProxy.cpp
@@ -0,0 +1,22 @@
+// 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/WebServiceWorkerProxy.h"
+
+namespace WebCore { class ServiceWorker; }
+
+namespace blink {
+
+WebServiceWorkerProxy::WebServiceWorkerProxy(WebCore::ServiceWorker* serviceWorker)
+ : m_private(serviceWorker)
+{
+}
+
+WebCore::ServiceWorker* WebServiceWorkerProxy::unwrap() const
+{
+ return m_private;
+}
+
+} // namespace blink
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | public/platform/WebServiceWorker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698