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

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

Issue 1555273002: [mojo] Add CreateSharedBuffer method to Broker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 4 years, 11 months 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
« no previous file with comments | « mojo/edk/system/broker_messages.h ('k') | mojo/edk/system/broker_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « mojo/edk/system/broker_messages.h ('k') | mojo/edk/system/broker_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698