| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 ~ServiceWorker() override; | 56 ~ServiceWorker() override; |
| 57 DECLARE_VIRTUAL_TRACE(); | 57 DECLARE_VIRTUAL_TRACE(); |
| 58 | 58 |
| 59 // Eager finalization needed to promptly release owned WebServiceWorker. | 59 // Eager finalization needed to promptly release owned WebServiceWorker. |
| 60 EAGERLY_FINALIZE(); | 60 EAGERLY_FINALIZE(); |
| 61 | 61 |
| 62 void postMessage(ExecutionContext*, | 62 void postMessage(ExecutionContext*, |
| 63 PassRefPtr<SerializedScriptValue> message, | 63 PassRefPtr<SerializedScriptValue> message, |
| 64 const MessagePortArray&, | 64 const MessagePortArray&, |
| 65 ExceptionState&); | 65 ExceptionState&); |
| 66 static bool canTransferArrayBuffer() { return false; } | 66 static bool canTransferArrayBuffersAndImageBitmaps() { return false; } |
| 67 | 67 |
| 68 String scriptURL() const; | 68 String scriptURL() const; |
| 69 String state() const; | 69 String state() const; |
| 70 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); | 70 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); |
| 71 | 71 |
| 72 // ScriptWrappable overrides. | 72 // ScriptWrappable overrides. |
| 73 bool hasPendingActivity() const final; | 73 bool hasPendingActivity() const final; |
| 74 | 74 |
| 75 // WebServiceWorkerProxy overrides. | 75 // WebServiceWorkerProxy overrides. |
| 76 void dispatchStateChangeEvent() override; | 76 void dispatchStateChangeEvent() override; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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 |