summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 00:44:31 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 00:44:31 +0000
commit93b9d6948d212b630a115dc4b77bbe6bf2b3b671 (patch)
tree92e02d514f2b44cdd2b7f82063ed3e91af3773bf /chrome/common
parent71504b42e176b37b9324897a53908df5ba6c723e (diff)
downloadchromium_src-93b9d6948d212b630a115dc4b77bbe6bf2b3b671.zip
chromium_src-93b9d6948d212b630a115dc4b77bbe6bf2b3b671.tar.gz
chromium_src-93b9d6948d212b630a115dc4b77bbe6bf2b3b671.tar.bz2
Move code that talks to spelling and translate out of content. I create ChromeRenderObserver, which is a RenderViewObserver for the Chrome layer. Also, I added a TranslateTabHelper to hold the per-tab language data and moved LanguageState back to chrome since it's not used by content.
Review URL: http://codereview.chromium.org/6824068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81341 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/render_messages.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index d417048..9301559 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -315,6 +315,17 @@ IPC_MESSAGE_CONTROL1(ViewMsg_SetIsIncognitoProcess,
// TabContents messages
// These are messages sent from the renderer to the browser process.
+// Provides the contents for the given page that was loaded recently.
+IPC_MESSAGE_ROUTED3(ViewHostMsg_PageContents,
+ GURL /* URL of the page */,
+ int32 /* page id */,
+ string16 /* page contents */)
+
+// Notification that the language for the tab has been determined.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_TranslateLanguageDetermined,
+ std::string /* page ISO639_1 language code */,
+ bool /* whether the page can be translated */)
+
IPC_MESSAGE_CONTROL1(ViewHostMsg_UpdatedCacheStats,
WebKit::WebCache::UsageStats /* stats */)