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

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

Issue 478693005: Oilpan: Ship Oilpan for serviceworkers/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/modules/serviceworkers/WaitUntilObserver.h ('k') | Source/web/ServiceWorkerGlobalScopeClientImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebServiceWorkerRegistrationProxy.cpp
diff --git a/Source/platform/exported/WebServiceWorkerRegistrationProxy.cpp b/Source/platform/exported/WebServiceWorkerRegistrationProxy.cpp
index 01643153457a756b200ac44a518903a1f4c0f1e2..1194bee8167c802314cfa3c0ef21160dcd45c7d0 100644
--- a/Source/platform/exported/WebServiceWorkerRegistrationProxy.cpp
+++ b/Source/platform/exported/WebServiceWorkerRegistrationProxy.cpp
@@ -5,6 +5,8 @@
#include "config.h"
#include "public/platform/WebServiceWorkerRegistrationProxy.h"
+#include "modules/serviceworkers/ServiceWorkerRegistration.h"
haraken 2014/08/18 16:03:26 This violates #include dependency rules. I think w
+
namespace blink {
WebServiceWorkerRegistrationProxy::WebServiceWorkerRegistrationProxy(ServiceWorkerRegistration* registration)
@@ -12,9 +14,25 @@ WebServiceWorkerRegistrationProxy::WebServiceWorkerRegistrationProxy(ServiceWork
{
}
+WebServiceWorkerRegistrationProxy& WebServiceWorkerRegistrationProxy::operator=(ServiceWorkerRegistration* registration)
+{
+ m_private = registration;
+ return *this;
+}
+
+void WebServiceWorkerRegistrationProxy::assign(const WebServiceWorkerRegistrationProxy& other)
+{
+ m_private = other.m_private;
+}
+
+void WebServiceWorkerRegistrationProxy::reset()
+{
+ m_private.reset();
+}
+
WebServiceWorkerRegistrationProxy::operator ServiceWorkerRegistration*() const
{
- return m_private;
+ return m_private.get();
}
} // namespace blink
« no previous file with comments | « Source/modules/serviceworkers/WaitUntilObserver.h ('k') | Source/web/ServiceWorkerGlobalScopeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698