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

Unified Diff: content/renderer/render_thread_impl.h

Issue 1399853004: Collect separate V8 histograms for Top10 non-Google sites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed UnitTests so they don't need to convert bool Created 5 years, 2 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 | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 2dcd6a5b5f4ba5f34dd43cb8cb6edf5cc7d6bceb..236da9f6a3509cfc8455ec7d44e482436474f8fe 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -382,8 +382,16 @@ class CONTENT_EXPORT RenderThreadImpl
std::string ConvertToCustomHistogramName(const char* histogram_name) const;
private:
+ FRIEND_TEST_ALL_PREFIXES(RenderThreadImplUnittest,
+ IdentifyAlexaTop10NonGoogleSite);
friend class RenderThreadImplUnittest;
+ // Converts a host name to a suffix for histograms
+ std::string HostToCustomHistogramSuffix(const std::string& host);
+
+ // Helper function to identify a certain set of top pages
+ bool IsAlexaTop10NonGoogleSite(const std::string& host);
+
// Used for updating the information on which is the common host which all
// RenderView's share (if any). If there is no common host, this function is
// called with an empty string.
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698