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

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

Issue 187393005: Make it possible to read CLD data from a file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto the CLD2 deps roll change, update readme Created 6 years, 9 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_tab_helper.h
diff --git a/chrome/browser/translate/translate_tab_helper.h b/chrome/browser/translate/translate_tab_helper.h
index fb18ac1206dba116b0366e70180f98adcd1fe30d..c07186f28c97c21a416ea51856481022c1358229 100644
--- a/chrome/browser/translate/translate_tab_helper.h
+++ b/chrome/browser/translate/translate_tab_helper.h
@@ -92,6 +92,12 @@ class TranslateTabHelper
const std::string& translated_lang,
TranslateErrors::Type error_type);
+ // Called when we receive ChromeViewHostMsg_NeedCLDData from a renderer
+ // process; attempts to look up the CLD data file in local storage and,
+ // if found, to send a response with an IPC-safe file construct back to
+ // the renderer.
+ void OnCLDDataRequested();
+
// Shows the translate bubble.
void ShowBubble(TranslateStep step, TranslateErrors::Type error_type);

Powered by Google App Engine
This is Rietveld 408576698