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

Unified Diff: components/password_manager/core/browser/browser_save_password_progress_logger.h

Issue 216183008: Password manager internals page: Introduce logger in browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final comments addressed Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/password_manager/core/browser/browser_save_password_progress_logger.h
diff --git a/components/password_manager/core/browser/browser_save_password_progress_logger.h b/components/password_manager/core/browser/browser_save_password_progress_logger.h
new file mode 100644
index 0000000000000000000000000000000000000000..874063547cf3c9e575ec0761a5235a681344872e
--- /dev/null
+++ b/components/password_manager/core/browser/browser_save_password_progress_logger.h
@@ -0,0 +1,38 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PASSWORD_PROGRESS_LOGGER_H_
+#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PASSWORD_PROGRESS_LOGGER_H_
+
+#include <string>
+
+#include "components/autofill/core/common/save_password_progress_logger.h"
+
+class PasswordManagerClient;
+
+namespace password_manager {
+
+// This is the SavePasswordProgressLogger specialization for the browser code,
+// where the PasswordManagerClient can be directly called.
+class BrowserSavePasswordProgressLogger
+ : public autofill::SavePasswordProgressLogger {
+ public:
+ explicit BrowserSavePasswordProgressLogger(PasswordManagerClient* client);
+ virtual ~BrowserSavePasswordProgressLogger();
+
+ protected:
+ // autofill::SavePasswordProgressLogger:
+ virtual void SendLog(const std::string& log) OVERRIDE;
+
+ private:
+ // The PasswordManagerClient to which logs can be sent for display. The client
+ // must outlive this logger.
+ PasswordManagerClient* const client_;
+
+ DISALLOW_COPY_AND_ASSIGN(BrowserSavePasswordProgressLogger);
+};
+
+} // namespace password_manager
+
+#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PASSWORD_PROGRESS_LOGGER_H_
« no previous file with comments | « components/password_manager.gypi ('k') | components/password_manager/core/browser/browser_save_password_progress_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698