| OLD | NEW |
| 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 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 #ifndef WebThread_h | 25 #ifndef WebThread_h |
| 26 #define WebThread_h | 26 #define WebThread_h |
| 27 | 27 |
| 28 #include "WebCommon.h" | 28 #include "WebCommon.h" |
| 29 #include <stdint.h> | 29 #include <stdint.h> |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 class WebScheduler; | 32 class WebScheduler; |
| 33 class WebTaskRunner; | 33 class WebTaskRunner; |
| 34 class WebTraceLocation; |
| 34 | 35 |
| 35 // Always an integer value. | 36 // Always an integer value. |
| 36 typedef uintptr_t PlatformThreadId; | 37 typedef uintptr_t PlatformThreadId; |
| 37 | 38 |
| 38 // Provides an interface to an embedder-defined thread implementation. | 39 // Provides an interface to an embedder-defined thread implementation. |
| 39 // | 40 // |
| 40 // Deleting the thread blocks until all pending, non-delayed tasks have been | 41 // Deleting the thread blocks until all pending, non-delayed tasks have been |
| 41 // run. | 42 // run. |
| 42 class BLINK_PLATFORM_EXPORT WebThread { | 43 class BLINK_PLATFORM_EXPORT WebThread { |
| 43 public: | 44 public: |
| (...skipping 24 matching lines...) Expand all Loading... |
| 68 | 69 |
| 69 // Returns the scheduler associated with the thread. | 70 // Returns the scheduler associated with the thread. |
| 70 virtual WebScheduler* scheduler() const = 0; | 71 virtual WebScheduler* scheduler() const = 0; |
| 71 | 72 |
| 72 virtual ~WebThread() { } | 73 virtual ~WebThread() { } |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace blink | 76 } // namespace blink |
| 76 | 77 |
| 77 #endif | 78 #endif |
| OLD | NEW |