/external/chromium_org/mojo/system/ |
H A D | handle_table.cc | 76 bool HandleTable::AddDispatcherVector(const DispatcherVector& dispatchers, argument 78 DCHECK_LE(dispatchers.size(), kMaxMessageNumHandles); 88 if (handle_to_entry_map_.size() + dispatchers.size() > kMaxHandleTableSize) 91 for (size_t i = 0; i < dispatchers.size(); i++) { 92 if (dispatchers[i].get()) { 93 handles[i] = AddDispatcherNoSizeCheck(dispatchers[i]); 115 // First verify all the handles and get their dispatchers.
|
H A D | local_message_pipe_endpoint.cc | 68 DispatcherVector* dispatchers, 72 DCHECK(!dispatchers || dispatchers->empty()); 93 if (DispatcherVector* queued_dispatchers = message->dispatchers()) { 100 DCHECK(dispatchers); 101 dispatchers->swap(*queued_dispatchers); 65 ReadMessage( UserPointer<void> bytes, UserPointer<uint32_t> num_bytes, DispatcherVector* dispatchers, uint32_t* num_dispatchers, MojoReadMessageFlags flags) argument
|
H A D | message_pipe.cc | 109 DispatcherVector* dispatchers, 118 bytes, num_bytes, dispatchers, num_dispatchers, flags); 206 // Owned by the dispatchers. The owning dispatchers should only release us via 272 // Clone the dispatchers and attach them to the message. (This must be done as 273 // a separate loop, since we want to leave the dispatchers alone on failure.) 274 scoped_ptr<DispatcherVector> dispatchers(new DispatcherVector()); 275 dispatchers->reserve(transports->size()); 278 dispatchers->push_back( 282 dispatchers 106 ReadMessage(unsigned port, UserPointer<void> bytes, UserPointer<uint32_t> num_bytes, DispatcherVector* dispatchers, uint32_t* num_dispatchers, MojoReadMessageFlags flags) argument [all...] |
H A D | multiprocess_message_pipe_unittest.cc | 237 DispatcherVector dispatchers; local 242 &dispatchers, 250 CHECK_EQ(dispatchers[0]->GetType(), Dispatcher::kTypeSharedBuffer); 253 static_cast<SharedBufferDispatcher*>(dispatchers[0].get())); 429 DispatcherVector dispatchers; local 434 &dispatchers, 444 CHECK_EQ(dispatchers[0]->GetType(), Dispatcher::kTypePlatformHandle); 447 static_cast<PlatformHandleDispatcher*>(dispatchers[0].get()));
|
H A D | message_in_transit.cc | 163 scoped_ptr<DispatcherVector> dispatchers) { 164 DCHECK(dispatchers); 168 dispatchers_ = dispatchers.Pass(); 209 // Note: If dispatchers are subsequently attached, then |total_size| will have 162 SetDispatchers( scoped_ptr<DispatcherVector> dispatchers) argument
|
H A D | message_in_transit.h | 161 // Makes this message "own" the given set of dispatchers. The dispatchers must 164 // message must not already have dispatchers. 165 void SetDispatchers(scoped_ptr<DispatcherVector> dispatchers); 168 // there are no dispatchers and no existing |TransportData|. 171 // Serializes any dispatchers to the secondary buffer. This message must not 205 // Gets the dispatchers attached to this message; this may return null if 206 // there are none. Note that the caller may mutate the set of dispatchers 207 // (e.g., take ownership of all the dispatchers, leaving the vector empty). 208 DispatcherVector* dispatchers() { retur function in class:mojo::system::MessageInTransit [all...] |
H A D | message_pipe_dispatcher.cc | 204 DispatcherVector* dispatchers, 209 port_, bytes, num_bytes, dispatchers, num_dispatchers, flags); 201 ReadMessageImplNoLock( UserPointer<void> bytes, UserPointer<uint32_t> num_bytes, DispatcherVector* dispatchers, uint32_t* num_dispatchers, MojoReadMessageFlags flags) argument
|
H A D | transport_data.cc | 63 TransportData::TransportData(scoped_ptr<DispatcherVector> dispatchers, argument 65 DCHECK(dispatchers); 68 const size_t num_handles = dispatchers->size(); 85 if (Dispatcher* dispatcher = (*dispatchers)[i].get()) { 136 Dispatcher* dispatcher = (*dispatchers)[i].get(); 324 scoped_ptr<DispatcherVector> dispatchers(new DispatcherVector(num_handles)); 338 (*dispatchers)[i] = Dispatcher::TransportDataAccess::Deserialize( 342 return dispatchers.Pass();
|
H A D | core.cc | 221 // does not transfer dispatchers from one handle to another, even when sending a 246 // validity, even for dispatchers that don't support |WriteMessage()| and will 254 // We'll need to hold on to the dispatchers so that we can pass them on to 261 // When we pass handles, we have to try to take all their dispatchers' locks 314 DispatcherVector dispatchers; local 316 bytes, num_bytes, &dispatchers, &num_handles_value, flags); 317 if (!dispatchers.empty()) { 320 DCHECK_LE(dispatchers.size(), static_cast<size_t>(num_handles_value)); 324 dispatchers.size()); 328 dispatchers, handles_write 558 DispatcherVector dispatchers; local [all...] |
H A D | dispatcher.cc | 35 // We shouldn't race with things that close dispatchers, since closing can 122 DispatcherVector* dispatchers, 126 (dispatchers && dispatchers->empty())); 133 bytes, num_bytes, dispatchers, num_dispatchers, flags); 258 // By default, waiting isn't supported. Only dispatchers that can be waited on 276 // By default, not supported. Only needed for message pipe dispatchers. 283 DispatcherVector* /*dispatchers*/, 288 // By default, not supported. Only needed for message pipe dispatchers. 297 // By default, not supported. Only needed for data pipe dispatchers 120 ReadMessage(UserPointer<void> bytes, UserPointer<uint32_t> num_bytes, DispatcherVector* dispatchers, uint32_t* num_dispatchers, MojoReadMessageFlags flags) argument [all...] |
/external/chromium_org/ui/events/platform/ |
H A D | platform_event_source_unittest.cc | 179 // Tests that dispatchers receive events in the correct order. 183 ScopedVector<TestPlatformEventDispatcher> dispatchers; local 185 dispatchers.push_back( 195 // Tests that if a dispatcher consumes the event, the subsequent dispatchers do 253 // Tests that observers and dispatchers receive events in the correct order. 267 // dispatchers. 289 // Tests that an overridden dispatcher can request that the default dispatchers 392 // event should reach all three dispatchers in the list. 411 // |second| removes itself during dispatch. So both dispatchers will have 431 // event should reach all three dispatchers [all...] |