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

Unified Diff: mojo/edk/system/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/channel_endpoint.cc ('k') | mojo/edk/system/channel_endpoint_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/channel_endpoint_client.h
diff --git a/mojo/edk/system/channel_endpoint_client.h b/mojo/edk/system/channel_endpoint_client.h
index d2260f1db7606bf42fb0eacfa9a7ece0683db01d..fea942d2d40517a5b9680a0eaf698a623c14c57a 100644
--- a/mojo/edk/system/channel_endpoint_client.h
+++ b/mojo/edk/system/channel_endpoint_client.h
@@ -5,7 +5,7 @@
#ifndef MOJO_EDK_SYSTEM_CHANNEL_ENDPOINT_CLIENT_H_
#define MOJO_EDK_SYSTEM_CHANNEL_ENDPOINT_CLIENT_H_
-#include "base/memory/ref_counted.h"
+#include "mojo/edk/system/ref_counted.h"
#include "mojo/public/cpp/system/macros.h"
namespace mojo {
@@ -30,7 +30,7 @@ class MessageInTransit;
// |ChannelEndpoint| has apparently relinquished its pointer to the
// |ChannelEndpointClient|).
class ChannelEndpointClient
- : public base::RefCountedThreadSafe<ChannelEndpointClient> {
+ : public RefCountedThreadSafe<ChannelEndpointClient> {
public:
// Called by |ChannelEndpoint| in response to its |OnReadMessage()|, which is
// called by |Channel| when it receives a message for the |ChannelEndpoint|.
@@ -46,10 +46,10 @@ class ChannelEndpointClient
virtual void OnDetachFromChannel(unsigned port) = 0;
protected:
- ChannelEndpointClient() {}
+ FRIEND_REF_COUNTED_THREAD_SAFE(ChannelEndpointClient);
+ ChannelEndpointClient() {}
virtual ~ChannelEndpointClient() {}
- friend class base::RefCountedThreadSafe<ChannelEndpointClient>;
private:
MOJO_DISALLOW_COPY_AND_ASSIGN(ChannelEndpointClient);
« no previous file with comments | « mojo/edk/system/channel_endpoint.cc ('k') | mojo/edk/system/channel_endpoint_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698