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

Unified Diff: chrome/common/render_messages.h

Issue 14494004: Added the 'Translation Logs' tab to chrome://translate-internals/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: first commit Created 7 years, 7 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/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index a20743b3e25be1148eab40b53a9c2100666bd1f4..1719822cab514fc7d981c275db8410a94c47efeb 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -20,6 +20,7 @@
#include "chrome/common/content_settings.h"
#include "chrome/common/content_settings_pattern.h"
#include "chrome/common/instant_types.h"
+#include "chrome/common/language_detection_details.h"
#include "chrome/common/nacl_types.h"
#include "chrome/common/omnibox_focus_state.h"
#include "chrome/common/search_provider.h"
@@ -237,6 +238,15 @@ IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats)
IPC_STRUCT_TRAITS_MEMBER(deadSize)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(LanguageDetectionDetails)
+ IPC_STRUCT_TRAITS_MEMBER(time)
+ IPC_STRUCT_TRAITS_MEMBER(url)
+ IPC_STRUCT_TRAITS_MEMBER(content_language)
+ IPC_STRUCT_TRAITS_MEMBER(cld_language)
+ IPC_STRUCT_TRAITS_MEMBER(is_cld_reliable)
+ IPC_STRUCT_TRAITS_MEMBER(adopted_language)
+IPC_STRUCT_TRAITS_END()
+
//-----------------------------------------------------------------------------
// RenderView messages
// These are messages sent from the browser to the renderer process.
@@ -439,8 +449,8 @@ IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageContents,
// Notification that the language for the tab has been determined.
IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined,
- std::string /* page ISO639_1 language code */,
- bool /* whether the page can be translated */)
+ LanguageDetectionDetails /* details about lang detection */,
+ bool /* whether the page can be translated */)
IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
WebKit::WebCache::UsageStats /* stats */)

Powered by Google App Engine
This is Rietveld 408576698