OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_ACCOUNT_AVATAR_FETCHER_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_AVATAR_FETCHER_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_AVATAR_FETCHER_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_AVATAR_FETCHER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h" | 10 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h" |
(...skipping 21 matching lines...) Expand all Loading... | |
32 const base::WeakPtr<AccountAvatarFetcherDelegate>& delegate); | 32 const base::WeakPtr<AccountAvatarFetcherDelegate>& delegate); |
33 | 33 |
34 ~AccountAvatarFetcher() override; | 34 ~AccountAvatarFetcher() override; |
35 | 35 |
36 void Start(net::URLRequestContextGetter* request_context); | 36 void Start(net::URLRequestContextGetter* request_context); |
37 | 37 |
38 private: | 38 private: |
39 // chrome::BitmapFetcherDelegate: | 39 // chrome::BitmapFetcherDelegate: |
40 void OnFetchComplete(const GURL& url, const SkBitmap* bitmap) override; | 40 void OnFetchComplete(const GURL& url, const SkBitmap* bitmap) override; |
41 | 41 |
42 chrome::BitmapFetcher fetcher_; | 42 std::unique_ptr<chrome::BitmapFetcher> fetcher_; |
vasilii
2017/02/09 13:47:46
Fix the indent.
Ramin Halavati
2017/02/09 14:22:52
Done.
| |
43 base::WeakPtr<AccountAvatarFetcherDelegate> delegate_; | 43 base::WeakPtr<AccountAvatarFetcherDelegate> delegate_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(AccountAvatarFetcher); | 45 DISALLOW_COPY_AND_ASSIGN(AccountAvatarFetcher); |
46 }; | 46 }; |
47 | 47 |
48 #endif // CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_AVATAR_FETCHER_H_ | 48 #endif // CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_AVATAR_FETCHER_H_ |
OLD | NEW |