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

Unified Diff: components/translate/core/browser/translate_ranker_model_loader.cc

Issue 2565873002: [translate] Add translate ranker model loader. (Closed)
Patch Set: Initial CL Created 4 years 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_ranker_model_loader.cc
diff --git a/components/translate/core/browser/translate_ranker_model_loader.cc b/components/translate/core/browser/translate_ranker_model_loader.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c95a62a6e60fb97ea7d057e80aba9f11a677fe86
--- /dev/null
+++ b/components/translate/core/browser/translate_ranker_model_loader.cc
@@ -0,0 +1,21 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/translate/core/browser/translate_ranker_model_loader.h"
+
+namespace translate {
+
+const int TranslateRankerModelTraits::kFetcherId = 2;
+const char TranslateRankerModelTraits::kWriteTimerHistogram[] =
+ "Translate.Ranker.Timer.WriteModel";
+const char TranslateRankerModelTraits::kReadTimerHistogram[] =
+ "Translate.Ranker.Timer.ReadModel";
+const char TranslateRankerModelTraits::kDownloadTimerHistogram[] =
+ "Translate.Ranker.Timer.DownloadModel";
+const char TranslateRankerModelTraits::kParsetimerHistogram[] =
+ "Translate.Ranker.Timer.ParseModel";
+const char TranslateRankerModelTraits::kModelStatusHistogram[] =
+ "Translate.Ranker.Model.Status";
+
+} // namespace translate

Powered by Google App Engine
This is Rietveld 408576698