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 #include "chrome/browser/chromeos/login/user_image_loader.h" | 5 #include "chrome/browser/chromeos/login/user_image_loader.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "chrome/browser/browser_thread.h" | 10 #include "chrome/browser/browser_thread.h" |
11 #include "gfx/codec/png_codec.h" | |
12 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
| 12 #include "ui/gfx/codec/png_codec.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 UserImageLoader::UserImageLoader(Delegate* delegate) | 16 UserImageLoader::UserImageLoader(Delegate* delegate) |
17 : target_message_loop_(NULL), | 17 : target_message_loop_(NULL), |
18 delegate_(delegate) { | 18 delegate_(delegate) { |
19 } | 19 } |
20 | 20 |
21 UserImageLoader::~UserImageLoader() { | 21 UserImageLoader::~UserImageLoader() { |
22 } | 22 } |
(...skipping 27 matching lines...) Expand all Loading... |
50 image)); | 50 image)); |
51 } | 51 } |
52 | 52 |
53 void UserImageLoader::NotifyDelegate(const std::string& username, | 53 void UserImageLoader::NotifyDelegate(const std::string& username, |
54 const SkBitmap& image) { | 54 const SkBitmap& image) { |
55 if (delegate_) | 55 if (delegate_) |
56 delegate_->OnImageLoaded(username, image); | 56 delegate_->OnImageLoaded(username, image); |
57 } | 57 } |
58 | 58 |
59 } // namespace chromeos | 59 } // namespace chromeos |
OLD | NEW |