OLD | NEW |
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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 445 // Callbacks for reporting histogram data. |
446 // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1
000000, bucketCount=50 would do. | |
447 virtual void histogramCustomCounts(const char* name, int sample, int min, in
t max, int bucketCount) { } | |
448 // Enumeration histogram buckets are linear, boundaryValue should be larger
than any possible sample value. | 446 // Enumeration histogram buckets are linear, boundaryValue should be larger
than any possible sample value. |
449 virtual void histogramEnumeration(const char* name, int sample, int boundary
Value) { } | 447 virtual void histogramEnumeration(const char* name, int sample, int boundary
Value) { } |
450 | 448 |
451 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o
rg/developers/design-documents/rappor. | 449 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o
rg/developers/design-documents/rappor. |
452 // recordRappor records a sample string, while recordRapporURL records the d
omain and registry of a url. | 450 // recordRappor records a sample string, while recordRapporURL records the d
omain and registry of a url. |
453 virtual void recordRappor(const char* metric, const WebString& sample) { } | 451 virtual void recordRappor(const char* metric, const WebString& sample) { } |
454 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) {
} | 452 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) {
} |
455 | 453 |
456 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump | 454 // Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump |
457 // method will be called on the same thread that called the | 455 // method will be called on the same thread that called the |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 protected: | 638 protected: |
641 BLINK_PLATFORM_EXPORT Platform(); | 639 BLINK_PLATFORM_EXPORT Platform(); |
642 virtual ~Platform() { } | 640 virtual ~Platform() { } |
643 | 641 |
644 WebThread* m_mainThread; | 642 WebThread* m_mainThread; |
645 }; | 643 }; |
646 | 644 |
647 } // namespace blink | 645 } // namespace blink |
648 | 646 |
649 #endif | 647 #endif |
OLD | NEW |