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 // ActiveDOMObject overrides. | |
79 bool hasPendingActivity() const override; | 78 bool hasPendingActivity() const override; |
kinuko
2016/02/29 09:33:52
ditto
| |
80 void stop() override; | |
81 | 79 |
82 // A handle to the service worker representation in the embedder. | 80 // A handle to the service worker representation in the embedder. |
83 OwnPtr<WebServiceWorker::Handle> m_handle; | 81 OwnPtr<WebServiceWorker::Handle> m_handle; |
84 bool m_wasStopped; | |
85 }; | 82 }; |
86 | 83 |
87 } // namespace blink | 84 } // namespace blink |
88 | 85 |
89 #endif // ServiceWorker_h | 86 #endif // ServiceWorker_h |
OLD | NEW |