Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(988)

Side by Side Diff: WebCore/dom/WorkerRunLoop.h

Issue 28077: WebKit side of merge from r41149 to r41181. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/WebKit/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « WebCore/dom/WorkerContext.cpp ('k') | WebCore/dom/WorkerRunLoop.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « WebCore/dom/WorkerContext.cpp ('k') | WebCore/dom/WorkerRunLoop.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698