Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: WebKit/chromium/public/WebKitClient.h

Issue 5622002: Merge 73137 - 2010-12-02 Vincent Scheib <scheib@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « WebKit/chromium/ChangeLog ('k') | WebKit/chromium/src/ChromiumBridge.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Profiling ----------------------------------------------------------- 203 // Profiling -----------------------------------------------------------
204 204
205 virtual void decrementStatsCounter(const char* name) { } 205 virtual void decrementStatsCounter(const char* name) { }
206 virtual void incrementStatsCounter(const char* name) { } 206 virtual void incrementStatsCounter(const char* name) { }
207 207
208 // An event is identified by the pair (name, id). The extra parameter 208 // An event is identified by the pair (name, id). The extra parameter
209 // specifies additional data to log with the event. 209 // specifies additional data to log with the event.
210 virtual void traceEventBegin(const char* name, void* id, const char* extra) { } 210 virtual void traceEventBegin(const char* name, void* id, const char* extra) { }
211 virtual void traceEventEnd(const char* name, void* id, const char* extra) { } 211 virtual void traceEventEnd(const char* name, void* id, const char* extra) { }
212 212
213 // Generic callback for reporting histogram data. Range is identified by the min, max pair. 213 // Callbacks for reporting histogram data.
214 // By default, histogram is exponential, so that min=1, max=1000000, bucketC ount=50 would do. Setting 214 // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1 000000, bucketCount=50 would do.
215 // linear to true would require bucket count to cover whole min-max range. 215 virtual void histogramCustomCounts(const char* name, int sample, int min, in t max, int bucketCount) { }
216 virtual void histogramCounts(const WebString& name, int sample, int min, int max, int bucketCount, bool linear) { } 216 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value.
217 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { }
217 218
218 219
219 // Resources ----------------------------------------------------------- 220 // Resources -----------------------------------------------------------
220 221
221 // Returns a blob of data corresponding to the named resource. 222 // Returns a blob of data corresponding to the named resource.
222 virtual WebData loadResource(const char* name) { return WebData(); } 223 virtual WebData loadResource(const char* name) { return WebData(); }
223 224
224 // Decodes the in-memory audio file data and returns the linear PCM audio da ta in the destinationBus. 225 // Decodes the in-memory audio file data and returns the linear PCM audio da ta in the destinationBus.
225 // A sample-rate conversion to sampleRate will occur if the file data is at a different sample-rate. 226 // A sample-rate conversion to sampleRate will occur if the file data is at a different sample-rate.
226 // Returns true on success. 227 // Returns true on success.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // Must return non-null. 282 // Must return non-null.
282 virtual WebFileSystem* fileSystem() { return 0; } 283 virtual WebFileSystem* fileSystem() { return 0; }
283 284
284 protected: 285 protected:
285 ~WebKitClient() { } 286 ~WebKitClient() { }
286 }; 287 };
287 288
288 } // namespace WebKit 289 } // namespace WebKit
289 290
290 #endif 291 #endif
OLDNEW
« no previous file with comments | « WebKit/chromium/ChangeLog ('k') | WebKit/chromium/src/ChromiumBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698