OLD | NEW |
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 WebServiceWorkerRegistrationProxy_h | 5 #ifndef WebServiceWorkerRegistrationProxy_h |
6 #define WebServiceWorkerRegistrationProxy_h | 6 #define WebServiceWorkerRegistrationProxy_h |
7 | 7 |
| 8 #if INSIDE_BLINK |
| 9 #include "platform/heap/Handle.h" |
| 10 #endif |
8 #include "public/platform/WebCommon.h" | 11 #include "public/platform/WebCommon.h" |
9 | 12 |
10 namespace blink { | 13 namespace blink { |
11 | 14 |
12 class ServiceWorkerRegistration; | 15 class ServiceWorkerRegistration; |
13 class WebServiceWorker; | 16 class WebServiceWorker; |
14 | 17 |
15 // A proxy interface, passed via WebServiceWorkerRegistration.setProxy() from | 18 // A proxy interface, passed via WebServiceWorkerRegistration.setProxy() from |
16 // blink to the embedder, to talk to the ServiceWorkerRegistration object from | 19 // blink to the embedder, to talk to the ServiceWorkerRegistration object from |
17 // embedder. | 20 // embedder. |
(...skipping 10 matching lines...) Expand all Loading... |
28 virtual void setInstalling(WebServiceWorker*) = 0; | 31 virtual void setInstalling(WebServiceWorker*) = 0; |
29 virtual void setWaiting(WebServiceWorker*) = 0; | 32 virtual void setWaiting(WebServiceWorker*) = 0; |
30 virtual void setActive(WebServiceWorker*) = 0; | 33 virtual void setActive(WebServiceWorker*) = 0; |
31 | 34 |
32 #if INSIDE_BLINK | 35 #if INSIDE_BLINK |
33 BLINK_PLATFORM_EXPORT WebServiceWorkerRegistrationProxy(ServiceWorkerRegistr
ation*); | 36 BLINK_PLATFORM_EXPORT WebServiceWorkerRegistrationProxy(ServiceWorkerRegistr
ation*); |
34 BLINK_PLATFORM_EXPORT operator ServiceWorkerRegistration*() const; | 37 BLINK_PLATFORM_EXPORT operator ServiceWorkerRegistration*() const; |
35 #endif | 38 #endif |
36 | 39 |
37 protected: | 40 protected: |
| 41 #if INSIDE_BLINK |
| 42 // This is a back pointer to |this| object. |
| 43 // The ServiceWorkerRegistration inherits from this WebServiceWorkerRegistra
tionProxy. |
| 44 GC_PLUGIN_IGNORE("crbug.com/410257") |
| 45 #endif |
38 ServiceWorkerRegistration* m_private; | 46 ServiceWorkerRegistration* m_private; |
39 }; | 47 }; |
40 | 48 |
41 } // namespace blink | 49 } // namespace blink |
42 | 50 |
43 #endif // WebServiceWorkerRegistrationProxy_h | 51 #endif // WebServiceWorkerRegistrationProxy_h |
OLD | NEW |