content_record_password_state.h 933 B

123456789101112131415161718192021222324252627
  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
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_SESSIONS_CONTENT_CONTENT_RECORD_PASSWORD_STATE_H_
  5. #define COMPONENTS_SESSIONS_CONTENT_CONTENT_RECORD_PASSWORD_STATE_H_
  6. #include "components/sessions/core/serialized_navigation_entry.h"
  7. #include "components/sessions/core/sessions_export.h"
  8. namespace content {
  9. class NavigationEntry;
  10. }
  11. namespace sessions {
  12. // Helper functions for storing/getting PasswordState in a NavigationEntry.
  13. SESSIONS_EXPORT SerializedNavigationEntry::PasswordState
  14. GetPasswordStateFromNavigation(content::NavigationEntry* entry);
  15. SESSIONS_EXPORT void SetPasswordStateInNavigation(
  16. SerializedNavigationEntry::PasswordState state,
  17. content::NavigationEntry* entry);
  18. } // namespace sessions
  19. #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_RECORD_PASSWORD_STATE_H_