Chromium Code Reviews| Index: ui/base/ime/input_method_log_collector.h |
| diff --git a/ui/base/ime/input_method_log_collector.h b/ui/base/ime/input_method_log_collector.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a75b9ccb6cd9a43d774d1399a7316cdb6157fe48 |
| --- /dev/null |
| +++ b/ui/base/ime/input_method_log_collector.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
|
sky
2016/01/08 16:51:57
don't use (c) anymore.
Shu Chen
2016/01/09 01:46:02
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_BASE_IME_INPUT_METHOD_LOG_COLLECTOR_H_ |
| +#define UI_BASE_IME_INPUT_METHOD_LOG_COLLECTOR_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "ui/base/ime/ui_base_ime_export.h" |
| + |
| +namespace ui { |
| + |
| +class UI_BASE_IME_EXPORT InputMethodLogCollector { |
| + public: |
| + InputMethodLogCollector(); |
| + virtual ~InputMethodLogCollector(); |
| + void AddLog(const std::string& log_string); |
| + void OutputLogs(); |
| + void ClearLogs(); |
| + |
| + private: |
| + std::vector<std::string> logs_; |
| +}; |
| + |
| +} // namespace ui |
| + |
| +#endif // UI_BASE_IME_INPUT_METHOD_LOG_COLLECTOR_H_ |