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