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

Unified Diff: chrome/browser/spellchecker/feedback.h

Issue 15318004: Store feedback for spellcheck results from spelling service (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments 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 | « no previous file | chrome/browser/spellchecker/feedback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellchecker/feedback.h
diff --git a/chrome/browser/spellchecker/feedback.h b/chrome/browser/spellchecker/feedback.h
index 0949002dc87603a377ed82dba2a7000d06d6a1c8..243a8076c9de521edb04b115c21ea5aee940c0d3 100644
--- a/chrome/browser/spellchecker/feedback.h
+++ b/chrome/browser/spellchecker/feedback.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_SPELLCHECKER_FEEDBACK_H_
#include <map>
+#include <set>
#include <vector>
#include "chrome/browser/spellchecker/misspelling.h"
@@ -69,10 +70,13 @@ class Feedback {
private:
// A map of hashes that identify document markers to feedback data to be sent
// to spelling service.
- std::map<uint32, Misspelling> misspellings_;
+ typedef std::map<uint32, Misspelling> HashMisspellingMap;
+ HashMisspellingMap misspellings_;
// A map of renderer process ID to hashes that identify misspellings.
- std::map<int, std::vector<uint32> > hashes_;
+ typedef std::set<uint32> HashCollection;
+ typedef std::map<int, HashCollection> RendererHashesMap;
+ RendererHashesMap hashes_;
DISALLOW_COPY_AND_ASSIGN(Feedback);
};
« no previous file with comments | « no previous file | chrome/browser/spellchecker/feedback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698