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

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

Issue 1465183005: Rename mojo::TokenSerializer to mojo::Broker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win component 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/token_serializer_win.h
diff --git a/mojo/edk/system/token_serializer_win.h b/mojo/edk/system/token_serializer_win.h
deleted file mode 100644
index 7b94bc93c9c2164ea986244923108eca135a7009..0000000000000000000000000000000000000000
--- a/mojo/edk/system/token_serializer_win.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_EDK_SYSTEM_TOKEN_SERIALIZER_WIN_H_
-#define MOJO_EDK_SYSTEM_TOKEN_SERIALIZER_WIN_H_
-
-#include <stdint.h>
-#include <vector>
-
-#include "mojo/edk/embedder/scoped_platform_handle.h"
-
-namespace mojo {
-namespace edk {
-
-// An interface for serializing a Mojo handle to memory. A child process will
-// have to make sync calls to the parent process. It is safe to call from any
-// thread.
-class MOJO_SYSTEM_IMPL_EXPORT TokenSerializer {
- public:
- virtual ~TokenSerializer() {}
-
- // Create a PlatformChannelPair.
- virtual void CreatePlatformChannelPair(ScopedPlatformHandle* server,
- ScopedPlatformHandle* client) = 0;
-
- // Converts the given platform handles to tokens.
- // |tokens| should point to memory that is sizeof(uint64_t) * count;
- virtual void HandleToToken(const PlatformHandle* platform_handles,
- size_t count,
- uint64_t* tokens) = 0;
-
- // Converts the given tokens to platformhandles.
- // |handles| should point to memory that is sizeof(HANDLE) * count;
- virtual void TokenToHandle(const uint64_t* tokens,
- size_t count,
- PlatformHandle* handles) = 0;
-};
-
-} // namespace edk
-} // namespace mojo
-
-#endif // MOJO_EDK_SYSTEM_TOKEN_SERIALIZER_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698