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

Unified Diff: mojo/public/cpp/bindings/associated_group_controller.h

Issue 2185723002: Eliminate deferred destruction of AssociatedGroupController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « ipc/ipc_mojo_bootstrap.cc ('k') | mojo/public/cpp/bindings/connector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/associated_group_controller.h
diff --git a/mojo/public/cpp/bindings/associated_group_controller.h b/mojo/public/cpp/bindings/associated_group_controller.h
index 0ab8253ed45846cb65bab34d8f31f01e3fb72f0d..258cfa4568adb4b06f993c2f38a1b79bc9582e50 100644
--- a/mojo/public/cpp/bindings/associated_group_controller.h
+++ b/mojo/public/cpp/bindings/associated_group_controller.h
@@ -9,7 +9,6 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/ref_counted_delete_on_message_loop.h"
#include "base/single_thread_task_runner.h"
#include "mojo/public/cpp/bindings/interface_id.h"
#include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
@@ -22,11 +21,8 @@ class InterfaceEndpointController;
// An internal interface used to manage endpoints within an associated group.
class AssociatedGroupController :
- public base::RefCountedDeleteOnMessageLoop<AssociatedGroupController> {
+ public base::RefCountedThreadSafe<AssociatedGroupController> {
public:
- explicit AssociatedGroupController(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner);
-
// Creates a pair of interface endpoint handles. The method generates a new
// interface ID and assigns it to the two handles. |local_endpoint| is used
// locally; while |remote_endpoint| is sent over the message pipe.
@@ -66,8 +62,7 @@ class AssociatedGroupController :
std::unique_ptr<AssociatedGroup> CreateAssociatedGroup();
protected:
- friend class base::RefCountedDeleteOnMessageLoop<AssociatedGroupController>;
- friend class base::DeleteHelper<AssociatedGroupController>;
+ friend class base::RefCountedThreadSafe<AssociatedGroupController>;
// Creates a new ScopedInterfaceEndpointHandle associated with this
// controller.
@@ -76,8 +71,6 @@ class AssociatedGroupController :
bool is_local);
virtual ~AssociatedGroupController();
-
- DISALLOW_COPY_AND_ASSIGN(AssociatedGroupController);
};
} // namespace mojo
« no previous file with comments | « ipc/ipc_mojo_bootstrap.cc ('k') | mojo/public/cpp/bindings/connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698