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

Side by Side Diff: include/v8-platform.h

Issue 369073002: Don't even include v8.h from libbase or libplatform (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « BUILD.gn ('k') | src/base/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/base/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698