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

Unified Diff: chrome/browser/chromeos/input_method/input_method_delegate.h

Issue 11558017: Decouple input_method from BrowserThread (and content/). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build failure. Created 8 years 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
Index: chrome/browser/chromeos/input_method/input_method_delegate.h
diff --git a/chrome/browser/chromeos/input_method/input_method_delegate.h b/chrome/browser/chromeos/input_method/input_method_delegate.h
index ed0717313ea5407eeae75648a57534c51d65734d..174fb6392a516448b6d250aff0c2c49a163c69c5 100644
--- a/chrome/browser/chromeos/input_method/input_method_delegate.h
+++ b/chrome/browser/chromeos/input_method/input_method_delegate.h
@@ -8,6 +8,11 @@
#include <string>
#include "base/basictypes.h"
+#include "base/memory/ref_counted.h"
+
+namespace base {
+class SequencedTaskRunner;
+} // namespace base
namespace chromeos {
namespace input_method {
@@ -23,6 +28,14 @@ class InputMethodDelegate {
virtual std::string GetHardwareKeyboardLayout() const = 0;
// Retrieves the currently active UI locale.
virtual std::string GetActiveLocale() const = 0;
+ // Retrieves the default task runner. The public input_method API should only
+ // be accessed in the context of this task runner.
+ virtual scoped_refptr<base::SequencedTaskRunner>
+ GetDefaultTaskRunner() const = 0;
+ // Retrieves a task runner that may be used for possibly blocking tasks such
+ // as file IO.
+ virtual scoped_refptr<base::SequencedTaskRunner>
+ GetWorkerTaskRunner() const = 0;
private:
DISALLOW_COPY_AND_ASSIGN(InputMethodDelegate);

Powered by Google App Engine
This is Rietveld 408576698