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

Side by Side Diff: chrome/browser/spellcheck_host_impl.h

Issue 6995099: Revert 88309 - Introduced additional spellcheck related histograms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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
« no previous file with comments | « chrome/browser/spellcheck_host.h ('k') | chrome/browser/spellcheck_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_SPELLCHECK_HOST_IMPL_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECK_HOST_IMPL_H_
6 #define CHROME_BROWSER_SPELLCHECK_HOST_IMPL_H_ 6 #define CHROME_BROWSER_SPELLCHECK_HOST_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // Inform |observer_| that initialization has finished. 81 // Inform |observer_| that initialization has finished.
82 void InformObserverOfInitialization(); 82 void InformObserverOfInitialization();
83 83
84 // If |dictionary_file_| is missing, we attempt to download it. 84 // If |dictionary_file_| is missing, we attempt to download it.
85 void DownloadDictionary(); 85 void DownloadDictionary();
86 86
87 // Write a custom dictionary addition to disk. 87 // Write a custom dictionary addition to disk.
88 void WriteWordToCustomDictionary(const std::string& word); 88 void WriteWordToCustomDictionary(const std::string& word);
89 89
90 // Collects a histogram for dictionary corruption rate
91 // to be uploaded via UMA
92 void RecordDictionaryCorruptionStats(bool corrupted);
93
94 // Collects status of spellchecking enabling state, which is 90 // Collects status of spellchecking enabling state, which is
95 // to be uploaded via UMA 91 // to be uploaded via UMA
96 virtual void RecordCheckedWordStats(bool misspell); 92 virtual void RecordCheckedWordStats(bool misspell);
97 93
98 // Collects a histogram for misspelled word replacement 94 // Collects a histogram for misspelled word replacement
99 // to be uploaded via UMA 95 // to be uploaded via UMA
100 virtual void RecordReplacedWordStats(int delta); 96 virtual void RecordReplacedWordStats(int delta);
101 97
102 // Collects a histogram for context menu showing as a spell correction
103 // attempt to be uploaded via UMA
104 virtual void RecordSuggestionStats(int delta);
105
106 // URLFetcher::Delegate implementation. Called when we finish downloading the 98 // URLFetcher::Delegate implementation. Called when we finish downloading the
107 // spellcheck dictionary; saves the dictionary to |data_|. 99 // spellcheck dictionary; saves the dictionary to |data_|.
108 virtual void OnURLFetchComplete(const URLFetcher* source, 100 virtual void OnURLFetchComplete(const URLFetcher* source,
109 const GURL& url, 101 const GURL& url,
110 const net::URLRequestStatus& status, 102 const net::URLRequestStatus& status,
111 int response_code, 103 int response_code,
112 const net::ResponseCookies& cookies, 104 const net::ResponseCookies& cookies,
113 const std::string& data); 105 const std::string& data);
114 106
115 // NotificationObserver implementation. 107 // NotificationObserver implementation.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 146
155 // Used for downloading the dictionary file. 147 // Used for downloading the dictionary file.
156 scoped_ptr<URLFetcher> fetcher_; 148 scoped_ptr<URLFetcher> fetcher_;
157 149
158 NotificationRegistrar registrar_; 150 NotificationRegistrar registrar_;
159 151
160 // Number of corrected words of checked words. 152 // Number of corrected words of checked words.
161 int misspelled_word_count_; 153 int misspelled_word_count_;
162 // Number of checked words. 154 // Number of checked words.
163 int spellchecked_word_count_; 155 int spellchecked_word_count_;
164 // Number of suggestion list showings.
165 int suggestion_count_;
166 // Number of misspelled words replaced by a user. 156 // Number of misspelled words replaced by a user.
167 int replaced_word_count_; 157 int replaced_word_count_;
168 }; 158 };
169 159
170 #endif // CHROME_BROWSER_SPELLCHECK_HOST_IMPL_H_ 160 #endif // CHROME_BROWSER_SPELLCHECK_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/spellcheck_host.h ('k') | chrome/browser/spellcheck_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698