| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 String state() const; | 64 String state() const; |
| 65 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); | 65 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); |
| 66 | 66 |
| 67 // WebServiceWorkerProxy overrides. | 67 // WebServiceWorkerProxy overrides. |
| 68 void dispatchStateChangeEvent() override; | 68 void dispatchStateChangeEvent() override; |
| 69 | 69 |
| 70 // AbstractWorker overrides. | 70 // AbstractWorker overrides. |
| 71 const AtomicString& interfaceName() const override; | 71 const AtomicString& interfaceName() const override; |
| 72 | 72 |
| 73 void internalsTerminate(); | 73 void internalsTerminate(); |
| 74 |
| 74 private: | 75 private: |
| 75 static ServiceWorker* getOrCreate(ExecutionContext*, PassOwnPtr<WebServiceWo
rker::Handle>); | 76 static ServiceWorker* getOrCreate(ExecutionContext*, PassOwnPtr<WebServiceWo
rker::Handle>); |
| 76 ServiceWorker(ExecutionContext*, PassOwnPtr<WebServiceWorker::Handle>); | 77 ServiceWorker(ExecutionContext*, PassOwnPtr<WebServiceWorker::Handle>); |
| 77 | 78 |
| 78 // Inherit from ContextLifecycleObserver. | 79 // Inherit from ContextLifecycleObserver. |
| 79 bool hasPendingActivity() const override; | 80 bool hasPendingActivity() const override; |
| 81 void contextDestroyed() override; |
| 80 | 82 |
| 81 // A handle to the service worker representation in the embedder. | 83 // A handle to the service worker representation in the embedder. |
| 82 OwnPtr<WebServiceWorker::Handle> m_handle; | 84 OwnPtr<WebServiceWorker::Handle> m_handle; |
| 85 |
| 86 WebServiceWorkerProvider* m_provider; |
| 83 }; | 87 }; |
| 84 | 88 |
| 85 } // namespace blink | 89 } // namespace blink |
| 86 | 90 |
| 87 #endif // ServiceWorker_h | 91 #endif // ServiceWorker_h |
| OLD | NEW |