| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // AbstractWorker overrides. | 78 // AbstractWorker overrides. |
| 79 const AtomicString& interfaceName() const override; | 79 const AtomicString& interfaceName() const override; |
| 80 | 80 |
| 81 void internalsTerminate(); | 81 void internalsTerminate(); |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 static ServiceWorker* getOrCreate(ExecutionContext*, | 84 static ServiceWorker* getOrCreate(ExecutionContext*, |
| 85 std::unique_ptr<WebServiceWorker::Handle>); | 85 std::unique_ptr<WebServiceWorker::Handle>); |
| 86 ServiceWorker(ExecutionContext*, std::unique_ptr<WebServiceWorker::Handle>); | 86 ServiceWorker(ExecutionContext*, std::unique_ptr<WebServiceWorker::Handle>); |
| 87 | 87 |
| 88 // ActiveDOMObject overrides. | 88 // SuspendableObject overrides. |
| 89 void contextDestroyed() override; | 89 void contextDestroyed() override; |
| 90 | 90 |
| 91 // A handle to the service worker representation in the embedder. | 91 // A handle to the service worker representation in the embedder. |
| 92 std::unique_ptr<WebServiceWorker::Handle> m_handle; | 92 std::unique_ptr<WebServiceWorker::Handle> m_handle; |
| 93 bool m_wasStopped; | 93 bool m_wasStopped; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace blink | 96 } // namespace blink |
| 97 | 97 |
| 98 #endif // ServiceWorker_h | 98 #endif // ServiceWorker_h |
| OLD | NEW |