Chromium Code Reviews| 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/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/threading/thread_local_storage.h" | 10 #include "base/threading/thread_local_storage.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 virtual void decrementStatsCounter(const char* name); | 92 virtual void decrementStatsCounter(const char* name); |
| 93 virtual void incrementStatsCounter(const char* name); | 93 virtual void incrementStatsCounter(const char* name); |
| 94 virtual void histogramCustomCounts( | 94 virtual void histogramCustomCounts( |
| 95 const char* name, int sample, int min, int max, int bucket_count); | 95 const char* name, int sample, int min, int max, int bucket_count); |
| 96 virtual void histogramEnumeration( | 96 virtual void histogramEnumeration( |
| 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 | |
|
jam
2015/01/28 23:31:09
nit: remove. when we implement an interface, we ad
charliea_google.com
2015/01/28 23:34:36
Done.
| |
| 102 virtual TraceEventHandle addTraceEvent( | 103 virtual TraceEventHandle addTraceEvent( |
| 103 char phase, | 104 char phase, |
| 104 const unsigned char* category_group_enabled, | 105 const unsigned char* category_group_enabled, |
| 106 const char* name, | |
| 107 unsigned long long id, | |
| 108 double timestamp, | |
| 109 int num_args, | |
| 110 const char** arg_names, | |
| 111 const unsigned char* arg_types, | |
| 112 const unsigned long long* arg_values, | |
| 113 unsigned char flags); | |
| 114 virtual TraceEventHandle addTraceEvent( | |
| 115 char phase, | |
| 116 const unsigned char* category_group_enabled, | |
| 117 const char* name, | |
| 118 unsigned long long id, | |
| 119 double timestamp, | |
| 120 int num_args, | |
| 121 const char** arg_names, | |
| 122 const unsigned char* arg_types, | |
| 123 const unsigned long long* arg_values, | |
| 124 const blink::WebConvertableToTraceFormat* convertable_values, | |
| 125 unsigned char flags); | |
| 126 | |
| 127 // TODO(charliea): Remove the addTraceEvent methods without timestamps | |
| 128 // once Blink uses the new signature with timestamps | |
| 129 virtual TraceEventHandle addTraceEvent( | |
| 130 char phase, | |
| 131 const unsigned char* category_group_enabled, | |
| 105 const char* name, | 132 const char* name, |
| 106 unsigned long long id, | 133 unsigned long long id, |
| 107 int num_args, | 134 int num_args, |
| 108 const char** arg_names, | 135 const char** arg_names, |
| 109 const unsigned char* arg_types, | 136 const unsigned char* arg_types, |
| 110 const unsigned long long* arg_values, | 137 const unsigned long long* arg_values, |
| 111 unsigned char flags); | 138 unsigned char flags); |
| 112 virtual TraceEventHandle addTraceEvent( | 139 virtual TraceEventHandle addTraceEvent( |
| 113 char phase, | 140 char phase, |
| 114 const unsigned char* category_group_enabled, | 141 const unsigned char* category_group_enabled, |
| 115 const char* name, | 142 const char* name, |
| 116 unsigned long long id, | 143 unsigned long long id, |
| 117 int num_args, | 144 int num_args, |
| 118 const char** arg_names, | 145 const char** arg_names, |
| 119 const unsigned char* arg_types, | 146 const unsigned char* arg_types, |
| 120 const unsigned long long* arg_values, | 147 const unsigned long long* arg_values, |
| 121 const blink::WebConvertableToTraceFormat* convertable_values, | 148 const blink::WebConvertableToTraceFormat* convertable_values, |
| 122 unsigned char flags); | 149 unsigned char flags); |
| 150 | |
|
jam
2015/01/28 23:31:09
ditto
charliea_google.com
2015/01/28 23:34:36
Done.
| |
| 123 virtual void updateTraceEventDuration( | 151 virtual void updateTraceEventDuration( |
| 124 const unsigned char* category_group_enabled, | 152 const unsigned char* category_group_enabled, |
| 125 const char* name, | 153 const char* name, |
| 126 TraceEventHandle); | 154 TraceEventHandle); |
| 127 virtual blink::WebData loadResource(const char* name); | 155 virtual blink::WebData loadResource(const char* name); |
| 128 virtual blink::WebString queryLocalizedString( | 156 virtual blink::WebString queryLocalizedString( |
| 129 blink::WebLocalizedString::Name name); | 157 blink::WebLocalizedString::Name name); |
| 130 virtual blink::WebString queryLocalizedString( | 158 virtual blink::WebString queryLocalizedString( |
| 131 blink::WebLocalizedString::Name name, int numeric_value); | 159 blink::WebLocalizedString::Name name, int numeric_value); |
| 132 virtual blink::WebString queryLocalizedString( | 160 virtual blink::WebString queryLocalizedString( |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 190 scoped_ptr<WebBluetoothImpl> bluetooth_; | 218 scoped_ptr<WebBluetoothImpl> bluetooth_; |
| 191 | 219 |
| 192 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 220 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 193 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 221 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
| 194 scoped_refptr<PushDispatcher> push_dispatcher_; | 222 scoped_refptr<PushDispatcher> push_dispatcher_; |
| 195 }; | 223 }; |
| 196 | 224 |
| 197 } // namespace content | 225 } // namespace content |
| 198 | 226 |
| 199 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 227 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |