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 CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/threading/thread_local_storage.h" | 9 #include "base/threading/thread_local_storage.h" |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 const char* name, int sample, int boundary_value); | 97 const char* name, int sample, int boundary_value); |
98 virtual void histogramSparse(const char* name, int sample); | 98 virtual void histogramSparse(const char* name, int sample); |
99 virtual const unsigned char* getTraceCategoryEnabledFlag( | 99 virtual const unsigned char* getTraceCategoryEnabledFlag( |
100 const char* category_name); | 100 const char* category_name); |
101 virtual long* getTraceSamplingState(const unsigned thread_bucket); | 101 virtual long* getTraceSamplingState(const unsigned thread_bucket); |
102 virtual TraceEventHandle addTraceEvent( | 102 virtual TraceEventHandle addTraceEvent( |
103 char phase, | 103 char phase, |
104 const unsigned char* category_group_enabled, | 104 const unsigned char* category_group_enabled, |
105 const char* name, | 105 const char* name, |
106 unsigned long long id, | 106 unsigned long long id, |
| 107 double timestamp, |
| 108 int num_args, |
| 109 const char** arg_names, |
| 110 const unsigned char* arg_types, |
| 111 const unsigned long long* arg_values, |
| 112 unsigned char flags); |
| 113 virtual TraceEventHandle addTraceEvent( |
| 114 char phase, |
| 115 const unsigned char* category_group_enabled, |
| 116 const char* name, |
| 117 unsigned long long id, |
| 118 double timestamp, |
| 119 int num_args, |
| 120 const char** arg_names, |
| 121 const unsigned char* arg_types, |
| 122 const unsigned long long* arg_values, |
| 123 const blink::WebConvertableToTraceFormat* convertable_values, |
| 124 unsigned char flags); |
| 125 // TODO(charliea): Remove the addTraceEvent methods without timestamps |
| 126 // once Blink uses the new signature with timestamps |
| 127 virtual TraceEventHandle addTraceEvent( |
| 128 char phase, |
| 129 const unsigned char* category_group_enabled, |
| 130 const char* name, |
| 131 unsigned long long id, |
107 int num_args, | 132 int num_args, |
108 const char** arg_names, | 133 const char** arg_names, |
109 const unsigned char* arg_types, | 134 const unsigned char* arg_types, |
110 const unsigned long long* arg_values, | 135 const unsigned long long* arg_values, |
111 unsigned char flags); | 136 unsigned char flags); |
112 virtual TraceEventHandle addTraceEvent( | 137 virtual TraceEventHandle addTraceEvent( |
113 char phase, | 138 char phase, |
114 const unsigned char* category_group_enabled, | 139 const unsigned char* category_group_enabled, |
115 const char* name, | 140 const char* name, |
116 unsigned long long id, | 141 unsigned long long id, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 scoped_ptr<WebBluetoothImpl> bluetooth_; | 215 scoped_ptr<WebBluetoothImpl> bluetooth_; |
191 | 216 |
192 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 217 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
193 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 218 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
194 scoped_refptr<PushDispatcher> push_dispatcher_; | 219 scoped_refptr<PushDispatcher> push_dispatcher_; |
195 }; | 220 }; |
196 | 221 |
197 } // namespace content | 222 } // namespace content |
198 | 223 |
199 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 224 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |