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

Unified Diff: chrome/browser/translate/translate_service.h

Issue 145023015: Introduce TranslateService and TranslateDownloadManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittest Created 6 years, 11 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: chrome/browser/translate/translate_service.h
diff --git a/chrome/browser/translate/translate_service.h b/chrome/browser/translate/translate_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..f98989672cba78f6933a49346cdae98aadfef358
--- /dev/null
+++ b/chrome/browser/translate/translate_service.h
@@ -0,0 +1,19 @@
+// Copyright 2014 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.
+
+#ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_SERVICE_H_
+#define CHROME_BROWSER_TRANSLATE_TRANSLATE_SERVICE_H_
+
+// Singleton managing the resources required for Translate.
+class TranslateService {
+ public:
+
+ // Must be called before the Translate feature can be used.
+ static void Initialize();
+
+ // Must be called to shut down the Translate feature.
+ static void Shutdown(bool cleanup_pending_fetcher);
+};
+
+#endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_SERVICE_H_
« no previous file with comments | « chrome/browser/translate/translate_script_unittest.cc ('k') | chrome/browser/translate/translate_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698