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; | |
46 #endif | 43 #endif |
47 | |
48 void ConnectMessagePipe(uint64_t pipe_id, | 44 void ConnectMessagePipe(uint64_t pipe_id, |
49 MessagePipeDispatcher* message_pipe) override; | 45 MessagePipeDispatcher* message_pipe) override; |
50 void CloseMessagePipe(uint64_t pipe_id, | 46 void CloseMessagePipe(uint64_t pipe_id, |
51 MessagePipeDispatcher* message_pipe) override; | 47 MessagePipeDispatcher* message_pipe) override; |
52 | 48 |
53 // Called by ChildBrokerHost on construction and destruction. | 49 // Called by ChildBrokerHost on construction and destruction. |
54 void ChildBrokerHostCreated(ChildBrokerHost* child_broker_host); | 50 void ChildBrokerHostCreated(ChildBrokerHost* child_broker_host); |
55 void ChildBrokerHostDestructed(ChildBrokerHost* child_broker_host); | 51 void ChildBrokerHostDestructed(ChildBrokerHost* child_broker_host); |
56 | 52 |
57 // These are called by ChildBrokerHost as they dispatch IPCs from ChildBroker. | 53 // These are called by ChildBrokerHost as they dispatch IPCs from ChildBroker. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 RoutedRawChannel* in_process_pipes_channel1_; | 112 RoutedRawChannel* in_process_pipes_channel1_; |
117 RoutedRawChannel* in_process_pipes_channel2_; | 113 RoutedRawChannel* in_process_pipes_channel2_; |
118 | 114 |
119 DISALLOW_COPY_AND_ASSIGN(BrokerState); | 115 DISALLOW_COPY_AND_ASSIGN(BrokerState); |
120 }; | 116 }; |
121 | 117 |
122 } // namespace edk | 118 } // namespace edk |
123 } // namespace mojo | 119 } // namespace mojo |
124 | 120 |
125 #endif // MOJO_EDK_SYSTEM_BROKER_STATE_H_ | 121 #endif // MOJO_EDK_SYSTEM_BROKER_STATE_H_ |
OLD | NEW |