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

Side by Side Diff: ipc/ipc_channel_nacl.h

Issue 1206093002: Update ChannelReader to use AttachmentBroker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@attachment_broker3_listener
Patch Set: Created 5 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 IPC_IPC_CHANNEL_NACL_H_ 5 #ifndef IPC_IPC_CHANNEL_NACL_H_
6 #define IPC_IPC_CHANNEL_NACL_H_ 6 #define IPC_IPC_CHANNEL_NACL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 class ReaderThreadRunner; 58 class ReaderThreadRunner;
59 59
60 bool CreatePipe(const IPC::ChannelHandle& channel_handle); 60 bool CreatePipe(const IPC::ChannelHandle& channel_handle);
61 bool ProcessOutgoingMessages(); 61 bool ProcessOutgoingMessages();
62 void CallOnChannelConnected(); 62 void CallOnChannelConnected();
63 63
64 // ChannelReader implementation. 64 // ChannelReader implementation.
65 ReadState ReadData(char* buffer, 65 ReadState ReadData(char* buffer,
66 int buffer_len, 66 int buffer_len,
67 int* bytes_read) override; 67 int* bytes_read) override;
68 bool WillDispatchInputMessage(Message* msg) override; 68 bool ShouldDispatchInputMessage(Message* msg) override;
69 bool GetNonBrokeredAttachments(Message* msg) override;
69 bool DidEmptyInputBuffers() override; 70 bool DidEmptyInputBuffers() override;
70 void HandleInternalMessage(const Message& msg) override; 71 void HandleInternalMessage(const Message& msg) override;
71 72
72 Mode mode_; 73 Mode mode_;
73 bool waiting_connect_; 74 bool waiting_connect_;
74 75
75 // The pipe used for communication. 76 // The pipe used for communication.
76 int pipe_; 77 int pipe_;
77 78
78 // The "name" of our pipe. On Windows this is the global identifier for 79 // The "name" of our pipe. On Windows this is the global identifier for
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 120
120 // |broker_| must outlive this instance. 121 // |broker_| must outlive this instance.
121 AttachmentBroker* broker_; 122 AttachmentBroker* broker_;
122 123
123 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelNacl); 124 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelNacl);
124 }; 125 };
125 126
126 } // namespace IPC 127 } // namespace IPC
127 128
128 #endif // IPC_IPC_CHANNEL_NACL_H_ 129 #endif // IPC_IPC_CHANNEL_NACL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698