| OLD | NEW | 
|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef V8_V8_PLATFORM_H_ | 5 #ifndef V8_V8_PLATFORM_H_ | 
| 6 #define V8_V8_PLATFORM_H_ | 6 #define V8_V8_PLATFORM_H_ | 
| 7 | 7 | 
| 8 #include "v8.h" | 8 namespace v8 { | 
| 9 | 9 | 
| 10 namespace v8 { | 10 class Isolate; | 
| 11 | 11 | 
| 12 /** | 12 /** | 
| 13  * A Task represents a unit of work. | 13  * A Task represents a unit of work. | 
| 14  */ | 14  */ | 
| 15 class Task { | 15 class Task { | 
| 16  public: | 16  public: | 
| 17   virtual ~Task() {} | 17   virtual ~Task() {} | 
| 18 | 18 | 
| 19   virtual void Run() = 0; | 19   virtual void Run() = 0; | 
| 20 }; | 20 }; | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 53    * Schedules a task to be invoked on a foreground thread wrt a specific | 53    * Schedules a task to be invoked on a foreground thread wrt a specific | 
| 54    * |isolate|. Tasks posted for the same isolate should be execute in order of | 54    * |isolate|. Tasks posted for the same isolate should be execute in order of | 
| 55    * scheduling. The definition of "foreground" is opaque to V8. | 55    * scheduling. The definition of "foreground" is opaque to V8. | 
| 56    */ | 56    */ | 
| 57   virtual void CallOnForegroundThread(Isolate* isolate, Task* task) = 0; | 57   virtual void CallOnForegroundThread(Isolate* isolate, Task* task) = 0; | 
| 58 }; | 58 }; | 
| 59 | 59 | 
| 60 }  // namespace v8 | 60 }  // namespace v8 | 
| 61 | 61 | 
| 62 #endif  // V8_V8_PLATFORM_H_ | 62 #endif  // V8_V8_PLATFORM_H_ | 
| OLD | NEW | 
|---|