summaryrefslogtreecommitdiffstats
path: root/chrome/installer
diff options
context:
space:
mode:
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-09 05:11:41 +0000
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-09 05:11:41 +0000
commitd67d10528eb68753d19db1698b3688fa48fa44b3 (patch)
tree3797e452b5c689ff8da97dc9a73b775c610b07ea /chrome/installer
parent785db4fe43f9b4b3ce1231dec4d723e379ed992b (diff)
downloadchromium_src-d67d10528eb68753d19db1698b3688fa48fa44b3.zip
chromium_src-d67d10528eb68753d19db1698b3688fa48fa44b3.tar.gz
chromium_src-d67d10528eb68753d19db1698b3688fa48fa44b3.tar.bz2
Collect stats to investigate the viability of UDP
connectivity from the browser (first cut). Collect stats for TCP connectivity also. - What percentage of users can get a message end-to-end to an TCP and UDP server. - What is the latency for TCP and UDP messages. Added TCP and UDP echo servers to testserver.py for unittests. BUG=82565 TEST=udp tests Review URL: http://codereview.chromium.org/7056031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r--chrome/installer/util/browser_distribution.cc4
-rw-r--r--chrome/installer/util/browser_distribution.h2
-rw-r--r--chrome/installer/util/chrome_frame_distribution.cc5
-rw-r--r--chrome/installer/util/chrome_frame_distribution.h2
-rw-r--r--chrome/installer/util/google_chrome_distribution.cc5
-rw-r--r--chrome/installer/util/google_chrome_distribution.h2
-rw-r--r--chrome/installer/util/google_chrome_distribution_dummy.cc5
7 files changed, 25 insertions, 0 deletions
diff --git a/chrome/installer/util/browser_distribution.cc b/chrome/installer/util/browser_distribution.cc
index 18dba7e..ce4d1c6 100644
--- a/chrome/installer/util/browser_distribution.cc
+++ b/chrome/installer/util/browser_distribution.cc
@@ -179,6 +179,10 @@ std::wstring BrowserDistribution::GetStatsServerURL() {
return L"";
}
+std::string BrowserDistribution::GetNetworkStatsServer() const {
+ return "";
+}
+
std::wstring BrowserDistribution::GetDistributionData(HKEY root_key) {
return L"";
}
diff --git a/chrome/installer/util/browser_distribution.h b/chrome/installer/util/browser_distribution.h
index c766a8a..fa0c9d6 100644
--- a/chrome/installer/util/browser_distribution.h
+++ b/chrome/installer/util/browser_distribution.h
@@ -88,6 +88,8 @@ class BrowserDistribution {
virtual std::wstring GetStatsServerURL();
+ virtual std::string GetNetworkStatsServer() const;
+
#if defined(OS_WIN)
virtual std::wstring GetDistributionData(HKEY root_key);
#endif
diff --git a/chrome/installer/util/chrome_frame_distribution.cc b/chrome/installer/util/chrome_frame_distribution.cc
index 6dc84ea..7305fdc 100644
--- a/chrome/installer/util/chrome_frame_distribution.cc
+++ b/chrome/installer/util/chrome_frame_distribution.cc
@@ -85,6 +85,11 @@ std::wstring ChromeFrameDistribution::GetStatsServerURL() {
return L"https://clients4.google.com/firefox/metrics/collect";
}
+std::string ChromeFrameDistribution::GetNetworkStatsServer() const {
+ // TODO(rtenneti): Return the network stats server name.
+ return "";
+}
+
std::wstring ChromeFrameDistribution::GetUninstallLinkName() {
return L"Uninstall Chrome Frame";
}
diff --git a/chrome/installer/util/chrome_frame_distribution.h b/chrome/installer/util/chrome_frame_distribution.h
index dca7086..f8078d4 100644
--- a/chrome/installer/util/chrome_frame_distribution.h
+++ b/chrome/installer/util/chrome_frame_distribution.h
@@ -43,6 +43,8 @@ class ChromeFrameDistribution : public BrowserDistribution {
virtual std::wstring GetStatsServerURL() OVERRIDE;
+ virtual std::string GetNetworkStatsServer() const OVERRIDE;
+
virtual std::wstring GetUninstallLinkName() OVERRIDE;
virtual std::wstring GetUninstallRegPath() OVERRIDE;
diff --git a/chrome/installer/util/google_chrome_distribution.cc b/chrome/installer/util/google_chrome_distribution.cc
index 89606d1..bb56cab 100644
--- a/chrome/installer/util/google_chrome_distribution.cc
+++ b/chrome/installer/util/google_chrome_distribution.cc
@@ -422,6 +422,11 @@ std::wstring GoogleChromeDistribution::GetStatsServerURL() {
return L"https://clients4.google.com/firefox/metrics/collect";
}
+std::string GoogleChromeDistribution::GetNetworkStatsServer() const {
+ // TODO(rtenneti): Return the network stats server name.
+ return "";
+}
+
std::wstring GoogleChromeDistribution::GetDistributionData(HKEY root_key) {
std::wstring sub_key(google_update::kRegPathClientState);
sub_key.append(L"\\");
diff --git a/chrome/installer/util/google_chrome_distribution.h b/chrome/installer/util/google_chrome_distribution.h
index 5586896..637b639 100644
--- a/chrome/installer/util/google_chrome_distribution.h
+++ b/chrome/installer/util/google_chrome_distribution.h
@@ -56,6 +56,8 @@ class GoogleChromeDistribution : public BrowserDistribution {
virtual std::wstring GetStatsServerURL() OVERRIDE;
+ virtual std::string GetNetworkStatsServer() const OVERRIDE;
+
// This method reads data from the Google Update ClientState key for
// potential use in the uninstall survey. It must be called before the
// key returned by GetVersionKey() is deleted.
diff --git a/chrome/installer/util/google_chrome_distribution_dummy.cc b/chrome/installer/util/google_chrome_distribution_dummy.cc
index 496d264..19e2800 100644
--- a/chrome/installer/util/google_chrome_distribution_dummy.cc
+++ b/chrome/installer/util/google_chrome_distribution_dummy.cc
@@ -80,6 +80,11 @@ std::wstring GoogleChromeDistribution::GetStatsServerURL() {
return std::wstring();
}
+std::string GoogleChromeDistribution::GetNetworkStatsServer() const {
+ NOTREACHED();
+ return std::string();
+}
+
std::wstring GoogleChromeDistribution::GetDistributionData(HKEY root_key) {
NOTREACHED();
return std::wstring();