summaryrefslogtreecommitdiffstats
path: root/extensions/browser/api/extensions_api_client.h
diff options
context:
space:
mode:
authorrockot <rockot@chromium.org>2014-08-27 16:52:48 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-27 23:54:06 +0000
commit5ad6c89c9721d23519c062919d1d2c951aaea921 (patch)
treed777b54e32b8d2182997432c9134cac45f17eb8b /extensions/browser/api/extensions_api_client.h
parent57722ec5e7cc0020fe065e172c578190b520502d (diff)
downloadchromium_src-5ad6c89c9721d23519c062919d1d2c951aaea921.zip
chromium_src-5ad6c89c9721d23519c062919d1d2c951aaea921.tar.gz
chromium_src-5ad6c89c9721d23519c062919d1d2c951aaea921.tar.bz2
Fix HidService lifetime issues.
This reverts HidService to a singleton instance, adding two gross and presently hard-to-avoid properties: 1. Its instance getter takes a UI message loop proxy 2. Its lifetime is bound by the message loop of its origin thread The purpose of this is to preserve the necessary threading discipline required by both the chrome.hid API implementation and the permission_broker DBus client while ensuring that the HidService is created and destroyed on the same thread. BUG=401234 Review URL: https://codereview.chromium.org/464753002 Cr-Commit-Position: refs/heads/master@{#292273}
Diffstat (limited to 'extensions/browser/api/extensions_api_client.h')
-rw-r--r--extensions/browser/api/extensions_api_client.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/extensions/browser/api/extensions_api_client.h b/extensions/browser/api/extensions_api_client.h
index 4a60df5..d2e07b7 100644
--- a/extensions/browser/api/extensions_api_client.h
+++ b/extensions/browser/api/extensions_api_client.h
@@ -19,10 +19,6 @@ namespace content {
class BrowserContext;
}
-namespace device {
-class HidService;
-}
-
namespace extensions {
class AppViewGuestDelegate;
@@ -76,9 +72,6 @@ class ExtensionsAPIClient {
// Creates the AppViewGuestDelegate.
virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const;
- // Returns the HidService instance for this embedder.
- virtual device::HidService* GetHidService();
-
// Returns a delegate for some of WebViewGuest's behavior. The caller owns the
// returned WebViewGuestDelegate.
virtual WebViewGuestDelegate* CreateWebViewGuestDelegate (