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

Unified Diff: third_party/WebKit/Source/core/frame/HostsUsingFeatures.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/HostsUsingFeatures.h
diff --git a/third_party/WebKit/Source/core/frame/HostsUsingFeatures.h b/third_party/WebKit/Source/core/frame/HostsUsingFeatures.h
index 7abe773a04536066cef7a85b4eefdab3dad3d309..19e7147d1a00096e0777e95933dfc6ad140fbc4f 100644
--- a/third_party/WebKit/Source/core/frame/HostsUsingFeatures.h
+++ b/third_party/WebKit/Source/core/frame/HostsUsingFeatures.h
@@ -7,6 +7,7 @@
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
+#include "platform/weborigin/KURL.h"
#include "wtf/HashMap.h"
#include "wtf/Vector.h"
#include "wtf/text/StringHash.h"
@@ -62,6 +63,7 @@ public:
void aggregate(Value);
void recordHostToRappor(const String& host);
void recordNameToRappor(const String& name);
+ void recordETLDPlus1ToRappor(const KURL&);
private:
unsigned m_countBits : static_cast<unsigned>(Feature::NumberOfFeatures);
@@ -74,8 +76,9 @@ public:
private:
void recordHostToRappor();
void recordNamesToRappor();
+ void recordETLDPlus1ToRappor();
- Vector<std::pair<String, HostsUsingFeatures::Value>, 1> m_hostAndValues;
+ Vector<std::pair<KURL, HostsUsingFeatures::Value>, 1> m_urlAndValues;
HashMap<String, HostsUsingFeatures::Value> m_valueByName;
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698