summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellcheck_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/spellcheck_host.h')
-rw-r--r--chrome/browser/spellcheck_host.h29
1 files changed, 5 insertions, 24 deletions
diff --git a/chrome/browser/spellcheck_host.h b/chrome/browser/spellcheck_host.h
index a174358..1d00e063 100644
--- a/chrome/browser/spellcheck_host.h
+++ b/chrome/browser/spellcheck_host.h
@@ -15,6 +15,7 @@
class Profile;
class RenderProcessHost;
+class SpellCheckHostMetrics;
class SpellCheckHostObserver;
namespace net {
@@ -53,15 +54,7 @@ class SpellCheckHost
SpellCheckHostObserver* observer,
const std::string& language,
net::URLRequestContextGetter* request_context_getter,
- bool metrics_enabled);
-
- // Collects the number of words in the custom dictionary, which is
- // to be uploaded via UMA
- static void RecordCustomWordCountStats(size_t count);
-
- // Collects status of spellchecking enabling state, which is
- // to be uploaded via UMA
- static void RecordEnabledStats(bool enabled);
+ SpellCheckHostMetrics* metrics);
// Clears an observer which is set on creation.
// Used to prevent calling back to a deleted object.
@@ -85,21 +78,9 @@ class SpellCheckHost
virtual bool IsUsingPlatformChecker() const = 0;
- // Collects status of spellchecking enabling state, which is
- // to be uploaded via UMA
- virtual void RecordCheckedWordStats(const string16& word, bool misspell) = 0;
-
- // Collects a histogram for context menu showing as a spell correction
- // attempt to be uploaded via UMA.
- // The value of |delta| is accumulated to the total count, and only
- // update tracked ratio if |delta| is zero.
- virtual void RecordSuggestionStats(int delta) = 0;
-
- // Collects a histogram for misspelled word replacement
- // to be uploaded via UMA.
- // The value of |delta| is accumulated to the total count, and only
- // update tracked ratio if |delta| is zero.
- virtual void RecordReplacedWordStats(int delta) = 0;
+ // Returns a metrics counter associated with this object,
+ // or null when metrics recording is disabled.
+ virtual SpellCheckHostMetrics* GetMetrics() const = 0;
// This function computes a vector of strings which are to be displayed in
// the context menu over a text area for changing spell check languages. It