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

Side by Side Diff: mojo/system/message_pipe_endpoint.h

Issue 596363003: Mojo: Remove ProxyMessagePipeEndpoint::Run(), etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@del_mp_attach-x-move_paused_message_queue-x-del_pmpe_attach
Patch Set: remove unused vars Created 6 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
« no previous file with comments | « mojo/system/message_pipe.cc ('k') | mojo/system/message_pipe_endpoint.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_ 5 #ifndef MOJO_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_
6 #define MOJO_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_ 6 #define MOJO_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual MojoResult AddWaiter(Waiter* waiter, 68 virtual MojoResult AddWaiter(Waiter* waiter,
69 MojoHandleSignals signals, 69 MojoHandleSignals signals,
70 uint32_t context, 70 uint32_t context,
71 HandleSignalsState* signals_state); 71 HandleSignalsState* signals_state);
72 virtual void RemoveWaiter(Waiter* waiter, HandleSignalsState* signals_state); 72 virtual void RemoveWaiter(Waiter* waiter, HandleSignalsState* signals_state);
73 73
74 // Implementations must override these if they represent a proxy endpoint. An 74 // Implementations must override these if they represent a proxy endpoint. An
75 // implementation for a local endpoint needs not override these methods, since 75 // implementation for a local endpoint needs not override these methods, since
76 // they should never be called. 76 // they should never be called.
77 virtual void Attach(ChannelEndpoint* channel_endpoint); 77 virtual void Attach(ChannelEndpoint* channel_endpoint);
78 // Returns false if the endpoint should be closed and destroyed, else true.
79 virtual bool Run();
80 virtual void OnRemove(); 78 virtual void OnRemove();
81 79
82 protected: 80 protected:
83 MessagePipeEndpoint() {} 81 MessagePipeEndpoint() {}
84 82
85 private: 83 private:
86 DISALLOW_COPY_AND_ASSIGN(MessagePipeEndpoint); 84 DISALLOW_COPY_AND_ASSIGN(MessagePipeEndpoint);
87 }; 85 };
88 86
89 } // namespace system 87 } // namespace system
90 } // namespace mojo 88 } // namespace mojo
91 89
92 #endif // MOJO_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_ 90 #endif // MOJO_SYSTEM_MESSAGE_PIPE_ENDPOINT_H_
OLDNEW
« no previous file with comments | « mojo/system/message_pipe.cc ('k') | mojo/system/message_pipe_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698