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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "public/platform/WebServiceWorkerRegistrationProxy.h" 6 #include "public/platform/WebServiceWorkerRegistrationProxy.h"
7 7
8 #include "modules/serviceworkers/ServiceWorkerRegistration.h"
haraken 2014/08/18 16:03:26 This violates #include dependency rules. I think w
9
8 namespace blink { 10 namespace blink {
9 11
10 WebServiceWorkerRegistrationProxy::WebServiceWorkerRegistrationProxy(ServiceWork erRegistration* registration) 12 WebServiceWorkerRegistrationProxy::WebServiceWorkerRegistrationProxy(ServiceWork erRegistration* registration)
11 : m_private(registration) 13 : m_private(registration)
12 { 14 {
13 } 15 }
14 16
17 WebServiceWorkerRegistrationProxy& WebServiceWorkerRegistrationProxy::operator=( ServiceWorkerRegistration* registration)
18 {
19 m_private = registration;
20 return *this;
21 }
22
23 void WebServiceWorkerRegistrationProxy::assign(const WebServiceWorkerRegistratio nProxy& other)
24 {
25 m_private = other.m_private;
26 }
27
28 void WebServiceWorkerRegistrationProxy::reset()
29 {
30 m_private.reset();
31 }
32
15 WebServiceWorkerRegistrationProxy::operator ServiceWorkerRegistration*() const 33 WebServiceWorkerRegistrationProxy::operator ServiceWorkerRegistration*() const
16 { 34 {
17 return m_private; 35 return m_private.get();
18 } 36 }
19 37
20 } // namespace blink 38 } // namespace blink
OLDNEW
« 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