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