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

Unified Diff: components/translate/core/browser/translate_script.h

Issue 2251273002: pass script fetch start / end time to Transalte Element to implement real time latency monitoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: components/translate/core/browser/translate_script.h
diff --git a/components/translate/core/browser/translate_script.h b/components/translate/core/browser/translate_script.h
index 8c358735035d2328a38e4b79778078fd7fcff449..4454cdbcab449c6d93f41087f753b70bb4500d0a 100644
--- a/components/translate/core/browser/translate_script.h
+++ b/components/translate/core/browser/translate_script.h
@@ -80,6 +80,10 @@ class TranslateScript {
// The JS injected in the page to do the translation.
std::string data_;
+ // The starting time of fetching the translate script.
+ // Number of milliseconds since the epoch.
+ double script_fetch_start_time_;
+
// Delay after which the translate script is fetched again from the translate
// server.
base::TimeDelta expiration_delay_;

Powered by Google App Engine
This is Rietveld 408576698