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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 private: | 74 private: |
75 static ServiceWorker* getOrCreate(ExecutionContext*, PassOwnPtr<WebServiceWo
rker::Handle>); | 75 static ServiceWorker* getOrCreate(ExecutionContext*, PassOwnPtr<WebServiceWo
rker::Handle>); |
76 ServiceWorker(ExecutionContext*, PassOwnPtr<WebServiceWorker::Handle>); | 76 ServiceWorker(ExecutionContext*, PassOwnPtr<WebServiceWorker::Handle>); |
77 | 77 |
78 // Inherit from ContextLifecycleObserver. | 78 // ActiveDOMObject overrides. |
79 bool hasPendingActivity() const override; | 79 bool hasPendingActivity() const override; |
| 80 void stop() override; |
80 | 81 |
81 // A handle to the service worker representation in the embedder. | 82 // A handle to the service worker representation in the embedder. |
82 OwnPtr<WebServiceWorker::Handle> m_handle; | 83 OwnPtr<WebServiceWorker::Handle> m_handle; |
| 84 bool m_wasStopped; |
83 }; | 85 }; |
84 | 86 |
85 } // namespace blink | 87 } // namespace blink |
86 | 88 |
87 #endif // ServiceWorker_h | 89 #endif // ServiceWorker_h |
OLD | NEW |