1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_UI_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_UI_H_
8 #include "base/basictypes.h"
10 namespace password_manager {
14 // The current state of the password manager's UI.
16 // The password manager has nothing to do with the current site.
19 // A password has been typed in and submitted successfully. Now we need to
20 // display an Omnibox icon, and pop up a bubble asking the user whether
21 // they'd like to save the password.
22 PENDING_PASSWORD_AND_BUBBLE_STATE,
24 // A password is pending, but we don't need to pop up a bubble.
25 PENDING_PASSWORD_STATE,
27 // A password has been autofilled, or has just been saved. The icon needs
28 // to be visible, in the management state.
31 // The user has blacklisted the site rendered in the current WebContents.
32 // The icon needs to be visible, in the blacklisted state.
36 // Returns true if |state| represents a pending password.
37 bool IsPendingState(State state);
41 } // namespace password_manager
43 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_COMMON_PASSWORD_MANAGER_UI_H_