summaryrefslogtreecommitdiffstats
path: root/base/worker_pool_mac.h
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-26 19:58:13 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-26 19:58:13 +0000
commit49aeee5080135d65173fb06f117cbb19f87ae867 (patch)
tree13ea17786c1cd4c59c833906f3d26ef92a50b091 /base/worker_pool_mac.h
parent8dd8ea73b9fc2571777d841a85f0b27f82530455 (diff)
downloadchromium_src-49aeee5080135d65173fb06f117cbb19f87ae867.zip
chromium_src-49aeee5080135d65173fb06f117cbb19f87ae867.tar.gz
chromium_src-49aeee5080135d65173fb06f117cbb19f87ae867.tar.bz2
About box auto-update improvements.
The About box now knows how to check to see if updates have been installed in the background without anyone having to click the Update button in the box. The About box no longer gets stuck in the "installed" state. Even if an update has been installed, the About box will still check for new updates when reopened. BUG=13165, 20488 TEST=Play with the about box and auto-update a whole lot Review URL: http://codereview.chromium.org/338012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30078 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/worker_pool_mac.h')
-rw-r--r--base/worker_pool_mac.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/base/worker_pool_mac.h b/base/worker_pool_mac.h
new file mode 100644
index 0000000..7c67e45
--- /dev/null
+++ b/base/worker_pool_mac.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_WORKER_POOL_MAC_H_
+#define BASE_WORKER_POOL_MAC_H_
+
+#include "base/worker_pool.h"
+
+#import <Foundation/Foundation.h>
+
+// WorkerPoolObjC provides an Objective-C interface to the same WorkerPool
+// used by the rest of the application.
+@interface WorkerPoolObjC : NSObject
+
+// Returns the underlying NSOperationQueue back end that WorkerPool::PostTask
+// would post tasks to. This can be used to add NSOperation subclasses
+// directly to the same NSOperationQueue, by calling -[NSOperationQueue
+// addOperation:]. Most Objective-C code wishing to dispatch tasks to the
+// WorkerPool will find it handy to add an operation of type
+// NSInvocationOperation.
++ (NSOperationQueue*)sharedOperationQueue;
+
+@end // @interface WorkerPoolObjC
+
+#endif // BASE_WORKER_POOL_MAC_H_