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

Side by Side Diff: mojo/edk/system/default_token_serializer_win.h

Issue 1387963004: Create a broker interface for the new Mojo EDK so that the browser can create and duplicate messa... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small cleanup 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MOJO_EDK_SYSTEM_DEFAULT_TOKEN_SERIALIZER_WIN_H_
6 #define MOJO_EDK_SYSTEM_DEFAULT_TOKEN_SERIALIZER_WIN_H_
7
8 #include "mojo/edk/system/token_serializer_win.h"
9
10 namespace mojo {
11 namespace edk {
12
13 // A default implementation of TokenSerializer interface. This isn't meant for
14 // production use (i.e. with multi-process, sandboxes). It's provided for use by
yzshen1 2015/11/20 20:39:55 If it is used for testing only, can it be named To
jam 2015/11/21 01:26:09 well; it can also be used by code that's not sandb
yzshen1 2015/11/23 16:47:02 I feel that it is a little inaccurate to name test
jam 2015/11/23 17:12:35 renamed to simple per discussion
15 // unittests.
16 // Implementation notes: this default implementation works across processes
17 // without a sandbox.
18 class MOJO_SYSTEM_IMPL_EXPORT DefaultTokenSerializer : public TokenSerializer {
19 public:
20 DefaultTokenSerializer();
21 ~DefaultTokenSerializer() override;
22
23 // TokenSerializer implementation:
24 void CreatePlatformChannelPair(ScopedPlatformHandle* server,
25 ScopedPlatformHandle* client) override;
26 void HandleToToken(const PlatformHandle* platform_handles,
27 size_t count,
28 uint64_t* tokens) override;
29 void TokenToHandle(const uint64_t* tokens,
30 size_t count,
31 PlatformHandle* handles) override;
32 };
33
34 } // namespace edk
35 } // namespace mojo
36
37 #endif // MOJO_EDK_SYSTEM_DEFAULT_TOKEN_SERIALIZER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698