| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_VISIBLE_PASSWORD_OBSERVER_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_VISIBLE_PASSWORD_OBSERVER_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_VISIBLE_PASSWORD_OBSERVER_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_VISIBLE_PASSWORD_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 explicit VisiblePasswordObserver(content::WebContents* web_contents); | 59 explicit VisiblePasswordObserver(content::WebContents* web_contents); |
| 60 friend class content::WebContentsUserData<VisiblePasswordObserver>; | 60 friend class content::WebContentsUserData<VisiblePasswordObserver>; |
| 61 | 61 |
| 62 void MaybeNotifyPasswordInputShownOnHttp(); | 62 void MaybeNotifyPasswordInputShownOnHttp(); |
| 63 | 63 |
| 64 void MaybeNotifyAllFieldsInvisible(); | 64 void MaybeNotifyAllFieldsInvisible(); |
| 65 | 65 |
| 66 content::WebContents* web_contents_; | 66 content::WebContents* web_contents_; |
| 67 std::set<int> frame_tree_nodes_with_visible_password_fields_; | 67 std::set<content::RenderFrameHost*> frames_with_visible_password_fields_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(VisiblePasswordObserver); | 69 DISALLOW_COPY_AND_ASSIGN(VisiblePasswordObserver); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace password_manager | 72 } // namespace password_manager |
| 73 | 73 |
| 74 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_VISIBLE_PASSWORD_OBSERVER
_H_ | 74 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_VISIBLE_PASSWORD_OBSERVER
_H_ |
| OLD | NEW |