summaryrefslogtreecommitdiffstats
path: root/chrome/common/spellcheck_messages.h
diff options
context:
space:
mode:
authorrouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-24 06:44:19 +0000
committerrouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-24 06:44:19 +0000
commita8e55b1e8c3faef8b9cdd17d444f837773cb8b1c (patch)
tree458ab1bd5e1d564c3e36b4c73a84856d8ebf81e3 /chrome/common/spellcheck_messages.h
parent4d4d6e1407d02a2b32f0bf5dc10d888715e32e18 (diff)
downloadchromium_src-a8e55b1e8c3faef8b9cdd17d444f837773cb8b1c.zip
chromium_src-a8e55b1e8c3faef8b9cdd17d444f837773cb8b1c.tar.gz
chromium_src-a8e55b1e8c3faef8b9cdd17d444f837773cb8b1c.tar.bz2
Store feedback for spellcheck results from spelling service
This CL begins to collect spellcheck feedback, but the only feedback actions are PENDING and NO_ACTION. Feedback sender uploads these actions every 30 minutes. The feedback is cleared from memory when user removes misspellings from text or every 6 hours. Follow up CLs will add the rest of the actions. BUG=170514 Review URL: https://chromiumcodereview.appspot.com/15318004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/spellcheck_messages.h')
-rw-r--r--chrome/common/spellcheck_messages.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/chrome/common/spellcheck_messages.h b/chrome/common/spellcheck_messages.h
index b001559..d808b80 100644
--- a/chrome/common/spellcheck_messages.h
+++ b/chrome/common/spellcheck_messages.h
@@ -5,6 +5,7 @@
// IPC messages for spellcheck.
// Multiply-included message file, hence no include guard.
+#include "chrome/common/spellcheck_marker.h"
#include "chrome/common/spellcheck_result.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_platform_file.h"
@@ -19,6 +20,12 @@ IPC_STRUCT_TRAITS_BEGIN(SpellCheckResult)
IPC_STRUCT_TRAITS_MEMBER(location)
IPC_STRUCT_TRAITS_MEMBER(length)
IPC_STRUCT_TRAITS_MEMBER(replacement)
+ IPC_STRUCT_TRAITS_MEMBER(hash)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(SpellCheckMarker)
+ IPC_STRUCT_TRAITS_MEMBER(hash)
+ IPC_STRUCT_TRAITS_MEMBER(offset)
IPC_STRUCT_TRAITS_END()
// Messages sent from the browser to the renderer.
@@ -97,10 +104,11 @@ IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_NotifyChecked,
// Asks the Spelling service to check text. When the service finishes checking
// the input text, it sends a SpellingCheckMsg_RespondSpellingService with
// text-check results.
-IPC_MESSAGE_CONTROL3(SpellCheckHostMsg_CallSpellingService,
+IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_CallSpellingService,
int /* route_id for response */,
int /* request identifier given by WebKit */,
- string16 /* sentence */)
+ string16 /* sentence */,
+ std::vector<SpellCheckMarker> /* markers */)
#endif
#if defined(OS_MACOSX)