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

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

Issue 1652983005: Remove Enumeration Histograms from the Blink Platform API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_blink_histograms_5a
Patch Set: Rebase two new histograms were added today 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 435
436 // Cancels the current vibration, if there is one. 436 // Cancels the current vibration, if there is one.
437 virtual void cancelVibration() { } 437 virtual void cancelVibration() { }
438 438
439 439
440 // Testing ------------------------------------------------------------- 440 // Testing -------------------------------------------------------------
441 441
442 // Get a pointer to testing support interfaces. Will not be available in pro duction builds. 442 // Get a pointer to testing support interfaces. Will not be available in pro duction builds.
443 virtual WebUnitTestSupport* unitTestSupport() { return nullptr; } 443 virtual WebUnitTestSupport* unitTestSupport() { return nullptr; }
444 444
445 // Callbacks for reporting histogram data.
446 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value.
447 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { }
448
449 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor. 445 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor.
450 // recordRappor records a sample string, while recordRapporURL records the d omain and registry of a url. 446 // recordRappor records a sample string, while recordRapporURL records the d omain and registry of a url.
451 virtual void recordRappor(const char* metric, const WebString& sample) { } 447 virtual void recordRappor(const char* metric, const WebString& sample) { }
452 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { } 448 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { }
453 449
454 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump 450 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump
455 // method will be called on the same thread that called the 451 // method will be called on the same thread that called the
456 // registerMemoryDumpProvider() method. |name| is used for debugging 452 // registerMemoryDumpProvider() method. |name| is used for debugging
457 // (duplicates are allowed) and must be a long-lived C string. 453 // (duplicates are allowed) and must be a long-lived C string.
458 // See crbug.com/458295 for design docs. 454 // See crbug.com/458295 for design docs.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 protected: 634 protected:
639 BLINK_PLATFORM_EXPORT Platform(); 635 BLINK_PLATFORM_EXPORT Platform();
640 virtual ~Platform() { } 636 virtual ~Platform() { }
641 637
642 WebThread* m_mainThread; 638 WebThread* m_mainThread;
643 }; 639 };
644 640
645 } // namespace blink 641 } // namespace blink
646 642
647 #endif 643 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698