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

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

Issue 2057153002: Add GetUserMedia ETLD+1 rappor metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Stop reporting host-based GetUserMedia rappor Created 4 years, 6 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 // Returns an interface to the compositor thread. This can be null if the 400 // Returns an interface to the compositor thread. This can be null if the
401 // renderer was created with threaded rendering desabled. 401 // renderer was created with threaded rendering desabled.
402 virtual WebThread* compositorThread() const { return 0; } 402 virtual WebThread* compositorThread() const { return 0; }
403 403
404 // Testing ------------------------------------------------------------- 404 // Testing -------------------------------------------------------------
405 405
406 // Gets a pointer to URLLoaderMockFactory for testing. Will not be available in production builds. 406 // Gets a pointer to URLLoaderMockFactory for testing. Will not be available in production builds.
407 virtual WebURLLoaderMockFactory* getURLLoaderMockFactory() { return nullptr; } 407 virtual WebURLLoaderMockFactory* getURLLoaderMockFactory() { return nullptr; }
408 408
409 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor. 409 // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.o rg/developers/design-documents/rappor.
410 // recordRappor records a sample string, while recordRapporURL records the d omain and registry of a url. 410 // recordRappor records a sample string, while recordRapporURL records the e TLD+1 of a url.
411 virtual void recordRappor(const char* metric, const WebString& sample) { } 411 virtual void recordRappor(const char* metric, const WebString& sample) { }
412 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { } 412 virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { }
413 413
414 // Record a UMA sequence action. The UserMetricsAction construction must 414 // Record a UMA sequence action. The UserMetricsAction construction must
415 // be on a single line for extract_actions.py to find it. Please see 415 // be on a single line for extract_actions.py to find it. Please see
416 // that script for more details. Intended use is: 416 // that script for more details. Intended use is:
417 // recordAction(UserMetricsAction("MyAction")) 417 // recordAction(UserMetricsAction("MyAction"))
418 virtual void recordAction(const UserMetricsAction&) { } 418 virtual void recordAction(const UserMetricsAction&) { }
419 419
420 class TraceLogEnabledStateObserver { 420 class TraceLogEnabledStateObserver {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 protected: 605 protected:
606 Platform(); 606 Platform();
607 virtual ~Platform() { } 607 virtual ~Platform() { }
608 608
609 WebThread* m_mainThread; 609 WebThread* m_mainThread;
610 }; 610 };
611 611
612 } // namespace blink 612 } // namespace blink
613 613
614 #endif 614 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp ('k') | tools/metrics/rappor/rappor.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698