Chromium Code Reviews| Index: components/password_manager/core/browser/password_reuse_detection_manager.h |
| diff --git a/components/password_manager/core/browser/password_reuse_detection_manager.h b/components/password_manager/core/browser/password_reuse_detection_manager.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2a713ae602603cacb236df66b04b55f7a037d210 |
| --- /dev/null |
| +++ b/components/password_manager/core/browser/password_reuse_detection_manager.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
|
vabr (Chromium)
2016/12/23 17:14:11
nit: No (c).
Also in the other new files.
dvadym
2016/12/23 17:45:20
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_REUSE_DETECTION_MANAGER_H_ |
| +#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_REUSE_DETECTION_MANAGER_H_ |
| + |
| +#include "base/macros.h" |
| +#include "base/strings/string16.h" |
| + |
| +namespace password_manager { |
| + |
| +class PasswordManagerClient; |
| + |
| +// Class for managing password reuse detection. Now it receives keystrokes and |
| +// saves typed string. TODO(dvadym): write other features of this class when |
|
vabr (Chromium)
2016/12/23 17:14:11
nit: Please use TODO(crbug.com/657041) instead of
dvadym
2016/12/23 17:45:20
Done.
|
| +// they are implemented. This class is one per-tab. |
| +class PasswordReuseDetectionManager { |
| + public: |
| + explicit PasswordReuseDetectionManager(PasswordManagerClient* client); |
| + ~PasswordReuseDetectionManager(); |
| + |
| + void DidNavigateMainFrame(); |
| + void OnKeyPressed(const base::string16& text); |
| + |
| + private: |
| + PasswordManagerClient* client_; |
| + base::string16 input_characters_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(PasswordReuseDetectionManager); |
| +}; |
| + |
| +} // namespace password_manager |
| + |
| +#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_REUSE_DETECTION_MANAGER_H_ |