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

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

Issue 1423713009: EDK: Move ref counting classes to mojo/edk/util. (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
Index: mojo/edk/system/proxy_message_pipe_endpoint.h
diff --git a/mojo/edk/system/proxy_message_pipe_endpoint.h b/mojo/edk/system/proxy_message_pipe_endpoint.h
index ac760cd6904b57e8d0604b3b19966a300a105702..24d06e36242d32a1da181bc9be017dd637ba5b34 100644
--- a/mojo/edk/system/proxy_message_pipe_endpoint.h
+++ b/mojo/edk/system/proxy_message_pipe_endpoint.h
@@ -7,7 +7,7 @@
#include "mojo/edk/system/message_in_transit.h"
#include "mojo/edk/system/message_pipe_endpoint.h"
-#include "mojo/edk/system/ref_ptr.h"
+#include "mojo/edk/util/ref_ptr.h"
#include "mojo/public/cpp/system/macros.h"
namespace mojo {
@@ -28,7 +28,8 @@ class MessagePipe;
// a |MessagePipeDispatcher|.
class ProxyMessagePipeEndpoint final : public MessagePipeEndpoint {
public:
- explicit ProxyMessagePipeEndpoint(RefPtr<ChannelEndpoint>&& channel_endpoint);
+ explicit ProxyMessagePipeEndpoint(
+ util::RefPtr<ChannelEndpoint>&& channel_endpoint);
~ProxyMessagePipeEndpoint() override;
// Returns |channel_endpoint_| and resets |channel_endpoint_| to null. This
@@ -37,7 +38,7 @@ class ProxyMessagePipeEndpoint final : public MessagePipeEndpoint {
// Note: The returned |ChannelEndpoint| must have its client changed while
// still under |MessagePipe|'s lock (which this must have also been called
// under).
- RefPtr<ChannelEndpoint> ReleaseChannelEndpoint();
+ util::RefPtr<ChannelEndpoint> ReleaseChannelEndpoint();
// |MessagePipeEndpoint| implementation:
Type GetType() const override;
@@ -48,7 +49,7 @@ class ProxyMessagePipeEndpoint final : public MessagePipeEndpoint {
private:
void DetachIfNecessary();
- RefPtr<ChannelEndpoint> channel_endpoint_;
+ util::RefPtr<ChannelEndpoint> channel_endpoint_;
MOJO_DISALLOW_COPY_AND_ASSIGN(ProxyMessagePipeEndpoint);
};
« no previous file with comments | « mojo/edk/system/platform_handle_dispatcher_unittest.cc ('k') | mojo/edk/system/proxy_message_pipe_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698