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

Side by Side Diff: public/platform/WebThread.h

Issue 400153002: Change WokerThread to use a blink::WebThread. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use blink-side postDelayedTask instead of chromium Timer. Created 6 years, 4 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 | « public/platform/Platform.h ('k') | no next file » | 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // enterRunLoop() processes tasks posted to this WebThread. This call does n ot return until some task calls exitRunLoop(). 62 // enterRunLoop() processes tasks posted to this WebThread. This call does n ot return until some task calls exitRunLoop().
63 // WebThread does not support nesting, meaning that once the run loop is ent ered for a given WebThread it is not valid to 63 // WebThread does not support nesting, meaning that once the run loop is ent ered for a given WebThread it is not valid to
64 // call enterRunLoop() again. 64 // call enterRunLoop() again.
65 virtual void enterRunLoop() = 0; 65 virtual void enterRunLoop() = 0;
66 66
67 // exitRunLoop() runs tasks until there are no tasks available to run, then returns control to the caller of enterRunLoop(). 67 // exitRunLoop() runs tasks until there are no tasks available to run, then returns control to the caller of enterRunLoop().
68 // Must be called when the WebThread is running. 68 // Must be called when the WebThread is running.
69 virtual void exitRunLoop() = 0; 69 virtual void exitRunLoop() = 0;
70 70
71 // Delayed work is driven by a shared timer.
darin (slow to review) 2014/07/29 19:28:20 The intent was to remove these functions, right?
72 typedef void (*SharedTimerFunction)();
73 virtual void setSharedTimerFiredFunction(SharedTimerFunction) = 0;
74 virtual void setSharedTimerFireInterval(double) = 0;
75 virtual void stopSharedTimer() = 0;
76
71 virtual ~WebThread() { } 77 virtual ~WebThread() { }
72 }; 78 };
73 79
74 } // namespace blink 80 } // namespace blink
75 81
76 #endif 82 #endif
OLDNEW
« no previous file with comments | « public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698