// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_SAVE_PASSWORD_PROGRESS_LOGGER_H_ #define COMPONENTS_AUTOFILL_CORE_COMMON_SAVE_PASSWORD_PROGRESS_LOGGER_H_ #include <stddef.h> #include <string> #include "components/autofill/core/common/form_data.h" #include "url/gurl.h" namespace base { class Value; } namespace autofill { // When logging decisions made by password management code about whether to // offer user-entered credentials for saving or not, do use this class. It // offers a suite of convenience methods to format and scrub logs. The methods // have built-in privacy protections (never include a password, scrub URLs), so // that the result is appropriate for display on the internals page. // // To use this class, the method SendLog needs to be overriden to send the logs // for display as appropriate. class SavePasswordProgressLogger { … }; } // namespace autofill #endif // COMPONENTS_AUTOFILL_CORE_COMMON_SAVE_PASSWORD_PROGRESS_LOGGER_H_