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

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

Issue 986583002: Collect host of Web Component usage to send to RAPPOR (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tkent@'s review comments Created 5 years, 9 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 | « Source/core/page/Page.cpp ('k') | no next file » | 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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 // Set the duration field of a COMPLETE trace event. 535 // Set the duration field of a COMPLETE trace event.
536 virtual void updateTraceEventDuration(const unsigned char* categoryEnabledFl ag, const char* name, TraceEventHandle) { } 536 virtual void updateTraceEventDuration(const unsigned char* categoryEnabledFl ag, const char* name, TraceEventHandle) { }
537 537
538 // Callbacks for reporting histogram data. 538 // Callbacks for reporting histogram data.
539 // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1 000000, bucketCount=50 would do. 539 // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1 000000, bucketCount=50 would do.
540 virtual void histogramCustomCounts(const char* name, int sample, int min, in t max, int bucketCount) { } 540 virtual void histogramCustomCounts(const char* name, int sample, int min, in t max, int bucketCount) { }
541 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value. 541 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value.
542 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { } 542 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { }
543 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets. 543 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets.
544 virtual void histogramSparse(const char* name, int sample) { } 544 virtual void histogramSparse(const char* name, int sample) { }
545 545 // Record to RAPPPOR.
tkent 2015/03/16 04:59:21 RAPPPOR -> RAPPOR
kojii 2015/03/16 06:45:40 Done.
546 virtual void recordRappor(const char* metric, const WebString& sample) { }
546 547
547 // GPU ---------------------------------------------------------------- 548 // GPU ----------------------------------------------------------------
548 // 549 //
549 // May return null if GPU is not supported. 550 // May return null if GPU is not supported.
550 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. 551 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance.
551 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context. 552 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context.
552 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return 0; } 553 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return 0; }
553 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf o) { return 0; } 554 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf o) { return 0; }
554 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; } 555 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; }
555 556
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 protected: 669 protected:
669 BLINK_PLATFORM_EXPORT Platform(); 670 BLINK_PLATFORM_EXPORT Platform();
670 virtual ~Platform() { } 671 virtual ~Platform() { }
671 672
672 WebThread* m_mainThread; 673 WebThread* m_mainThread;
673 }; 674 };
674 675
675 } // namespace blink 676 } // namespace blink
676 677
677 #endif 678 #endif
OLDNEW
« no previous file with comments | « Source/core/page/Page.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698