diff options
Diffstat (limited to 'chrome/browser/spellchecker/feedback_sender.h')
| -rw-r--r-- | chrome/browser/spellchecker/feedback_sender.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/chrome/browser/spellchecker/feedback_sender.h b/chrome/browser/spellchecker/feedback_sender.h index ec97558..c98d5ba 100644 --- a/chrome/browser/spellchecker/feedback_sender.h +++ b/chrome/browser/spellchecker/feedback_sender.h @@ -5,17 +5,22 @@ // An object to record and send user feedback to spelling service. The spelling // service uses the feedback to improve its suggestions. // -// Assigns uint32 hash identifiers to spelling suggestions from spelling service -// and stores these suggestions. Records user's actions on these suggestions. -// Periodically sends batches of user feedback to the spelling service. +// Assigns uint32_t hash identifiers to spelling suggestions from spelling +// service and stores these suggestions. Records user's actions on these +// suggestions. Periodically sends batches of user feedback to the spelling +// service. #ifndef CHROME_BROWSER_SPELLCHECKER_FEEDBACK_SENDER_H_ #define CHROME_BROWSER_SPELLCHECKER_FEEDBACK_SENDER_H_ +#include <stddef.h> +#include <stdint.h> + #include <map> #include <set> #include <vector> +#include "base/macros.h" #include "base/memory/scoped_vector.h" #include "base/memory/weak_ptr.h" #include "base/timer/timer.h" @@ -61,24 +66,24 @@ class FeedbackSender : public base::SupportsWeakPtr<FeedbackSender>, // Records that user selected suggestion |suggestion_index| for the // misspelling identified by |hash|. - void SelectedSuggestion(uint32 hash, int suggestion_index); + void SelectedSuggestion(uint32_t hash, int suggestion_index); // Records that user added the misspelling identified by |hash| to the // dictionary. - void AddedToDictionary(uint32 hash); + void AddedToDictionary(uint32_t hash); // Records that user right-clicked on the misspelling identified by |hash|, // but did not select any suggestion. - void IgnoredSuggestions(uint32 hash); + void IgnoredSuggestions(uint32_t hash); // Records that user did not choose any suggestion but manually corrected the // misspelling identified by |hash| to string |correction|, which is not in // the list of suggestions. - void ManuallyCorrected(uint32 hash, const base::string16& correction); + void ManuallyCorrected(uint32_t hash, const base::string16& correction); // Records that user has the misspelling in the custom dictionary. The user // will never see the spellcheck suggestions for the misspelling. - void RecordInDictionary(uint32 hash); + void RecordInDictionary(uint32_t hash); // Receives document markers for renderer with process ID |render_process_id| // when the renderer responds to a RequestDocumentMarkers() call. Finalizes @@ -87,7 +92,7 @@ class FeedbackSender : public base::SupportsWeakPtr<FeedbackSender>, // service. If the current session has expired, then refreshes the session // start timestamp and sends out all of the feedback data. void OnReceiveDocumentMarkers(int renderer_process_id, - const std::vector<uint32>& markers); + const std::vector<uint32_t>& markers); // Generates feedback data based on spellcheck results. The new feedback data // is pending. Sets hash identifiers for |results|. Called when spelling |
