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

Unified Diff: mojo/edk/system/test_channel_endpoint_client.h

Issue 1396783004: Convert mojo::system::ChannelEndpointClient to use our new refcounting stuff (instead of base's). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 | « mojo/edk/system/simple_dispatcher_unittest.cc ('k') | mojo/edk/system/test_channel_endpoint_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/test_channel_endpoint_client.h
diff --git a/mojo/edk/system/test_channel_endpoint_client.h b/mojo/edk/system/test_channel_endpoint_client.h
index 9965cf8441e56553e0797ffa4db1dc49c766b888..592e8ae46371e37389d31d4dfdcaaa05e63c5b6b 100644
--- a/mojo/edk/system/test_channel_endpoint_client.h
+++ b/mojo/edk/system/test_channel_endpoint_client.h
@@ -24,7 +24,7 @@ namespace test {
class TestChannelEndpointClient final : public ChannelEndpointClient {
public:
- TestChannelEndpointClient();
+ // Note: Use |MakeRefCounted<TestChannelEndpointClient>()|.
// Initializes with the given port and endpoint.
void Init(unsigned port, RefPtr<ChannelEndpoint>&& endpoint);
@@ -48,6 +48,9 @@ class TestChannelEndpointClient final : public ChannelEndpointClient {
void OnDetachFromChannel(unsigned port) override;
private:
+ FRIEND_MAKE_REF_COUNTED(TestChannelEndpointClient);
+
+ TestChannelEndpointClient();
~TestChannelEndpointClient() override;
mutable Mutex mutex_;
« no previous file with comments | « mojo/edk/system/simple_dispatcher_unittest.cc ('k') | mojo/edk/system/test_channel_endpoint_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698