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

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

Issue 1483823004: EDK: Move {platform_handle,scoped_platform_handle}.* to //mojo/edk/platform. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 16ce34083e868fc550e42afb46957c59226a4ea6..426f0c3ccfeb1eed4a45f9c8cbc352b40e79f454 100644
--- a/mojo/edk/system/platform_handle_dispatcher.h
+++ b/mojo/edk/system/platform_handle_dispatcher.h
@@ -5,7 +5,9 @@
#ifndef MOJO_EDK_SYSTEM_PLATFORM_HANDLE_DISPATCHER_H_
#define MOJO_EDK_SYSTEM_PLATFORM_HANDLE_DISPATCHER_H_
-#include "mojo/edk/embedder/scoped_platform_handle.h"
+#include <vector>
+
+#include "mojo/edk/platform/scoped_platform_handle.h"
#include "mojo/edk/system/simple_dispatcher.h"
#include "mojo/edk/util/ref_ptr.h"
#include "mojo/edk/util/thread_annotations.h"
@@ -19,11 +21,11 @@ namespace system {
class PlatformHandleDispatcher final : public SimpleDispatcher {
public:
static util::RefPtr<PlatformHandleDispatcher> Create(
- embedder::ScopedPlatformHandle platform_handle) {
+ platform::ScopedPlatformHandle platform_handle) {
return AdoptRef(new PlatformHandleDispatcher(platform_handle.Pass()));
}
- embedder::ScopedPlatformHandle PassPlatformHandle();
+ platform::ScopedPlatformHandle PassPlatformHandle();
// |Dispatcher| public methods:
Type GetType() const override;
@@ -34,11 +36,11 @@ class PlatformHandleDispatcher final : public SimpleDispatcher {
Channel* channel,
const void* source,
size_t size,
- std::vector<embedder::ScopedPlatformHandle>* platform_handles);
+ std::vector<platform::ScopedPlatformHandle>* platform_handles);
private:
explicit PlatformHandleDispatcher(
- embedder::ScopedPlatformHandle platform_handle);
+ platform::ScopedPlatformHandle platform_handle);
~PlatformHandleDispatcher() override;
// |Dispatcher| protected methods:
@@ -53,10 +55,10 @@ class PlatformHandleDispatcher final : public SimpleDispatcher {
Channel* channel,
void* destination,
size_t* actual_size,
- std::vector<embedder::ScopedPlatformHandle>* platform_handles) override
+ std::vector<platform::ScopedPlatformHandle>* platform_handles) override
MOJO_NOT_THREAD_SAFE;
- embedder::ScopedPlatformHandle platform_handle_ MOJO_GUARDED_BY(mutex());
+ platform::ScopedPlatformHandle platform_handle_ MOJO_GUARDED_BY(mutex());
MOJO_DISALLOW_COPY_AND_ASSIGN(PlatformHandleDispatcher);
};
« 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