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

Side by Side Diff: Source/modules/serviceworkers/ServiceWorkerRegistration.h

Issue 1177913002: [Retry] ServiceWorker: Implement ServiceWorkerRegistration.update() (1) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove const 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 unified diff | Download patch
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 #ifndef ServiceWorkerRegistration_h 5 #ifndef ServiceWorkerRegistration_h
6 #define ServiceWorkerRegistration_h 6 #define ServiceWorkerRegistration_h
7 7
8 #include "core/dom/ActiveDOMObject.h" 8 #include "core/dom/ActiveDOMObject.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "modules/serviceworkers/ServiceWorker.h" 10 #include "modules/serviceworkers/ServiceWorker.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 static void dispose(WebType* registration); 50 static void dispose(WebType* registration);
51 51
52 PassRefPtrWillBeRawPtr<ServiceWorker> installing() { return m_installing.get (); } 52 PassRefPtrWillBeRawPtr<ServiceWorker> installing() { return m_installing.get (); }
53 PassRefPtrWillBeRawPtr<ServiceWorker> waiting() { return m_waiting.get(); } 53 PassRefPtrWillBeRawPtr<ServiceWorker> waiting() { return m_waiting.get(); }
54 PassRefPtrWillBeRawPtr<ServiceWorker> active() { return m_active.get(); } 54 PassRefPtrWillBeRawPtr<ServiceWorker> active() { return m_active.get(); }
55 55
56 String scope() const; 56 String scope() const;
57 57
58 WebServiceWorkerRegistration* webRegistration() { return m_outerRegistration .get(); } 58 WebServiceWorkerRegistration* webRegistration() { return m_outerRegistration .get(); }
59 59
60 void update(ScriptState*, ExceptionState&);
60 ScriptPromise unregister(ScriptState*); 61 ScriptPromise unregister(ScriptState*);
61 62
62 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatefound); 63 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatefound);
63 64
64 virtual ~ServiceWorkerRegistration() override; 65 virtual ~ServiceWorkerRegistration() override;
65 66
66 // Eager finalization needed to promptly release owned WebServiceWorkerRegis tration. 67 // Eager finalization needed to promptly release owned WebServiceWorkerRegis tration.
67 EAGERLY_FINALIZE(); 68 EAGERLY_FINALIZE();
68 DECLARE_VIRTUAL_TRACE(); 69 DECLARE_VIRTUAL_TRACE();
69 70
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 103 }
103 104
104 private: 105 private:
105 WTF_MAKE_NONCOPYABLE(ServiceWorkerRegistrationArray); 106 WTF_MAKE_NONCOPYABLE(ServiceWorkerRegistrationArray);
106 ServiceWorkerRegistrationArray() = delete; 107 ServiceWorkerRegistrationArray() = delete;
107 }; 108 };
108 109
109 } // namespace blink 110 } // namespace blink
110 111
111 #endif // ServiceWorkerRegistration_h 112 #endif // ServiceWorkerRegistration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698