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

Unified Diff: chrome/browser/icon_loader.h

Issue 192883004: linux_aura: run IconLoader::ReadIcon on the UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/icon_loader.cc » ('j') | chrome/browser/icon_loader_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/icon_loader.h
diff --git a/chrome/browser/icon_loader.h b/chrome/browser/icon_loader.h
index ef602128276df9465020585112b8a6785a44703b..0e48a45fe33a3bf798aaeff14393ac01f0e81a4a 100644
--- a/chrome/browser/icon_loader.h
+++ b/chrome/browser/icon_loader.h
@@ -14,6 +14,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop_proxy.h"
+#include "content/public/browser/browser_thread.h"
#include "ui/gfx/image/image.h"
#if defined(OS_WIN)
@@ -77,6 +78,9 @@ class IconLoader : public base::RefCountedThreadSafe<IconLoader> {
// Some icons (exe's on windows) can change as they're loaded.
static bool IsIconMutableFromFilepath(const base::FilePath& path);
+ // The thread ReadIcon() should be called on.
+ static content::BrowserThread::ID ReadIconThreadID();
+
void ReadGroup();
void OnReadGroup();
void ReadIcon();
« no previous file with comments | « no previous file | chrome/browser/icon_loader.cc » ('j') | chrome/browser/icon_loader_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698