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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 const AtomicString& InterfaceName() const override; | 60 const AtomicString& InterfaceName() const override; |
61 | 61 |
62 void postMessage(ScriptState*, | 62 void postMessage(ScriptState*, |
63 PassRefPtr<SerializedScriptValue>, | 63 PassRefPtr<SerializedScriptValue>, |
64 const MessagePortArray&, | 64 const MessagePortArray&, |
65 ExceptionState&); | 65 ExceptionState&); |
66 | 66 |
67 static bool CanTransferArrayBuffersAndImageBitmaps() { return true; } | 67 static bool CanTransferArrayBuffersAndImageBitmaps() { return true; } |
68 | 68 |
69 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 69 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
| 70 DEFINE_ATTRIBUTE_EVENT_LISTENER(messageerror); |
70 | 71 |
71 DECLARE_VIRTUAL_TRACE(); | 72 DECLARE_VIRTUAL_TRACE(); |
72 | 73 |
73 private: | 74 private: |
74 friend class DedicatedWorkerThreadForTest; | 75 friend class DedicatedWorkerThreadForTest; |
75 | 76 |
76 DedicatedWorkerGlobalScope(const KURL&, | 77 DedicatedWorkerGlobalScope(const KURL&, |
77 const String& user_agent, | 78 const String& user_agent, |
78 DedicatedWorkerThread*, | 79 DedicatedWorkerThread*, |
79 double time_origin, | 80 double time_origin, |
80 std::unique_ptr<SecurityOrigin::PrivilegeData>, | 81 std::unique_ptr<SecurityOrigin::PrivilegeData>, |
81 WorkerClients*); | 82 WorkerClients*); |
82 | 83 |
83 InProcessWorkerObjectProxy& WorkerObjectProxy() const; | 84 InProcessWorkerObjectProxy& WorkerObjectProxy() const; |
84 }; | 85 }; |
85 | 86 |
86 } // namespace blink | 87 } // namespace blink |
87 | 88 |
88 #endif // DedicatedWorkerGlobalScope_h | 89 #endif // DedicatedWorkerGlobalScope_h |
OLD | NEW |