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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
563 // Set the duration field of a COMPLETE trace event. | 563 // Set the duration field of a COMPLETE trace event. |
564 virtual void updateTraceEventDuration(const unsigned char* categoryEnabledFl ag, const char* name, TraceEventHandle) { } | 564 virtual void updateTraceEventDuration(const unsigned char* categoryEnabledFl ag, const char* name, TraceEventHandle) { } |
565 | 565 |
566 // Callbacks for reporting histogram data. | 566 // Callbacks for reporting histogram data. |
567 // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1 000000, bucketCount=50 would do. | 567 // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1 000000, bucketCount=50 would do. |
568 virtual void histogramCustomCounts(const char* name, int sample, int min, in t max, int bucketCount) { } | 568 virtual void histogramCustomCounts(const char* name, int sample, int min, in t max, int bucketCount) { } |
569 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value. | 569 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value. |
570 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { } | 570 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { } |
571 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets. | 571 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets. |
572 virtual void histogramSparse(const char* name, int sample) { } | 572 virtual void histogramSparse(const char* name, int sample) { } |
573 // Record to RAPPOR. | 573 |
574 // Record to RAPPOR, see: https://www.chromium.org/developers/design-documen ts/rappor | |
575 // Records a sample string to a Rappor privacy-preserving metric. | |
574 virtual void recordRappor(const char* metric, const WebString& sample) { } | 576 virtual void recordRappor(const char* metric, const WebString& sample) { } |
577 // Records a domain and registry of a url to a Rappor privacy-preserving met ric. | |
Mike West
2015/04/14 05:20:38
Nit: These method-level comments seem somewhat sel
timvolodine
2015/04/14 10:24:22
I've added these comments on suggestion of koji@ a
| |
578 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { } | |
575 | 579 |
576 // GPU ---------------------------------------------------------------- | 580 // GPU ---------------------------------------------------------------- |
577 // | 581 // |
578 // May return null if GPU is not supported. | 582 // May return null if GPU is not supported. |
579 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. | 583 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. |
580 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context. | 584 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context. |
581 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return 0; } | 585 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return 0; } |
582 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf o) { return 0; } | 586 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf o) { return 0; } |
583 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; } | 587 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; } |
584 | 588 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
701 protected: | 705 protected: |
702 BLINK_PLATFORM_EXPORT Platform(); | 706 BLINK_PLATFORM_EXPORT Platform(); |
703 virtual ~Platform() { } | 707 virtual ~Platform() { } |
704 | 708 |
705 WebThread* m_mainThread; | 709 WebThread* m_mainThread; |
706 }; | 710 }; |
707 | 711 |
708 } // namespace blink | 712 } // namespace blink |
709 | 713 |
710 #endif | 714 #endif |
OLD | NEW |