diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-15 17:38:19 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-15 17:38:19 +0000 |
commit | cf3f387e6dd8072cb884964923e978bb198bca12 (patch) | |
tree | 358fbdcfc310baba78a7b87bfc48a4a402ae968e /chrome/common | |
parent | ae1b251286512eded9ff13561ea84a645878859b (diff) | |
download | chromium_src-cf3f387e6dd8072cb884964923e978bb198bca12.zip chromium_src-cf3f387e6dd8072cb884964923e978bb198bca12.tar.gz chromium_src-cf3f387e6dd8072cb884964923e978bb198bca12.tar.bz2 |
Revert 36362 - It breaks NACLTests and Chrome Frame Tests
3rd attempt at landing the language detection on page load.
A memory error has been fixed in the CLD library in the meantime.
This should hopefully fixes the crashers in the reliability tests.
Note that this version is actually simpler than the original review since the detection is now performed in the renderer. (So the CLD code runs sandboxed.)
Original review:
http://codereview.chromium.org/492024/show
BUG=30662
TEST=Run the unittests.
Review URL: http://codereview.chromium.org/518075
TBR=jcampan@chromium.org
Review URL: http://codereview.chromium.org/546062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36364 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/notification_type.h | 5 | ||||
-rw-r--r-- | chrome/common/render_messages_internal.h | 18 |
2 files changed, 11 insertions, 12 deletions
diff --git a/chrome/common/notification_type.h b/chrome/common/notification_type.h index d3f5640..d021059 100644 --- a/chrome/common/notification_type.h +++ b/chrome/common/notification_type.h @@ -223,9 +223,8 @@ class NotificationType { // is the InfoBubble. INFO_BUBBLE_CREATED, - // Sent when the language (English, French...) for a page has been detected. - // The details Details<std::string> contain the ISO 639-1 language code and - // the source is Source<RenderViewHost>. + // Sent after a call to RenderViewHost::DeterminePageLanguage. The details + // are Details<std::string> and the source is Source<RenderViewHost>. TAB_LANGUAGE_DETERMINED, // Sent after the renderer returns a snapshot of tab contents. diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index a45310d..2003c9d 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -255,6 +255,9 @@ IPC_BEGIN_MESSAGES(View) string16 /* search_text */, WebKit::WebFindOptions) + // Asks the renderer for the language of the current page. + IPC_MESSAGE_ROUTED0(ViewMsg_DeterminePageLanguage) + // Send from the renderer to the browser to return the script running result. IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteCodeFinished, int, /* request id */ @@ -1115,7 +1118,7 @@ IPC_BEGIN_MESSAGES(ViewHost) IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateSpellingPanelWithMisspelledWord, string16 /* the word to update the panel with */) - // Initiates a download based on user actions like 'ALT+click'. + // Initiate a download based on user actions like 'ALT+click'. IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl, GURL /* url */, GURL /* referrer */) @@ -1133,12 +1136,9 @@ IPC_BEGIN_MESSAGES(ViewHost) bool /* out - success */, std::wstring /* out - prompt field */) - // Provides the contents for the given page that was loaded recently. - IPC_MESSAGE_ROUTED4(ViewHostMsg_PageContents, - GURL /* URL of the page */, - int32 /* page id */, - std::wstring /* page contents */, - std::string /* page ISO639_1 language code */) + // Sets the contents for the given page (URL and page ID are the first two + // arguments) given the contents that is the 3rd. + IPC_MESSAGE_CONTROL3(ViewHostMsg_PageContents, GURL, int32, std::wstring) // Used to get the extension message bundle. IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetExtensionMessageBundle, @@ -1167,13 +1167,13 @@ IPC_BEGIN_MESSAGES(ViewHost) // user right clicked. IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, ContextMenuParams) - // Requests that the given URL be opened in the specified manner. + // Request that the given URL be opened in the specified manner. IPC_MESSAGE_ROUTED3(ViewHostMsg_OpenURL, GURL /* url */, GURL /* referrer */, WindowOpenDisposition /* disposition */) - // Notifies that the preferred size of the content changed. + // Notify that the preferred size of the content changed. IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, gfx::Size /* pref_size */) |