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

Side by Side Diff: src/libplatform/default-platform.h

Issue 2372983003: Turn libplatform into a component (Closed)
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « src/base/compiler-specific.h ('k') | src/libplatform/default-platform.cc » ('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_LIBPLATFORM_DEFAULT_PLATFORM_H_ 5 #ifndef V8_LIBPLATFORM_DEFAULT_PLATFORM_H_
6 #define V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ 6 #define V8_LIBPLATFORM_DEFAULT_PLATFORM_H_
7 7
8 #include <functional> 8 #include <functional>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
11 #include <queue> 11 #include <queue>
12 #include <vector> 12 #include <vector>
13 13
14 #include "include/libplatform/libplatform-export.h"
14 #include "include/libplatform/v8-tracing.h" 15 #include "include/libplatform/v8-tracing.h"
15 #include "include/v8-platform.h" 16 #include "include/v8-platform.h"
17 #include "src/base/compiler-specific.h"
16 #include "src/base/macros.h" 18 #include "src/base/macros.h"
17 #include "src/base/platform/mutex.h" 19 #include "src/base/platform/mutex.h"
18 #include "src/libplatform/task-queue.h" 20 #include "src/libplatform/task-queue.h"
19 21
20 namespace v8 { 22 namespace v8 {
21 namespace platform { 23 namespace platform {
22 24
23 class TaskQueue; 25 class TaskQueue;
24 class Thread; 26 class Thread;
25 class WorkerThread; 27 class WorkerThread;
26 28
27 namespace tracing { 29 namespace tracing {
28 class TracingController; 30 class TracingController;
29 } 31 }
30 32
31 class DefaultPlatform : public Platform { 33 class V8_PLATFORM_EXPORT DefaultPlatform : public NON_EXPORTED_BASE(Platform) {
32 public: 34 public:
33 DefaultPlatform(); 35 DefaultPlatform();
34 virtual ~DefaultPlatform(); 36 virtual ~DefaultPlatform();
35 37
36 void SetThreadPoolSize(int thread_pool_size); 38 void SetThreadPoolSize(int thread_pool_size);
37 39
38 void EnsureInitialized(); 40 void EnsureInitialized();
39 41
40 bool PumpMessageLoop(v8::Isolate* isolate); 42 bool PumpMessageLoop(v8::Isolate* isolate);
41 43
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 91
90 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); 92 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform);
91 }; 93 };
92 94
93 95
94 } // namespace platform 96 } // namespace platform
95 } // namespace v8 97 } // namespace v8
96 98
97 99
98 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ 100 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/base/compiler-specific.h ('k') | src/libplatform/default-platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698