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

Side by Side Diff: chrome/browser/spellchecker/feedback.h

Issue 120983002: Update some uses of UTF conversions in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // An object to store user feedback to spellcheck suggestions from spelling 5 // An object to store user feedback to spellcheck suggestions from spelling
6 // service. 6 // service.
7 // 7 //
8 // Stores feedback for the spelling service in |Misspelling| objects. Each 8 // Stores feedback for the spelling service in |Misspelling| objects. Each
9 // |Misspelling| object is identified by a |hash| and corresponds to a document 9 // |Misspelling| object is identified by a |hash| and corresponds to a document
10 // marker with the same |hash| identifier in the renderer. 10 // marker with the same |hash| identifier in the renderer.
11 11
12 #ifndef CHROME_BROWSER_SPELLCHECKER_FEEDBACK_H_ 12 #ifndef CHROME_BROWSER_SPELLCHECKER_FEEDBACK_H_
13 #define CHROME_BROWSER_SPELLCHECKER_FEEDBACK_H_ 13 #define CHROME_BROWSER_SPELLCHECKER_FEEDBACK_H_
14 14
15 #include <map> 15 #include <map>
16 #include <set> 16 #include <set>
17 #include <vector> 17 #include <vector>
18 18
19 #include "chrome/browser/spellchecker/misspelling.h" 19 #include "chrome/browser/spellchecker/misspelling.h"
20 20
21 namespace spellcheck { 21 namespace spellcheck {
22 22
23 // Stores user feedback to spellcheck suggestions. Sample usage: 23 // Stores user feedback to spellcheck suggestions. Sample usage:
24 // Feedback feedback; 24 // Feedback feedback;
25 // feedback.AddMisspelling(renderer_process_id, Misspelling( 25 // feedback.AddMisspelling(renderer_process_id, Misspelling(
26 // ASCIIToUTF16("Helllo world"), 0, 6, std::vector<base::string16>(), 26 // base::ASCIIToUTF16("Helllo world"), 0, 6,
27 // GenerateRandomHash())); 27 // std::vector<base::string16>(), GenerateRandomHash()));
28 // feedback.FinalizeRemovedMisspellings(renderer_process_id, 28 // feedback.FinalizeRemovedMisspellings(renderer_process_id,
29 // std::vector<uint32>()); 29 // std::vector<uint32>());
30 // ProcessFeedback(feedback.GetMisspellingsInRenderer(renderer_process_id)); 30 // ProcessFeedback(feedback.GetMisspellingsInRenderer(renderer_process_id));
31 // feedback.EraseFinalizedMisspellings(renderer_process_id); 31 // feedback.EraseFinalizedMisspellings(renderer_process_id);
32 class Feedback { 32 class Feedback {
33 public: 33 public:
34 Feedback(); 34 Feedback();
35 ~Feedback(); 35 ~Feedback();
36 36
37 // Returns the misspelling identified by |hash|. Returns NULL if there's no 37 // Returns the misspelling identified by |hash|. Returns NULL if there's no
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // A map of misspelled text to hashes that identify misspellings. 104 // A map of misspelled text to hashes that identify misspellings.
105 TextHashesMap text_; 105 TextHashesMap text_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(Feedback); 107 DISALLOW_COPY_AND_ASSIGN(Feedback);
108 }; 108 };
109 109
110 } // namespace spellcheck 110 } // namespace spellcheck
111 111
112 #endif // CHROME_BROWSER_SPELLCHECKER_FEEDBACK_H_ 112 #endif // CHROME_BROWSER_SPELLCHECKER_FEEDBACK_H_
OLDNEW
« no previous file with comments | « chrome/browser/speech/tts_win.cc ('k') | chrome/browser/spellchecker/feedback_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698