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

Unified Diff: extensions/browser/api/api_resource_manager.h

Issue 180163009: chrome.bluetooth API improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix threading ownership related to ApiResourceManager<BluetoothApiSocket> and BluetoothSocketEventD… 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
Index: extensions/browser/api/api_resource_manager.h
diff --git a/extensions/browser/api/api_resource_manager.h b/extensions/browser/api/api_resource_manager.h
index 39e9b8e5d675569c124471b6c797a3c65377550a..523868bb3eb3d9a74655300a773d481e18f9285f 100644
--- a/extensions/browser/api/api_resource_manager.h
+++ b/extensions/browser/api/api_resource_manager.h
@@ -25,6 +25,8 @@
namespace extensions {
namespace api {
+class BluetoothSocketApiFunction;
+class BluetoothSocketEventDispatcher;
class SerialEventDispatcher;
}
@@ -152,6 +154,9 @@ class ApiResourceManager : public BrowserContextKeyedAPI,
private:
// TODO(rockot): ApiResourceData could be moved out of ApiResourceManager and
// we could avoid maintaining a friends list here.
+ friend class BluetoothAPI;
+ friend class api::BluetoothSocketApiFunction;
+ friend class api::BluetoothSocketEventDispatcher;
friend class api::SerialEventDispatcher;
friend class core_api::TCPServerSocketEventDispatcher;
friend class core_api::TCPSocketEventDispatcher;

Powered by Google App Engine
This is Rietveld 408576698