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_PLATFORM_SUPPORT_IMPL_H_ | 5 #ifndef WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 6 #define WEBKIT_PLATFORM_SUPPORT_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/platform_file.h" | 10 #include "base/platform_file.h" |
10 #include "base/threading/thread_local_storage.h" | 11 #include "base/threading/thread_local_storage.h" |
11 #include "base/timer.h" | 12 #include "base/timer.h" |
12 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" | 13 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" |
13 #include "ui/base/layout.h" | 14 #include "ui/base/layout.h" |
14 #include "webkit/glue/resource_loader_bridge.h" | 15 #include "webkit/glue/resource_loader_bridge.h" |
15 #include "webkit/glue/webkit_glue_export.h" | 16 #include "webkit/glue/webkit_glue_export.h" |
16 | 17 |
17 #if defined(USE_DEFAULT_RENDER_THEME) | 18 #if defined(USE_DEFAULT_RENDER_THEME) |
18 #include "webkit/glue/webthemeengine_impl_default.h" | 19 #include "webkit/glue/webthemeengine_impl_default.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); | 82 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); |
82 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); | 83 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); |
83 virtual void decrementStatsCounter(const char* name); | 84 virtual void decrementStatsCounter(const char* name); |
84 virtual void incrementStatsCounter(const char* name); | 85 virtual void incrementStatsCounter(const char* name); |
85 virtual void histogramCustomCounts( | 86 virtual void histogramCustomCounts( |
86 const char* name, int sample, int min, int max, int bucket_count); | 87 const char* name, int sample, int min, int max, int bucket_count); |
87 virtual void histogramEnumeration( | 88 virtual void histogramEnumeration( |
88 const char* name, int sample, int boundary_value); | 89 const char* name, int sample, int boundary_value); |
89 virtual const unsigned char* getTraceCategoryEnabledFlag( | 90 virtual const unsigned char* getTraceCategoryEnabledFlag( |
90 const char* category_name); | 91 const char* category_name); |
| 92 virtual TRACE_EVENT_API_ATOMIC_WORD* getTraceSamplingState( |
| 93 const unsigned thread_bucket); |
91 virtual void addTraceEvent( | 94 virtual void addTraceEvent( |
92 char phase, | 95 char phase, |
93 const unsigned char* category_enabled, | 96 const unsigned char* category_enabled, |
94 const char* name, | 97 const char* name, |
95 unsigned long long id, | 98 unsigned long long id, |
96 int num_args, | 99 int num_args, |
97 const char** arg_names, | 100 const char** arg_names, |
98 const unsigned char* arg_types, | 101 const unsigned char* arg_types, |
99 const unsigned long long* arg_values, | 102 const unsigned long long* arg_values, |
100 unsigned char flags); | 103 unsigned char flags); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 int shared_timer_suspended_; // counter | 186 int shared_timer_suspended_; // counter |
184 WebThemeEngineImpl theme_engine_; | 187 WebThemeEngineImpl theme_engine_; |
185 base::ThreadLocalStorage::Slot current_thread_slot_; | 188 base::ThreadLocalStorage::Slot current_thread_slot_; |
186 scoped_ptr<webkit::WebCompositorSupportImpl> compositor_support_; | 189 scoped_ptr<webkit::WebCompositorSupportImpl> compositor_support_; |
187 scoped_ptr<FlingCurveConfiguration> fling_curve_configuration_; | 190 scoped_ptr<FlingCurveConfiguration> fling_curve_configuration_; |
188 }; | 191 }; |
189 | 192 |
190 } // namespace webkit_glue | 193 } // namespace webkit_glue |
191 | 194 |
192 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 195 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
OLD | NEW |