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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_bubble_model.h

Issue 872893004: Credential type enum from cpp to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@yolo_account_chooser_infobar
Patch Set: Created 5 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BUBBLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" 9 #include "chrome/browser/ui/passwords/manage_passwords_bubble.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_manager_metrics_util .h" 11 #include "components/password_manager/core/browser/password_manager_metrics_util .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 "ui/gfx/range/range.h" 14 #include "ui/gfx/range/range.h"
15 15
16 class ManagePasswordsIconController; 16 class ManagePasswordsIconController;
17 class ManagePasswordsUIController; 17 class ManagePasswordsUIController;
18 class Profile; 18 class Profile;
19 19
20 namespace content { 20 namespace content {
21 class WebContents; 21 class WebContents;
22 } 22 }
23 23
24 namespace password_manager { 24 namespace password_manager {
25 enum class CredentialType : unsigned int; 25 enum class CredentialType;
26 } 26 }
27 27
28 // This model provides data for the ManagePasswordsBubble and controls the 28 // This model provides data for the ManagePasswordsBubble and controls the
29 // password management actions. 29 // password management actions.
30 class ManagePasswordsBubbleModel : public content::WebContentsObserver { 30 class ManagePasswordsBubbleModel : public content::WebContentsObserver {
31 public: 31 public:
32 enum PasswordAction { REMOVE_PASSWORD, ADD_PASSWORD }; 32 enum PasswordAction { REMOVE_PASSWORD, ADD_PASSWORD };
33 33
34 // Creates a ManagePasswordsBubbleModel, which holds a raw pointer to the 34 // Creates a ManagePasswordsBubbleModel, which holds a raw pointer to the
35 // WebContents in which it lives. Defaults to a display disposition of 35 // WebContents in which it lives. Defaults to a display disposition of
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // If true upon destruction, the user has confirmed that she never wants to 154 // If true upon destruction, the user has confirmed that she never wants to
155 // save passwords for a particular site. 155 // save passwords for a particular site.
156 bool never_save_passwords_; 156 bool never_save_passwords_;
157 password_manager::metrics_util::UIDisplayDisposition display_disposition_; 157 password_manager::metrics_util::UIDisplayDisposition display_disposition_;
158 password_manager::metrics_util::UIDismissalReason dismissal_reason_; 158 password_manager::metrics_util::UIDismissalReason dismissal_reason_;
159 159
160 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); 160 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel);
161 }; 161 };
162 162
163 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ 163 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698