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

Unified Diff: mojo/edk/system/incoming_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
« no previous file with comments | « mojo/edk/system/handle_table.cc ('k') | mojo/edk/system/incoming_endpoint.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/incoming_endpoint.h
diff --git a/mojo/edk/system/incoming_endpoint.h b/mojo/edk/system/incoming_endpoint.h
index 6dbf9a0270dc060e4be039d9be942b615eb08ce8..02bf0b4801abf5d24752f00b1eeedaa6c1246162 100644
--- a/mojo/edk/system/incoming_endpoint.h
+++ b/mojo/edk/system/incoming_endpoint.h
@@ -10,7 +10,7 @@
#include "mojo/edk/system/channel_endpoint_client.h"
#include "mojo/edk/system/message_in_transit_queue.h"
#include "mojo/edk/system/mutex.h"
-#include "mojo/edk/system/ref_ptr.h"
+#include "mojo/edk/util/ref_ptr.h"
#include "mojo/public/cpp/system/macros.h"
struct MojoCreateDataPipeOptions;
@@ -27,16 +27,16 @@ class MessagePipe;
// |MessagePipe|s or |DataPipe|s.
class IncomingEndpoint final : public ChannelEndpointClient {
public:
- // Note: Use |MakeRefCounted<IncomingEndpoint>()|.
+ // Note: Use |util::MakeRefCounted<IncomingEndpoint>()|.
// Must be called before any other method.
- RefPtr<ChannelEndpoint> Init() MOJO_NOT_THREAD_SAFE;
+ util::RefPtr<ChannelEndpoint> Init() MOJO_NOT_THREAD_SAFE;
- RefPtr<MessagePipe> ConvertToMessagePipe();
- RefPtr<DataPipe> ConvertToDataPipeProducer(
+ util::RefPtr<MessagePipe> ConvertToMessagePipe();
+ util::RefPtr<DataPipe> ConvertToDataPipeProducer(
const MojoCreateDataPipeOptions& validated_options,
size_t consumer_num_bytes);
- RefPtr<DataPipe> ConvertToDataPipeConsumer(
+ util::RefPtr<DataPipe> ConvertToDataPipeConsumer(
const MojoCreateDataPipeOptions& validated_options);
// Must be called before destroying this object if |ConvertToMessagePipe()|
@@ -54,7 +54,7 @@ class IncomingEndpoint final : public ChannelEndpointClient {
~IncomingEndpoint() override;
Mutex mutex_;
- RefPtr<ChannelEndpoint> endpoint_ MOJO_GUARDED_BY(mutex_);
+ util::RefPtr<ChannelEndpoint> endpoint_ MOJO_GUARDED_BY(mutex_);
MessageInTransitQueue message_queue_ MOJO_GUARDED_BY(mutex_);
MOJO_DISALLOW_COPY_AND_ASSIGN(IncomingEndpoint);
« no previous file with comments | « mojo/edk/system/handle_table.cc ('k') | mojo/edk/system/incoming_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698