| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 class ExecutionContext; | 40 class ExecutionContext; |
| 41 | 41 |
| 42 class WorkerEventQueue FINAL : public EventQueue { | 42 class WorkerEventQueue FINAL : public EventQueue { |
| 43 WTF_MAKE_FAST_ALLOCATED; | 43 WTF_MAKE_FAST_ALLOCATED; |
| 44 public: | 44 public: |
| 45 | 45 |
| 46 static PassOwnPtr<WorkerEventQueue> create(ExecutionContext*); | 46 static PassOwnPtr<WorkerEventQueue> create(ExecutionContext*); |
| 47 virtual ~WorkerEventQueue(); | 47 virtual ~WorkerEventQueue(); |
| 48 | 48 |
| 49 // EventQueue | 49 // EventQueue |
| 50 virtual bool enqueueEvent(PassRefPtr<Event>) OVERRIDE; | 50 virtual bool enqueueEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE; |
| 51 virtual bool cancelEvent(Event*) OVERRIDE; | 51 virtual bool cancelEvent(Event*) OVERRIDE; |
| 52 virtual void close() OVERRIDE; | 52 virtual void close() OVERRIDE; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 explicit WorkerEventQueue(ExecutionContext*); | 55 explicit WorkerEventQueue(ExecutionContext*); |
| 56 void removeEvent(Event*); | 56 void removeEvent(Event*); |
| 57 | 57 |
| 58 ExecutionContext* m_executionContext; | 58 ExecutionContext* m_executionContext; |
| 59 bool m_isClosed; | 59 bool m_isClosed; |
| 60 | 60 |
| 61 class EventDispatcherTask; | 61 class EventDispatcherTask; |
| 62 typedef HashMap<RefPtr<Event>, EventDispatcherTask*> EventTaskMap; | 62 typedef WillBePersistentHeapHashMap<RefPtrWillBeMember<Event>, EventDispatch
erTask*> EventTaskMap; |
| 63 EventTaskMap m_eventTaskMap; | 63 EventTaskMap m_eventTaskMap; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } | 66 } |
| 67 | 67 |
| 68 #endif // WorkerEventQueue_h | 68 #endif // WorkerEventQueue_h |
| OLD | NEW |