| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void countDeprecation(UseCounter::Feature) const override; | 57 void countDeprecation(UseCounter::Feature) const override; |
| 58 | 58 |
| 59 // EventTarget | 59 // EventTarget |
| 60 const AtomicString& interfaceName() const override; | 60 const AtomicString& interfaceName() const override; |
| 61 | 61 |
| 62 void postMessage(ExecutionContext*, | 62 void postMessage(ExecutionContext*, |
| 63 PassRefPtr<SerializedScriptValue>, | 63 PassRefPtr<SerializedScriptValue>, |
| 64 const MessagePortArray&, | 64 const MessagePortArray&, |
| 65 ExceptionState&); | 65 ExceptionState&); |
| 66 | 66 |
| 67 static bool canTransferArrayBuffer() { return true; } |
| 68 |
| 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 69 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
| 68 | 70 |
| 69 DedicatedWorkerThread* thread() const; | 71 DedicatedWorkerThread* thread() const; |
| 70 | 72 |
| 71 DECLARE_VIRTUAL_TRACE(); | 73 DECLARE_VIRTUAL_TRACE(); |
| 72 | 74 |
| 73 private: | 75 private: |
| 74 friend class DedicatedWorkerThreadForTest; | 76 friend class DedicatedWorkerThreadForTest; |
| 75 | 77 |
| 76 DedicatedWorkerGlobalScope(const KURL&, | 78 DedicatedWorkerGlobalScope(const KURL&, |
| 77 const String& userAgent, | 79 const String& userAgent, |
| 78 DedicatedWorkerThread*, | 80 DedicatedWorkerThread*, |
| 79 double timeOrigin, | 81 double timeOrigin, |
| 80 std::unique_ptr<SecurityOrigin::PrivilegeData>, | 82 std::unique_ptr<SecurityOrigin::PrivilegeData>, |
| 81 WorkerClients*); | 83 WorkerClients*); |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace blink | 86 } // namespace blink |
| 85 | 87 |
| 86 #endif // DedicatedWorkerGlobalScope_h | 88 #endif // DedicatedWorkerGlobalScope_h |
| OLD | NEW |