OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 GIN_PUBLIC_V8_PLATFORM_H_ | 5 #ifndef GIN_PUBLIC_V8_PLATFORM_H_ |
6 #define GIN_PUBLIC_V8_PLATFORM_H_ | 6 #define GIN_PUBLIC_V8_PLATFORM_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 void CallDelayedOnForegroundThread(v8::Isolate* isolate, | 27 void CallDelayedOnForegroundThread(v8::Isolate* isolate, |
28 v8::Task* task, | 28 v8::Task* task, |
29 double delay_in_seconds) override; | 29 double delay_in_seconds) override; |
30 void CallIdleOnForegroundThread(v8::Isolate* isolate, | 30 void CallIdleOnForegroundThread(v8::Isolate* isolate, |
31 v8::IdleTask* task) override; | 31 v8::IdleTask* task) override; |
32 bool IdleTasksEnabled(v8::Isolate* isolate) override; | 32 bool IdleTasksEnabled(v8::Isolate* isolate) override; |
33 double MonotonicallyIncreasingTime() override; | 33 double MonotonicallyIncreasingTime() override; |
34 const uint8_t* GetCategoryGroupEnabled(const char* name) override; | 34 const uint8_t* GetCategoryGroupEnabled(const char* name) override; |
35 const char* GetCategoryGroupName( | 35 const char* GetCategoryGroupName( |
36 const uint8_t* category_enabled_flag) override; | 36 const uint8_t* category_enabled_flag) override; |
37 uint64_t AddTraceEvent(char phase, | 37 uint64_t AddTraceEvent( |
38 const uint8_t* category_enabled_flag, | 38 char phase, |
39 const char* name, | 39 const uint8_t* category_enabled_flag, |
40 const char* scope, | 40 const char* name, |
41 uint64_t id, | 41 const char* scope, |
42 uint64_t bind_id, | 42 uint64_t id, |
43 int32_t num_args, | 43 uint64_t bind_id, |
44 const char** arg_names, | 44 int32_t num_args, |
45 const uint8_t* arg_types, | 45 const char** arg_names, |
46 const uint64_t* arg_values, | 46 const uint8_t* arg_types, |
47 unsigned int flags) override; | 47 const uint64_t* arg_values, |
| 48 std::unique_ptr<v8::ConvertableToTraceFormat>* arg_convertibles, |
| 49 unsigned int flags) override; |
48 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, | 50 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, |
49 const char* name, | 51 const char* name, |
50 uint64_t handle) override; | 52 uint64_t handle) override; |
51 | 53 |
52 void AddTraceStateObserver(v8::Platform::TraceStateObserver*) override; | 54 void AddTraceStateObserver(v8::Platform::TraceStateObserver*) override; |
53 void RemoveTraceStateObserver(v8::Platform::TraceStateObserver*) override; | 55 void RemoveTraceStateObserver(v8::Platform::TraceStateObserver*) override; |
54 | 56 |
55 private: | 57 private: |
56 friend struct base::DefaultLazyInstanceTraits<V8Platform>; | 58 friend struct base::DefaultLazyInstanceTraits<V8Platform>; |
57 | 59 |
58 V8Platform(); | 60 V8Platform(); |
59 ~V8Platform() override; | 61 ~V8Platform() override; |
60 | 62 |
61 DISALLOW_COPY_AND_ASSIGN(V8Platform); | 63 DISALLOW_COPY_AND_ASSIGN(V8Platform); |
62 }; | 64 }; |
63 | 65 |
64 } // namespace gin | 66 } // namespace gin |
65 | 67 |
66 #endif // GIN_PUBLIC_V8_PLATFORM_H_ | 68 #endif // GIN_PUBLIC_V8_PLATFORM_H_ |
OLD | NEW |