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

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: (Rebasing) 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
« no previous file with comments | « chrome/common/language_detection_details.cc ('k') | chrome/renderer/translate/translate_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 94439e0f7ffe605bfe84eff1f95fb5e378630f89..179d83b46ad386d923b98eab23fd1301aebdbe1d 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"
@@ -239,6 +240,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.
@@ -443,8 +453,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 needs translation */)
+ LanguageDetectionDetails /* details about lang detection */,
+ bool /* whether the page needs translation */)
IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
WebKit::WebCache::UsageStats /* stats */)
« no previous file with comments | « chrome/common/language_detection_details.cc ('k') | chrome/renderer/translate/translate_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698