Index: chrome/browser/password_manager/password_manager_driver.h |
diff --git a/chrome/browser/password_manager/password_manager_driver.h b/chrome/browser/password_manager/password_manager_driver.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cbed2a217910ff977d69652936a76e3210c56d4e |
--- /dev/null |
+++ b/chrome/browser/password_manager/password_manager_driver.h |
@@ -0,0 +1,32 @@ |
+// 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 CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ |
+#define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ |
+ |
+namespace autofill { |
+struct PasswordFormFillData; |
+} // namespace autofill |
+ |
+// Interface that allows PasswordManager core code to interact with its driver |
+// (i.e., obtain information from it and give information to it). |
+class PasswordManagerDriver { |
+ public: |
+ PasswordManagerDriver() {} |
+ virtual ~PasswordManagerDriver() {} |
+ |
+ // Fills forms matching |form_data|. |
+ virtual void FillPasswordForm( |
+ const autofill::PasswordFormFillData& form_data) = 0; |
+ |
+ // Returns whether any SSL certificate errors were encountered as a result of |
+ // the last page load. |
+ virtual bool DidLastPageLoadEncounterSSLErrors() = 0; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(PasswordManagerDriver); |
+}; |
+ |
+ |
+#endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DRIVER_H_ |