| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void terminate(); | 58 void terminate(); |
| 59 bool terminated() { return m_messageQueue.killed(); } | 59 bool terminated() { return m_messageQueue.killed(); } |
| 60 | 60 |
| 61 void postTask(PassRefPtr<ScriptExecutionContext::Task>); | 61 void postTask(PassRefPtr<ScriptExecutionContext::Task>); |
| 62 void postTaskForMode(PassRefPtr<ScriptExecutionContext::Task>, const Str
ing& mode); | 62 void postTaskForMode(PassRefPtr<ScriptExecutionContext::Task>, const Str
ing& mode); |
| 63 | 63 |
| 64 static String defaultMode(); | 64 static String defaultMode(); |
| 65 class Task; | 65 class Task; |
| 66 private: | 66 private: |
| 67 friend class RunLoopSetup; | 67 friend class RunLoopSetup; |
| 68 MessageQueueWaitResult runInMode(WorkerContext*, ModePredicate&); | 68 MessageQueueWaitResult runInMode(WorkerContext*, const ModePredicate&); |
| 69 | 69 |
| 70 MessageQueue<RefPtr<Task> > m_messageQueue; | 70 MessageQueue<RefPtr<Task> > m_messageQueue; |
| 71 OwnPtr<WorkerSharedTimer> m_sharedTimer; | 71 OwnPtr<WorkerSharedTimer> m_sharedTimer; |
| 72 int m_nestedCount; | 72 int m_nestedCount; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace WebCore | 75 } // namespace WebCore |
| 76 | 76 |
| 77 #endif // ENABLE(WORKERS) | 77 #endif // ENABLE(WORKERS) |
| 78 | 78 |
| 79 #endif // WorkerRunLoop_h | 79 #endif // WorkerRunLoop_h |
| OLD | NEW |