Index: chrome/browser/chromeos/input_method/input_method_switch_recorder.h |
diff --git a/chrome/browser/chromeos/input_method/input_method_switch_recorder.h b/chrome/browser/chromeos/input_method/input_method_switch_recorder.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e53a2886a9d014fdb3fecd96d5eccdd166d5022e |
--- /dev/null |
+++ b/chrome/browser/chromeos/input_method/input_method_switch_recorder.h |
@@ -0,0 +1,25 @@ |
+// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_SWITCH_RECORDER_H_ |
+#define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_SWITCH_RECORDER_H_ |
+ |
+namespace chromeos { |
+namespace input_method { |
+ |
+// A class for recording UMA logs for IME switches. |
+class InputMethodSwitchRecorder { |
+ public: |
+ InputMethodSwitchRecorder(); |
+ ~InputMethodSwitchRecorder(); |
+ |
+ static InputMethodSwitchRecorder* Get(); |
+ void RecordSwitch(bool by_tray_menu); |
+}; |
+ |
+} // namespace input_method |
+} // namespace chromeos |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_SWITCH_RECORDER_H_ |
+ |