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

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

Issue 1412223018: [presubmit] Enabling readability/inheritance linter checking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 5 years, 1 month 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/interface-descriptors.h ('k') | src/parser.h » ('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 <queue> 10 #include <queue>
(...skipping 16 matching lines...) Expand all
27 DefaultPlatform(); 27 DefaultPlatform();
28 virtual ~DefaultPlatform(); 28 virtual ~DefaultPlatform();
29 29
30 void SetThreadPoolSize(int thread_pool_size); 30 void SetThreadPoolSize(int thread_pool_size);
31 31
32 void EnsureInitialized(); 32 void EnsureInitialized();
33 33
34 bool PumpMessageLoop(v8::Isolate* isolate); 34 bool PumpMessageLoop(v8::Isolate* isolate);
35 35
36 // v8::Platform implementation. 36 // v8::Platform implementation.
37 virtual void CallOnBackgroundThread( 37 void CallOnBackgroundThread(Task* task,
38 Task* task, ExpectedRuntime expected_runtime) override; 38 ExpectedRuntime expected_runtime) override;
39 virtual void CallOnForegroundThread(v8::Isolate* isolate, 39 void CallOnForegroundThread(v8::Isolate* isolate, Task* task) override;
40 Task* task) override; 40 void CallDelayedOnForegroundThread(Isolate* isolate, Task* task,
41 virtual void CallDelayedOnForegroundThread(Isolate* isolate, Task* task, 41 double delay_in_seconds) override;
42 double delay_in_seconds) override; 42 void CallIdleOnForegroundThread(Isolate* isolate, IdleTask* task) override;
43 virtual void CallIdleOnForegroundThread(Isolate* isolate, 43 bool IdleTasksEnabled(Isolate* isolate) override;
44 IdleTask* task) override;
45 virtual bool IdleTasksEnabled(Isolate* isolate) override;
46 double MonotonicallyIncreasingTime() override; 44 double MonotonicallyIncreasingTime() override;
47 45
48 private: 46 private:
49 static const int kMaxThreadPoolSize; 47 static const int kMaxThreadPoolSize;
50 48
51 Task* PopTaskInMainThreadQueue(v8::Isolate* isolate); 49 Task* PopTaskInMainThreadQueue(v8::Isolate* isolate);
52 Task* PopTaskInMainThreadDelayedQueue(v8::Isolate* isolate); 50 Task* PopTaskInMainThreadDelayedQueue(v8::Isolate* isolate);
53 51
54 base::Mutex lock_; 52 base::Mutex lock_;
55 bool initialized_; 53 bool initialized_;
(...skipping 10 matching lines...) Expand all
66 64
67 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); 65 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform);
68 }; 66 };
69 67
70 68
71 } // namespace platform 69 } // namespace platform
72 } // namespace v8 70 } // namespace v8
73 71
74 72
75 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ 73 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698