Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: components/autofill/core/common/save_password_progress_logger.h

Issue 604293002: Improve logging in password manager internals page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_AUTOFILL_CORE_COMMON_SAVE_PASSWORD_PROGRESS_LOGGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_SAVE_PASSWORD_PROGRESS_LOGGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_SAVE_PASSWORD_PROGRESS_LOGGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_SAVE_PASSWORD_PROGRESS_LOGGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 STRING_PROVISIONALLY_SAVED_FORM, 91 STRING_PROVISIONALLY_SAVED_FORM,
92 STRING_IGNORE_POSSIBLE_USERNAMES, 92 STRING_IGNORE_POSSIBLE_USERNAMES,
93 STRING_ON_PASSWORD_FORMS_RENDERED_METHOD, 93 STRING_ON_PASSWORD_FORMS_RENDERED_METHOD,
94 STRING_NO_PROVISIONAL_SAVE_MANAGER, 94 STRING_NO_PROVISIONAL_SAVE_MANAGER,
95 STRING_NUMBER_OF_VISIBLE_FORMS, 95 STRING_NUMBER_OF_VISIBLE_FORMS,
96 STRING_PASSWORD_FORM_REAPPEARED, 96 STRING_PASSWORD_FORM_REAPPEARED,
97 STRING_SAVING_DISABLED, 97 STRING_SAVING_DISABLED,
98 STRING_NO_MATCHING_FORM, 98 STRING_NO_MATCHING_FORM,
99 STRING_SSL_ERRORS_PRESENT, 99 STRING_SSL_ERRORS_PRESENT,
100 STRING_ONLY_VISIBLE, 100 STRING_ONLY_VISIBLE,
101 STRING_SHOW_PASSWORD_PROMPT,
101 STRING_INVALID, // Represents a string returned in a case of an error. 102 STRING_INVALID, // Represents a string returned in a case of an error.
102 STRING_MAX = STRING_INVALID 103 STRING_MAX = STRING_INVALID
103 }; 104 };
104 105
105 SavePasswordProgressLogger(); 106 SavePasswordProgressLogger();
106 virtual ~SavePasswordProgressLogger(); 107 virtual ~SavePasswordProgressLogger();
107 108
108 // Call these methods to log information. They sanitize the input and call 109 // Call these methods to log information. They sanitize the input and call
109 // SendLog to pass it for display. 110 // SendLog to pass it for display.
110 void LogPasswordForm(StringID label, const PasswordForm& form); 111 void LogPasswordForm(StringID label, const PasswordForm& form);
(...skipping 13 matching lines...) Expand all
124 private: 125 private:
125 // Converts |log| and its |label| to a string and calls SendLog on the result. 126 // Converts |log| and its |label| to a string and calls SendLog on the result.
126 void LogValue(StringID label, const base::Value& log); 127 void LogValue(StringID label, const base::Value& log);
127 128
128 DISALLOW_COPY_AND_ASSIGN(SavePasswordProgressLogger); 129 DISALLOW_COPY_AND_ASSIGN(SavePasswordProgressLogger);
129 }; 130 };
130 131
131 } // namespace autofill 132 } // namespace autofill
132 133
133 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_SAVE_PASSWORD_PROGRESS_LOGGER_H_ 134 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_SAVE_PASSWORD_PROGRESS_LOGGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698