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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 1631143003: CL for perf tryjob on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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 | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | tools/run-perf-test.cfg » ('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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 // Cancels the current vibration, if there is one. 442 // Cancels the current vibration, if there is one.
443 virtual void cancelVibration() { } 443 virtual void cancelVibration() { }
444 444
445 445
446 // Testing ------------------------------------------------------------- 446 // Testing -------------------------------------------------------------
447 447
448 // Get a pointer to testing support interfaces. Will not be available in pro duction builds. 448 // Get a pointer to testing support interfaces. Will not be available in pro duction builds.
449 virtual WebUnitTestSupport* unitTestSupport() { return nullptr; } 449 virtual WebUnitTestSupport* unitTestSupport() { return nullptr; }
450 450
451 typedef void* HistogramCacheSlot;
452
451 // Callbacks for reporting histogram data. 453 // Callbacks for reporting histogram data.
452 // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1 000000, bucketCount=50 would do. 454 // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1 000000, bucketCount=50 would do.
453 virtual void histogramCustomCounts(const char* name, int sample, int min, in t max, int bucketCount) { } 455 // |cache_slot| is intended to be a thread safe pointer to an entry that
456 // the histogram code can store a lookup value in. Note that |name|
457 // MUST be the same as a previous call if providing a |cache_slot| that
458 // was used in a previous call.
459 virtual void histogramCustomCounts(const char* name, int sample, int min, in t max, int bucketCount, HistogramCacheSlot* cache_slot = 0) {}
454 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value. 460 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value.
455 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { } 461 // |cache_slot| is intended to be a thread safe pointer to an entry that
462 // the histogram code can store a lookup value in. Note that |name|
463 // MUST be the same as a previous call if providing a |cache_slot| that
464 // was used in a previous call.
465 virtual void histogramEnumeration(const char* name, int sample, int boundary Value, HistogramCacheSlot* cache_slot = 0) {}
456 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets. 466 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets.
457 virtual void histogramSparse(const char* name, int sample) { } 467 // |cache_slot| is intended to be a thread safe pointer to an entry that
468 // the histogram code can store a lookup value in. Note that |name|
469 // MUST be the same as a previous call if providing a |cache_slot| that
470 // was used in a previous call.
471 virtual void histogramSparse(const char* name, int sample, HistogramCacheSlo t* cache_slot = 0) {}
458 472
459 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor. 473 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor.
460 // recordRappor records a sample string, while recordRapporURL records the d omain and registry of a url. 474 // recordRappor records a sample string, while recordRapporURL records the d omain and registry of a url.
461 virtual void recordRappor(const char* metric, const WebString& sample) { } 475 virtual void recordRappor(const char* metric, const WebString& sample) { }
462 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { } 476 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { }
463 477
464 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump 478 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump
465 // method will be called on the same thread that called the 479 // method will be called on the same thread that called the
466 // registerMemoryDumpProvider() method. |name| is used for debugging 480 // registerMemoryDumpProvider() method. |name| is used for debugging
467 // (duplicates are allowed) and must be a long-lived C string. 481 // (duplicates are allowed) and must be a long-lived C string.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 protected: 662 protected:
649 BLINK_PLATFORM_EXPORT Platform(); 663 BLINK_PLATFORM_EXPORT Platform();
650 virtual ~Platform() { } 664 virtual ~Platform() { }
651 665
652 WebThread* m_mainThread; 666 WebThread* m_mainThread;
653 }; 667 };
654 668
655 } // namespace blink 669 } // namespace blink
656 670
657 #endif 671 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | tools/run-perf-test.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698