Index: chrome/browser/ui/views/passwords/credentials_item_view.h |
diff --git a/chrome/browser/ui/views/passwords/credentials_item_view.h b/chrome/browser/ui/views/passwords/credentials_item_view.h |
index 4ff70a1135ee3a734f143de657e1b9977fe04bc9..8a136d9ba034c675caf79095130785d19b8608c0 100644 |
--- a/chrome/browser/ui/views/passwords/credentials_item_view.h |
+++ b/chrome/browser/ui/views/passwords/credentials_item_view.h |
@@ -6,9 +6,18 @@ |
#define CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_ITEM_VIEW_H_ |
#include "base/macros.h" |
+#include "base/memory/weak_ptr.h" |
#include "components/autofill/core/common/password_form.h" |
#include "ui/views/controls/button/label_button.h" |
+namespace gfx { |
+class Image; |
+} |
+ |
+namespace net { |
+class URLRequestContextGetter; |
+} |
+ |
namespace views { |
class ImageView; |
class Label; |
@@ -19,23 +28,30 @@ class Label; |
class CredentialsItemView : public views::LabelButton { |
public: |
CredentialsItemView(views::ButtonListener* button_listener, |
- const autofill::PasswordForm& form); |
+ const autofill::PasswordForm& form, |
+ net::URLRequestContextGetter* request_context); |
~CredentialsItemView() override; |
const autofill::PasswordForm& form() const { return form_; } |
private: |
+ class AvatarFetcher; |
+ |
// views::LabelButton: |
gfx::Size GetPreferredSize() const override; |
int GetHeightForWidth(int w) const override; |
void Layout() override; |
+ void UpdateAvatar(const gfx::Image& image); |
+ |
autofill::PasswordForm form_; |
views::ImageView* image_view_; |
views::Label* full_name_label_; |
views::Label* username_label_; |
+ base::WeakPtrFactory<CredentialsItemView> weak_ptr_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(CredentialsItemView); |
}; |