| OLD | NEW |
| 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 CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "base/timer/elapsed_timer.h" | 9 #include "base/timer/elapsed_timer.h" |
| 10 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
| 11 #include "components/password_manager/core/browser/password_store.h" | 11 #include "components/password_manager/core/browser/password_store.h" |
| 12 #include "components/password_manager/core/common/password_manager_ui.h" | 12 #include "components/password_manager/core/common/password_manager_ui.h" |
| 13 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
| 14 #include "content/public/browser/web_contents_user_data.h" | 14 #include "content/public/browser/web_contents_user_data.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 class WebContents; | 17 class WebContents; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace password_manager { | 20 namespace password_manager { |
| 21 enum class CredentialType : unsigned int; | 21 enum class CredentialType; |
| 22 struct CredentialInfo; | 22 struct CredentialInfo; |
| 23 class PasswordFormManager; | 23 class PasswordFormManager; |
| 24 } | 24 } |
| 25 | 25 |
| 26 class ManagePasswordsIcon; | 26 class ManagePasswordsIcon; |
| 27 | 27 |
| 28 // Per-tab class to control the Omnibox password icon and bubble. | 28 // Per-tab class to control the Omnibox password icon and bubble. |
| 29 class ManagePasswordsUIController | 29 class ManagePasswordsUIController |
| 30 : public content::WebContentsObserver, | 30 : public content::WebContentsObserver, |
| 31 public content::WebContentsUserData<ManagePasswordsUIController>, | 31 public content::WebContentsUserData<ManagePasswordsUIController>, |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 207 |
| 208 // The origin of the form we're currently dealing with; we'll use this to | 208 // The origin of the form we're currently dealing with; we'll use this to |
| 209 // determine which PasswordStore changes we should care about when updating | 209 // determine which PasswordStore changes we should care about when updating |
| 210 // |password_form_map_|. | 210 // |password_form_map_|. |
| 211 GURL origin_; | 211 GURL origin_; |
| 212 | 212 |
| 213 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); | 213 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 216 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| OLD | NEW |