| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_ACCOUNT_AVATAR_FETCHER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_ACCOUNT_AVATAR_FETCHER_MANAGER_H_ |
| 7 |
| 8 #include <Cocoa/Cocoa.h> |
| 9 |
| 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_vector.h" |
| 12 #include "net/url_request/url_request_context_getter.h" |
| 13 |
| 14 class AccountAvatarFetcherBridge; |
| 15 @class CredentialItemView; |
| 16 class GURL; |
| 17 |
| 18 // Handles retrieving avatar images for credential items. |
| 19 @interface AccountAvatarFetcherManager : NSObject { |
| 20 ScopedVector<AccountAvatarFetcherBridge> bridges_; |
| 21 scoped_refptr<net::URLRequestContextGetter> requestContext_; |
| 22 } |
| 23 |
| 24 // Initializes a manager with the specified request context. |
| 25 - (id)initWithRequestContext: |
| 26 (scoped_refptr<net::URLRequestContextGetter>)requestContext; |
| 27 |
| 28 // Retrieves the image located at |avatarURL| and updates |view| if successful. |
| 29 - (void)fetchAvatar:(const GURL&)avatarURL forView:(CredentialItemView*)view; |
| 30 |
| 31 @end |
| 32 |
| 33 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_ACCOUNT_AVATAR_FETCHER_MANAGER_H_ |
| OLD | NEW |