| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2009 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_ICON_LOADER_WIN_H_ | |
| 6 #define CHROME_BROWSER_ICON_LOADER_WIN_H_ | |
| 7 | |
| 8 #include "chrome/browser/icon_loader.h" | |
| 9 | |
| 10 class MessageLoop; | |
| 11 | |
| 12 class IconLoaderWin : public IconLoader { | |
| 13 public: | |
| 14 IconLoaderWin(const FilePath& path, IconSize size, Delegate* delegate); | |
| 15 | |
| 16 virtual ~IconLoaderWin(); | |
| 17 | |
| 18 // IconLoader implementation. | |
| 19 virtual void Start(); | |
| 20 | |
| 21 private: | |
| 22 void ReadIcon(); | |
| 23 | |
| 24 void NotifyDelegate(); | |
| 25 | |
| 26 // The message loop object of the thread in which we notify the delegate. | |
| 27 MessageLoop* target_message_loop_; | |
| 28 | |
| 29 FilePath path_; | |
| 30 | |
| 31 IconSize icon_size_; | |
| 32 | |
| 33 SkBitmap* bitmap_; | |
| 34 | |
| 35 Delegate* delegate_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(IconLoaderWin); | |
| 38 }; | |
| 39 | |
| 40 #endif // CHROME_BROWSER_ICON_LOADER_WIN_H_ | |
| OLD | NEW |