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/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/threading/thread_local_storage.h" | 10 #include "base/threading/thread_local_storage.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); | 76 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); |
77 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); | 77 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); |
78 virtual void decrementStatsCounter(const char* name); | 78 virtual void decrementStatsCounter(const char* name); |
79 virtual void incrementStatsCounter(const char* name); | 79 virtual void incrementStatsCounter(const char* name); |
80 virtual void histogramCustomCounts( | 80 virtual void histogramCustomCounts( |
81 const char* name, int sample, int min, int max, int bucket_count); | 81 const char* name, int sample, int min, int max, int bucket_count); |
82 virtual void histogramEnumeration( | 82 virtual void histogramEnumeration( |
83 const char* name, int sample, int boundary_value); | 83 const char* name, int sample, int boundary_value); |
84 virtual const unsigned char* getTraceCategoryEnabledFlag( | 84 virtual const unsigned char* getTraceCategoryEnabledFlag( |
85 const char* category_name); | 85 const char* category_name); |
| 86 // TODO(caseq): compatibility overload. Remove once WebKitPlatformSupport |
| 87 // is updated. |
86 virtual int addTraceEvent( | 88 virtual int addTraceEvent( |
87 char phase, | 89 char phase, |
88 const unsigned char* category_enabled, | 90 const unsigned char* category_enabled, |
89 const char* name, | 91 const char* name, |
90 unsigned long long id, | 92 unsigned long long id, |
91 int num_args, | 93 int num_args, |
92 const char** arg_names, | 94 const char** arg_names, |
93 const unsigned char* arg_types, | 95 const unsigned char* arg_types, |
94 const unsigned long long* arg_values, | 96 const unsigned long long* arg_values, |
95 int threshold_begin_id, | 97 int threshold_begin_id, |
96 long long threshold, | 98 long long threshold, |
97 unsigned char flags); | 99 unsigned char flags); |
| 100 virtual void addTraceEvent( |
| 101 char phase, |
| 102 const unsigned char* category_enabled, |
| 103 const char* name, |
| 104 unsigned long long id, |
| 105 int num_args, |
| 106 const char** arg_names, |
| 107 const unsigned char* arg_types, |
| 108 const unsigned long long* arg_values, |
| 109 unsigned char flags); |
98 virtual WebKit::WebData loadResource(const char* name); | 110 virtual WebKit::WebData loadResource(const char* name); |
99 virtual bool loadAudioResource( | 111 virtual bool loadAudioResource( |
100 WebKit::WebAudioBus* destination_bus, const char* audio_file_data, | 112 WebKit::WebAudioBus* destination_bus, const char* audio_file_data, |
101 size_t data_size, double sample_rate); | 113 size_t data_size, double sample_rate); |
102 virtual WebKit::WebString queryLocalizedString( | 114 virtual WebKit::WebString queryLocalizedString( |
103 WebKit::WebLocalizedString::Name name); | 115 WebKit::WebLocalizedString::Name name); |
104 virtual WebKit::WebString queryLocalizedString( | 116 virtual WebKit::WebString queryLocalizedString( |
105 WebKit::WebLocalizedString::Name name, int numeric_value); | 117 WebKit::WebLocalizedString::Name name, int numeric_value); |
106 virtual WebKit::WebString queryLocalizedString( | 118 virtual WebKit::WebString queryLocalizedString( |
107 WebKit::WebLocalizedString::Name name, const WebKit::WebString& value); | 119 WebKit::WebLocalizedString::Name name, const WebKit::WebString& value); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 double shared_timer_fire_time_; | 184 double shared_timer_fire_time_; |
173 int shared_timer_suspended_; // counter | 185 int shared_timer_suspended_; // counter |
174 WebThemeEngineImpl theme_engine_; | 186 WebThemeEngineImpl theme_engine_; |
175 base::ThreadLocalStorage::Slot current_thread_slot_; | 187 base::ThreadLocalStorage::Slot current_thread_slot_; |
176 scoped_ptr<webkit::WebCompositorSupportImpl> compositor_support_; | 188 scoped_ptr<webkit::WebCompositorSupportImpl> compositor_support_; |
177 }; | 189 }; |
178 | 190 |
179 } // namespace webkit_glue | 191 } // namespace webkit_glue |
180 | 192 |
181 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 193 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
OLD | NEW |