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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_manager_impl.h

Issue 1237493003: Uses Hash values for sparse histograms for InputMethod.ID statistics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit. Created 5 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_manager_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 251
252 252
253 // Whether load IME extensions. 253 // Whether load IME extensions.
254 bool enable_extension_loading_; 254 bool enable_extension_loading_;
255 255
256 // The engine map from extension_id to an engine. 256 // The engine map from extension_id to an engine.
257 typedef std::map<std::string, InputMethodEngineInterface*> EngineMap; 257 typedef std::map<std::string, InputMethodEngineInterface*> EngineMap;
258 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; 258 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap;
259 ProfileEngineMap engine_map_; 259 ProfileEngineMap engine_map_;
260 260
261 // The map from input method id to the input method stat id.
262 // The stat id has the format: <category#><first char after prefix><index>
263 // For example, Chinese Simplified Pinyin IME has the stat id:
264 // 2,'p',1 -> 211201
265 // 2 means it in INPUT_METHOD_CATEGORY_ZH;
266 // 112 means the first char after prefix is 'p' of 'pinyin';
267 // 01 means it's the second pinyin as the first pinyin is for Traditional
268 // Chinese Pinyin IME. Note "zh-hant-t-i0-pinyin" < "zh-t-i0-pinyin".
269 std::map<std::string, int> stat_id_map_;
270
271 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); 261 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl);
272 }; 262 };
273 263
274 } // namespace input_method 264 } // namespace input_method
275 } // namespace chromeos 265 } // namespace chromeos
276 266
277 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 267 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698