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

Unified Diff: mojo/edk/system/data_pipe_consumer_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/data_pipe.cc ('k') | mojo/edk/system/data_pipe_consumer_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/data_pipe_consumer_dispatcher.h
diff --git a/mojo/edk/system/data_pipe_consumer_dispatcher.h b/mojo/edk/system/data_pipe_consumer_dispatcher.h
index 6c7b2ea2c01a689972f27bc038105c7180f76707..dbf628b233229105eb5caf12f50eb69bde7e55c2 100644
--- a/mojo/edk/system/data_pipe_consumer_dispatcher.h
+++ b/mojo/edk/system/data_pipe_consumer_dispatcher.h
@@ -6,7 +6,7 @@
#define MOJO_EDK_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_
#include "mojo/edk/system/dispatcher.h"
-#include "mojo/edk/system/ref_ptr.h"
+#include "mojo/edk/util/ref_ptr.h"
#include "mojo/public/cpp/system/macros.h"
namespace mojo {
@@ -19,21 +19,20 @@ class DataPipe;
// thread-safe.
class DataPipeConsumerDispatcher final : public Dispatcher {
public:
- static RefPtr<DataPipeConsumerDispatcher> Create() {
+ static util::RefPtr<DataPipeConsumerDispatcher> Create() {
return AdoptRef(new DataPipeConsumerDispatcher());
}
// Must be called before any other methods.
- void Init(RefPtr<DataPipe>&& data_pipe) MOJO_NOT_THREAD_SAFE;
+ void Init(util::RefPtr<DataPipe>&& data_pipe) MOJO_NOT_THREAD_SAFE;
// |Dispatcher| public methods:
Type GetType() const override;
// The "opposite" of |SerializeAndClose()|. (Typically this is called by
// |Dispatcher::Deserialize()|.)
- static RefPtr<DataPipeConsumerDispatcher> Deserialize(Channel* channel,
- const void* source,
- size_t size);
+ static util::RefPtr<DataPipeConsumerDispatcher>
+ Deserialize(Channel* channel, const void* source, size_t size);
// Get access to the |DataPipe| for testing.
DataPipe* GetDataPipeForTest();
@@ -45,7 +44,8 @@ class DataPipeConsumerDispatcher final : public Dispatcher {
// |Dispatcher| protected methods:
void CancelAllAwakablesNoLock() override;
void CloseImplNoLock() override;
- RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock() override;
+ util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock()
+ override;
MojoResult ReadDataImplNoLock(UserPointer<void> elements,
UserPointer<uint32_t> num_bytes,
MojoReadDataFlags flags) override;
@@ -73,7 +73,7 @@ class DataPipeConsumerDispatcher final : public Dispatcher {
bool IsBusyNoLock() const override;
// This will be null if closed.
- RefPtr<DataPipe> data_pipe_ MOJO_GUARDED_BY(mutex());
+ util::RefPtr<DataPipe> data_pipe_ MOJO_GUARDED_BY(mutex());
MOJO_DISALLOW_COPY_AND_ASSIGN(DataPipeConsumerDispatcher);
};
« no previous file with comments | « mojo/edk/system/data_pipe.cc ('k') | mojo/edk/system/data_pipe_consumer_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698