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

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

Issue 16667019: Rename base/hash_tables to base/containers/hash_tables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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_SPELLCHECKER_SPELLCHECK_HOST_METRICS_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_METRICS_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_METRICS_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_METRICS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/hash_tables.h" 11 #include "base/containers/hash_tables.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "base/timer.h" 13 #include "base/timer.h"
14 14
15 // A helper object for recording spell-check related histograms. 15 // A helper object for recording spell-check related histograms.
16 // This class encapsulates histogram names and metrics API. 16 // This class encapsulates histogram names and metrics API.
17 // This also carries a set of counters for collecting histograms 17 // This also carries a set of counters for collecting histograms
18 // and a timer for making a periodical summary. 18 // and a timer for making a periodical summary.
19 // 19 //
20 // We expect a user of SpellCheckHost class to instantiate this object, 20 // We expect a user of SpellCheckHost class to instantiate this object,
21 // and pass the metrics object to SpellCheckHost's factory method. 21 // and pass the metrics object to SpellCheckHost's factory method.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 int last_unique_word_count_; 85 int last_unique_word_count_;
86 86
87 // Time when first spellcheck happened. 87 // Time when first spellcheck happened.
88 base::TimeTicks start_time_; 88 base::TimeTicks start_time_;
89 // Set of checked words in the hashed form. 89 // Set of checked words in the hashed form.
90 base::hash_set<std::string> checked_word_hashes_; 90 base::hash_set<std::string> checked_word_hashes_;
91 base::RepeatingTimer<SpellCheckHostMetrics> recording_timer_; 91 base::RepeatingTimer<SpellCheckHostMetrics> recording_timer_;
92 }; 92 };
93 93
94 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_METRICS_H_ 94 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_METRICS_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_store.h ('k') | chrome/browser/sync/glue/bookmark_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698