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

Unified Diff: mojo/edk/system/platform_handle_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
Index: mojo/edk/system/platform_handle_dispatcher.h
diff --git a/mojo/edk/system/platform_handle_dispatcher.h b/mojo/edk/system/platform_handle_dispatcher.h
index db2f0cfa5434081b3aad6bd5292a3b4549745e17..d9baaa6d8f3111cc178376c3bcee2e51607aaca6 100644
--- a/mojo/edk/system/platform_handle_dispatcher.h
+++ b/mojo/edk/system/platform_handle_dispatcher.h
@@ -6,8 +6,8 @@
#define MOJO_EDK_SYSTEM_PLATFORM_HANDLE_DISPATCHER_H_
#include "mojo/edk/embedder/scoped_platform_handle.h"
-#include "mojo/edk/system/ref_ptr.h"
#include "mojo/edk/system/simple_dispatcher.h"
+#include "mojo/edk/util/ref_ptr.h"
#include "mojo/public/cpp/system/macros.h"
namespace mojo {
@@ -17,7 +17,7 @@ namespace system {
// the embedder).
class PlatformHandleDispatcher final : public SimpleDispatcher {
public:
- static RefPtr<PlatformHandleDispatcher> Create(
+ static util::RefPtr<PlatformHandleDispatcher> Create(
embedder::ScopedPlatformHandle platform_handle) {
return AdoptRef(new PlatformHandleDispatcher(platform_handle.Pass()));
}
@@ -29,7 +29,7 @@ class PlatformHandleDispatcher final : public SimpleDispatcher {
// The "opposite" of |SerializeAndClose()|. (Typically this is called by
// |Dispatcher::Deserialize()|.)
- static RefPtr<PlatformHandleDispatcher> Deserialize(
+ static util::RefPtr<PlatformHandleDispatcher> Deserialize(
Channel* channel,
const void* source,
size_t size,
@@ -42,7 +42,8 @@ class PlatformHandleDispatcher final : public SimpleDispatcher {
// |Dispatcher| protected methods:
void CloseImplNoLock() override;
- RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock() override;
+ util::RefPtr<Dispatcher> CreateEquivalentDispatcherAndCloseImplNoLock()
+ override;
void StartSerializeImplNoLock(Channel* channel,
size_t* max_size,
size_t* max_platform_handles) override
« no previous file with comments | « mojo/edk/system/multiprocess_message_pipe_unittest.cc ('k') | mojo/edk/system/platform_handle_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698