OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ |
6 #define WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_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/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual TraceEventHandle addTraceEvent( | 80 virtual TraceEventHandle addTraceEvent( |
81 char phase, | 81 char phase, |
82 const unsigned char* category_group_enabled, | 82 const unsigned char* category_group_enabled, |
83 const char* name, | 83 const char* name, |
84 unsigned long long id, | 84 unsigned long long id, |
85 int num_args, | 85 int num_args, |
86 const char** arg_names, | 86 const char** arg_names, |
87 const unsigned char* arg_types, | 87 const unsigned char* arg_types, |
88 const unsigned long long* arg_values, | 88 const unsigned long long* arg_values, |
89 unsigned char flags); | 89 unsigned char flags); |
| 90 // TODO(wangxianzhu): Remove this function after transition to the new one. |
90 virtual void updateTraceEventDuration(TraceEventHandle); | 91 virtual void updateTraceEventDuration(TraceEventHandle); |
| 92 virtual void updateTraceEventDuration( |
| 93 const unsigned char* category_group_enabled, |
| 94 const char* name, |
| 95 TraceEventHandle); |
91 virtual blink::WebData loadResource(const char* name); | 96 virtual blink::WebData loadResource(const char* name); |
92 virtual blink::WebString queryLocalizedString( | 97 virtual blink::WebString queryLocalizedString( |
93 blink::WebLocalizedString::Name name); | 98 blink::WebLocalizedString::Name name); |
94 virtual blink::WebString queryLocalizedString( | 99 virtual blink::WebString queryLocalizedString( |
95 blink::WebLocalizedString::Name name, int numeric_value); | 100 blink::WebLocalizedString::Name name, int numeric_value); |
96 virtual blink::WebString queryLocalizedString( | 101 virtual blink::WebString queryLocalizedString( |
97 blink::WebLocalizedString::Name name, const blink::WebString& value); | 102 blink::WebLocalizedString::Name name, const blink::WebString& value); |
98 virtual blink::WebString queryLocalizedString( | 103 virtual blink::WebString queryLocalizedString( |
99 blink::WebLocalizedString::Name name, | 104 blink::WebLocalizedString::Name name, |
100 const blink::WebString& value1, const blink::WebString& value2); | 105 const blink::WebString& value1, const blink::WebString& value2); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; | 148 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; |
144 void (*shared_timer_func_)(); | 149 void (*shared_timer_func_)(); |
145 double shared_timer_fire_time_; | 150 double shared_timer_fire_time_; |
146 bool shared_timer_fire_time_was_set_while_suspended_; | 151 bool shared_timer_fire_time_was_set_while_suspended_; |
147 int shared_timer_suspended_; // counter | 152 int shared_timer_suspended_; // counter |
148 }; | 153 }; |
149 | 154 |
150 } // namespace webkit_glue | 155 } // namespace webkit_glue |
151 | 156 |
152 #endif // WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ | 157 #endif // WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |