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

Side by Side Diff: mojo/public/bindings/lib/connector.h

Issue 65043004: Add better handle tracking, and optimize Connector::Accept. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update per review feedback Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/public/bindings/lib/connector.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_PUBLIC_BINDINGS_LIB_CONNECTOR_H_ 5 #ifndef MOJO_PUBLIC_BINDINGS_LIB_CONNECTOR_H_
6 #define MOJO_PUBLIC_BINDINGS_LIB_CONNECTOR_H_ 6 #define MOJO_PUBLIC_BINDINGS_LIB_CONNECTOR_H_
7 7
8 #include "mojo/public/bindings/lib/bindings_support.h" 8 #include "mojo/public/bindings/lib/bindings_support.h"
9 #include "mojo/public/bindings/lib/message.h" 9 #include "mojo/public/bindings/lib/message.h"
10 #include "mojo/public/bindings/lib/message_queue.h" 10 #include "mojo/public/bindings/lib/message_queue.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 private: 52 private:
53 Connector* owner_; 53 Connector* owner_;
54 }; 54 };
55 friend class Callback; 55 friend class Callback;
56 56
57 void OnHandleReady(Callback* callback, MojoResult result); 57 void OnHandleReady(Callback* callback, MojoResult result);
58 void WaitToReadMore(); 58 void WaitToReadMore();
59 void WaitToWriteMore(); 59 void WaitToWriteMore();
60 void ReadMore(); 60 void ReadMore();
61 void WriteMore(); 61 void WriteMore();
62 void WriteOne(Message* message, bool* wait_to_write);
62 63
63 Handle message_pipe_; 64 Handle message_pipe_;
64 MessageReceiver* incoming_receiver_; 65 MessageReceiver* incoming_receiver_;
65 MessageQueue write_queue_; 66 MessageQueue write_queue_;
66 67
67 Callback read_callback_; 68 Callback read_callback_;
68 Callback write_callback_; 69 Callback write_callback_;
69 70
70 bool error_; 71 bool error_;
71 }; 72 };
72 73
73 } // namespace mojo 74 } // namespace mojo
74 75
75 #endif // MOJO_PUBLIC_BINDINGS_LIB_CONNECTOR_H_ 76 #endif // MOJO_PUBLIC_BINDINGS_LIB_CONNECTOR_H_
OLDNEW
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/public/bindings/lib/connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698