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

Unified Diff: mojo/edk/system/message_pipe_dispatcher.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/message_pipe.cc ('k') | mojo/edk/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/message_pipe_dispatcher.h
diff --git a/mojo/edk/system/message_pipe_dispatcher.h b/mojo/edk/system/message_pipe_dispatcher.h
index 24b262f1dd2b63824069c39e0f2cd0c6536d6672..c3241789afbd540fec31ec8709650d168f06286a 100644
--- a/mojo/edk/system/message_pipe_dispatcher.h
+++ b/mojo/edk/system/message_pipe_dispatcher.h
@@ -7,7 +7,7 @@
#include "mojo/edk/system/dispatcher.h"
#include "mojo/edk/system/memory.h"
-#include "mojo/edk/system/ref_ptr.h"
+#include "mojo/edk/util/ref_ptr.h"
#include "mojo/public/cpp/system/macros.h"
namespace mojo {
@@ -26,7 +26,7 @@ class MessagePipeDispatcher final : public Dispatcher {
// this is exposed directly for testing convenience.)
static const MojoCreateMessagePipeOptions kDefaultCreateOptions;
- static RefPtr<MessagePipeDispatcher> Create(
+ static util::RefPtr<MessagePipeDispatcher> Create(
const MojoCreateMessagePipeOptions& /*validated_options*/) {
return AdoptRef(new MessagePipeDispatcher());
}
@@ -41,7 +41,7 @@ class MessagePipeDispatcher final : public Dispatcher {
MojoCreateMessagePipeOptions* out_options);
// Must be called before any other methods. (This method is not thread-safe.)
- void Init(RefPtr<MessagePipe>&& message_pipe,
+ void Init(util::RefPtr<MessagePipe>&& message_pipe,
unsigned port) MOJO_NOT_THREAD_SAFE;
// |Dispatcher| public methods:
@@ -52,14 +52,14 @@ class MessagePipeDispatcher final : public Dispatcher {
// the message pipe, port 0).
// TODO(vtl): This currently uses |kDefaultCreateOptions|, which is okay since
// there aren't any options, but eventually options should be plumbed through.
- static RefPtr<MessagePipeDispatcher> CreateRemoteMessagePipe(
- RefPtr<ChannelEndpoint>* channel_endpoint);
+ static util::RefPtr<MessagePipeDispatcher> CreateRemoteMessagePipe(
+ util::RefPtr<ChannelEndpoint>* channel_endpoint);
// The "opposite" of |SerializeAndClose()|. (Typically this is called by
// |Dispatcher::Deserialize()|.)
- static RefPtr<MessagePipeDispatcher> Deserialize(Channel* channel,
- const void* source,
- size_t size);
+ static util::RefPtr<MessagePipeDispatcher> Deserialize(Channel* channel,
+ const void* source,
+ size_t size);
private:
friend class MessagePipeDispatcherTransport;
@@ -78,7 +78,8 @@ class MessagePipeDispatcher final : public Dispatcher {
// |Dispatcher| protected methods:
void CancelAllAwakablesNoLock() override;
void CloseImplNoLock() override;
- RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock() override;
+ util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock()
+ override;
MojoResult WriteMessageImplNoLock(
UserPointer<const void> bytes,
uint32_t num_bytes,
@@ -108,7 +109,7 @@ class MessagePipeDispatcher final : public Dispatcher {
MOJO_NOT_THREAD_SAFE;
// This will be null if closed.
- RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex());
+ util::RefPtr<MessagePipe> message_pipe_ MOJO_GUARDED_BY(mutex());
unsigned port_ MOJO_GUARDED_BY(mutex());
MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher);
« no previous file with comments | « mojo/edk/system/message_pipe.cc ('k') | mojo/edk/system/message_pipe_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698