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

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

Issue 1653043002: Remove Sparse Histograms from Blink Platform API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_blink_histograms
Patch Set: Fix android code path 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
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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Callbacks for reporting histogram data. 451 // Callbacks for reporting histogram data.
452 // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1 000000, bucketCount=50 would do. 452 // 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) { } 453 virtual void histogramCustomCounts(const char* name, int sample, int min, in t max, int bucketCount) { }
454 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value. 454 // 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) { } 455 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { }
456 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets.
457 virtual void histogramSparse(const char* name, int sample) { }
458 456
459 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor. 457 // 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. 458 // 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) { } 459 virtual void recordRappor(const char* metric, const WebString& sample) { }
462 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { } 460 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { }
463 461
464 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump 462 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump
465 // method will be called on the same thread that called the 463 // method will be called on the same thread that called the
466 // registerMemoryDumpProvider() method. |name| is used for debugging 464 // registerMemoryDumpProvider() method. |name| is used for debugging
467 // (duplicates are allowed) and must be a long-lived C string. 465 // (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: 646 protected:
649 BLINK_PLATFORM_EXPORT Platform(); 647 BLINK_PLATFORM_EXPORT Platform();
650 virtual ~Platform() { } 648 virtual ~Platform() { }
651 649
652 WebThread* m_mainThread; 650 WebThread* m_mainThread;
653 }; 651 };
654 652
655 } // namespace blink 653 } // namespace blink
656 654
657 #endif 655 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698