Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: chrome/browser/icon_manager.h

Issue 10958031: Move cancelable_request.cc/h to chrome/browser/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/top_sites_extension_api.h ('k') | chrome/browser/jumplist_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Class for finding and caching Windows explorer icons. The IconManager 5 // Class for finding and caching Windows explorer icons. The IconManager
6 // lives on the UI thread but performs icon extraction work on the file thread 6 // lives on the UI thread but performs icon extraction work on the file thread
7 // to avoid blocking the UI thread with potentially expensive COM and disk 7 // to avoid blocking the UI thread with potentially expensive COM and disk
8 // operations. 8 // operations.
9 // 9 //
10 // Terminology 10 // Terminology
(...skipping 30 matching lines...) Expand all
41 // 41 //
42 // Icon bitmaps returned should be treated as const since they may be referenced 42 // Icon bitmaps returned should be treated as const since they may be referenced
43 // by other clients. Make a copy of the icon if you need to modify it. 43 // by other clients. Make a copy of the icon if you need to modify it.
44 44
45 #ifndef CHROME_BROWSER_ICON_MANAGER_H_ 45 #ifndef CHROME_BROWSER_ICON_MANAGER_H_
46 #define CHROME_BROWSER_ICON_MANAGER_H_ 46 #define CHROME_BROWSER_ICON_MANAGER_H_
47 47
48 #include <map> 48 #include <map>
49 49
50 #include "base/hash_tables.h" 50 #include "base/hash_tables.h"
51 #include "chrome/browser/cancelable_request.h" 51 #include "chrome/browser/common/cancelable_request.h"
52 #include "chrome/browser/icon_loader.h" 52 #include "chrome/browser/icon_loader.h"
53 #include "ui/gfx/image/image.h" 53 #include "ui/gfx/image/image.h"
54 54
55 class FilePath; 55 class FilePath;
56 56
57 class IconManager : public IconLoader::Delegate, 57 class IconManager : public IconLoader::Delegate,
58 public CancelableRequestProvider { 58 public CancelableRequestProvider {
59 public: 59 public:
60 IconManager(); 60 IconManager();
61 virtual ~IconManager(); 61 virtual ~IconManager();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Asynchronous requests that have not yet been completed. 108 // Asynchronous requests that have not yet been completed.
109 struct ClientRequest; 109 struct ClientRequest;
110 typedef std::map<IconLoader*, ClientRequest> ClientRequests; 110 typedef std::map<IconLoader*, ClientRequest> ClientRequests;
111 ClientRequests requests_; 111 ClientRequests requests_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(IconManager); 113 DISALLOW_COPY_AND_ASSIGN(IconManager);
114 }; 114 };
115 115
116 #endif // CHROME_BROWSER_ICON_MANAGER_H_ 116 #endif // CHROME_BROWSER_ICON_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/top_sites_extension_api.h ('k') | chrome/browser/jumplist_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698