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

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

Issue 1365383004: Cleanup: Remove internal two-phase data pipe all-or-none support. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
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_REMOTE_CONSUMER_DATA_PIPE_IMPL_H_ 5 #ifndef MOJO_EDK_SYSTEM_REMOTE_CONSUMER_DATA_PIPE_IMPL_H_
6 #define MOJO_EDK_SYSTEM_REMOTE_CONSUMER_DATA_PIPE_IMPL_H_ 6 #define MOJO_EDK_SYSTEM_REMOTE_CONSUMER_DATA_PIPE_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/aligned_memory.h" 10 #include "base/memory/aligned_memory.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 private: 44 private:
45 // |DataPipeImpl| implementation: 45 // |DataPipeImpl| implementation:
46 // Note: None of the |Consumer...()| methods should be called, except 46 // Note: None of the |Consumer...()| methods should be called, except
47 // |ConsumerGetHandleSignalsState()|. 47 // |ConsumerGetHandleSignalsState()|.
48 void ProducerClose() override; 48 void ProducerClose() override;
49 MojoResult ProducerWriteData(UserPointer<const void> elements, 49 MojoResult ProducerWriteData(UserPointer<const void> elements,
50 UserPointer<uint32_t> num_bytes, 50 UserPointer<uint32_t> num_bytes,
51 uint32_t max_num_bytes_to_write, 51 uint32_t max_num_bytes_to_write,
52 uint32_t min_num_bytes_to_write) override; 52 uint32_t min_num_bytes_to_write) override;
53 MojoResult ProducerBeginWriteData(UserPointer<void*> buffer, 53 MojoResult ProducerBeginWriteData(
54 UserPointer<uint32_t> buffer_num_bytes, 54 UserPointer<void*> buffer,
55 uint32_t min_num_bytes_to_write) override; 55 UserPointer<uint32_t> buffer_num_bytes) override;
56 MojoResult ProducerEndWriteData(uint32_t num_bytes_written) override; 56 MojoResult ProducerEndWriteData(uint32_t num_bytes_written) override;
57 HandleSignalsState ProducerGetHandleSignalsState() const override; 57 HandleSignalsState ProducerGetHandleSignalsState() const override;
58 void ProducerStartSerialize(Channel* channel, 58 void ProducerStartSerialize(Channel* channel,
59 size_t* max_size, 59 size_t* max_size,
60 size_t* max_platform_handles) override; 60 size_t* max_platform_handles) override;
61 bool ProducerEndSerialize( 61 bool ProducerEndSerialize(
62 Channel* channel, 62 Channel* channel,
63 void* destination, 63 void* destination,
64 size_t* actual_size, 64 size_t* actual_size,
65 embedder::PlatformHandleVector* platform_handles) override; 65 embedder::PlatformHandleVector* platform_handles) override;
66 void ConsumerClose() override; 66 void ConsumerClose() override;
67 MojoResult ConsumerReadData(UserPointer<void> elements, 67 MojoResult ConsumerReadData(UserPointer<void> elements,
68 UserPointer<uint32_t> num_bytes, 68 UserPointer<uint32_t> num_bytes,
69 uint32_t max_num_bytes_to_read, 69 uint32_t max_num_bytes_to_read,
70 uint32_t min_num_bytes_to_read, 70 uint32_t min_num_bytes_to_read,
71 bool peek) override; 71 bool peek) override;
72 MojoResult ConsumerDiscardData(UserPointer<uint32_t> num_bytes, 72 MojoResult ConsumerDiscardData(UserPointer<uint32_t> num_bytes,
73 uint32_t max_num_bytes_to_discard, 73 uint32_t max_num_bytes_to_discard,
74 uint32_t min_num_bytes_to_discard) override; 74 uint32_t min_num_bytes_to_discard) override;
75 MojoResult ConsumerQueryData(UserPointer<uint32_t> num_bytes) override; 75 MojoResult ConsumerQueryData(UserPointer<uint32_t> num_bytes) override;
76 MojoResult ConsumerBeginReadData(UserPointer<const void*> buffer, 76 MojoResult ConsumerBeginReadData(
77 UserPointer<uint32_t> buffer_num_bytes, 77 UserPointer<const void*> buffer,
78 uint32_t min_num_bytes_to_read) override; 78 UserPointer<uint32_t> buffer_num_bytes) override;
79 MojoResult ConsumerEndReadData(uint32_t num_bytes_read) override; 79 MojoResult ConsumerEndReadData(uint32_t num_bytes_read) override;
80 HandleSignalsState ConsumerGetHandleSignalsState() const override; 80 HandleSignalsState ConsumerGetHandleSignalsState() const override;
81 void ConsumerStartSerialize(Channel* channel, 81 void ConsumerStartSerialize(Channel* channel,
82 size_t* max_size, 82 size_t* max_size,
83 size_t* max_platform_handles) override; 83 size_t* max_platform_handles) override;
84 bool ConsumerEndSerialize( 84 bool ConsumerEndSerialize(
85 Channel* channel, 85 Channel* channel,
86 void* destination, 86 void* destination,
87 size_t* actual_size, 87 size_t* actual_size,
88 embedder::PlatformHandleVector* platform_handles) override; 88 embedder::PlatformHandleVector* platform_handles) override;
(...skipping 18 matching lines...) Expand all
107 // |LocalDataPipeImpl|. 107 // |LocalDataPipeImpl|.
108 size_t start_index_; 108 size_t start_index_;
109 109
110 MOJO_DISALLOW_COPY_AND_ASSIGN(RemoteConsumerDataPipeImpl); 110 MOJO_DISALLOW_COPY_AND_ASSIGN(RemoteConsumerDataPipeImpl);
111 }; 111 };
112 112
113 } // namespace system 113 } // namespace system
114 } // namespace mojo 114 } // namespace mojo
115 115
116 #endif // MOJO_EDK_SYSTEM_REMOTE_CONSUMER_DATA_PIPE_IMPL_H_ 116 #endif // MOJO_EDK_SYSTEM_REMOTE_CONSUMER_DATA_PIPE_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/local_data_pipe_impl.cc ('k') | mojo/edk/system/remote_consumer_data_pipe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698