OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_EDK_SYSTEM_BROKER_STATE_H_ | 5 #ifndef MOJO_EDK_SYSTEM_BROKER_STATE_H_ |
6 #define MOJO_EDK_SYSTEM_BROKER_STATE_H_ | 6 #define MOJO_EDK_SYSTEM_BROKER_STATE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 // Broker implementation: | 33 // Broker implementation: |
34 #if defined(OS_WIN) | 34 #if defined(OS_WIN) |
35 void CreatePlatformChannelPair(ScopedPlatformHandle* server, | 35 void CreatePlatformChannelPair(ScopedPlatformHandle* server, |
36 ScopedPlatformHandle* client) override; | 36 ScopedPlatformHandle* client) override; |
37 void HandleToToken(const PlatformHandle* platform_handles, | 37 void HandleToToken(const PlatformHandle* platform_handles, |
38 size_t count, | 38 size_t count, |
39 uint64_t* tokens) override; | 39 uint64_t* tokens) override; |
40 void TokenToHandle(const uint64_t* tokens, | 40 void TokenToHandle(const uint64_t* tokens, |
41 size_t count, | 41 size_t count, |
42 PlatformHandle* handles) override; | 42 PlatformHandle* handles) override; |
| 43 #else |
| 44 scoped_refptr<PlatformSharedBuffer> CreateSharedBuffer( |
| 45 size_t num_bytes) override; |
43 #endif | 46 #endif |
| 47 |
44 void ConnectMessagePipe(uint64_t pipe_id, | 48 void ConnectMessagePipe(uint64_t pipe_id, |
45 MessagePipeDispatcher* message_pipe) override; | 49 MessagePipeDispatcher* message_pipe) override; |
46 void CloseMessagePipe(uint64_t pipe_id, | 50 void CloseMessagePipe(uint64_t pipe_id, |
47 MessagePipeDispatcher* message_pipe) override; | 51 MessagePipeDispatcher* message_pipe) override; |
48 | 52 |
49 // Called by ChildBrokerHost on construction and destruction. | 53 // Called by ChildBrokerHost on construction and destruction. |
50 void ChildBrokerHostCreated(ChildBrokerHost* child_broker_host); | 54 void ChildBrokerHostCreated(ChildBrokerHost* child_broker_host); |
51 void ChildBrokerHostDestructed(ChildBrokerHost* child_broker_host); | 55 void ChildBrokerHostDestructed(ChildBrokerHost* child_broker_host); |
52 | 56 |
53 // These are called by ChildBrokerHost as they dispatch IPCs from ChildBroker. | 57 // These are called by ChildBrokerHost as they dispatch IPCs from ChildBroker. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 RoutedRawChannel* in_process_pipes_channel1_; | 116 RoutedRawChannel* in_process_pipes_channel1_; |
113 RoutedRawChannel* in_process_pipes_channel2_; | 117 RoutedRawChannel* in_process_pipes_channel2_; |
114 | 118 |
115 DISALLOW_COPY_AND_ASSIGN(BrokerState); | 119 DISALLOW_COPY_AND_ASSIGN(BrokerState); |
116 }; | 120 }; |
117 | 121 |
118 } // namespace edk | 122 } // namespace edk |
119 } // namespace mojo | 123 } // namespace mojo |
120 | 124 |
121 #endif // MOJO_EDK_SYSTEM_BROKER_STATE_H_ | 125 #endif // MOJO_EDK_SYSTEM_BROKER_STATE_H_ |
OLD | NEW |