OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/login/image_downloader.h" | 5 #include "chrome/browser/chromeos/login/image_downloader.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/common/url_fetcher.h" | 15 #include "content/public/common/url_fetcher.h" |
16 | 16 |
| 17 using content::BrowserThread; |
| 18 |
17 namespace chromeos { | 19 namespace chromeos { |
18 | 20 |
19 namespace { | 21 namespace { |
20 | 22 |
21 // Template for optional authorization header. | 23 // Template for optional authorization header. |
22 const char kAuthorizationHeader[] = "Authorization: GoogleLogin auth=%s"; | 24 const char kAuthorizationHeader[] = "Authorization: GoogleLogin auth=%s"; |
23 | 25 |
24 } // namespace | 26 } // namespace |
25 | 27 |
26 ImageDownloader::ImageDownloader(ImageDecoder::Delegate* delegate, | 28 ImageDownloader::ImageDownloader(ImageDecoder::Delegate* delegate, |
(...skipping 26 matching lines...) Expand all Loading... |
53 return; | 55 return; |
54 } | 56 } |
55 | 57 |
56 VLOG(1) << "Decoding the image..."; | 58 VLOG(1) << "Decoding the image..."; |
57 scoped_refptr<ImageDecoder> image_decoder = new ImageDecoder(delegate_, data); | 59 scoped_refptr<ImageDecoder> image_decoder = new ImageDecoder(delegate_, data); |
58 image_decoder->Start(); | 60 image_decoder->Start(); |
59 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 61 MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
60 } | 62 } |
61 | 63 |
62 } // namespace chromeos | 64 } // namespace chromeos |
OLD | NEW |