OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CHROMEOS_LOGIN_USER_IMAGE_DOWNLOADER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_DOWNLOADER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_DOWNLOADER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_DOWNLOADER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/ref_counted.h" | |
13 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
14 #include "chrome/browser/chromeos/login/image_decoder.h" | 13 #include "chrome/browser/chromeos/login/image_decoder.h" |
15 #include "chrome/common/net/url_fetcher.h" | 14 #include "chrome/common/net/url_fetcher.h" |
16 | 15 |
17 class ListValue; | 16 class ListValue; |
18 | 17 |
19 namespace chromeos { | 18 namespace chromeos { |
20 | 19 |
21 // Gets user image URL from user's Google Profile, downloads the image, | 20 // Gets user image URL from user's Google Profile, downloads the image, |
22 // executes image decode and calls UserManager to store image in a file with | 21 // executes image decode and calls UserManager to store image in a file with |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Authentication token to use for image download. | 76 // Authentication token to use for image download. |
78 std::string auth_token_; | 77 std::string auth_token_; |
79 | 78 |
80 DISALLOW_COPY_AND_ASSIGN(UserImageDownloader); | 79 DISALLOW_COPY_AND_ASSIGN(UserImageDownloader); |
81 }; | 80 }; |
82 | 81 |
83 } // namespace chromeos | 82 } // namespace chromeos |
84 | 83 |
85 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_DOWNLOADER_H_ | 84 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_DOWNLOADER_H_ |
86 | 85 |
OLD | NEW |