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

Side by Side Diff: ipc/ipc_channel_win.h

Issue 564863003: IPC: Add more debug info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | ipc/ipc_channel_win.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 (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_WIN_H_ 5 #ifndef IPC_IPC_CHANNEL_WIN_H_
6 #define IPC_IPC_CHANNEL_WIN_H_ 6 #define IPC_IPC_CHANNEL_WIN_H_
7 7
8 #include "ipc/ipc_channel.h" 8 #include "ipc/ipc_channel.h"
9 9
10 #include <queue> 10 #include <queue>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // problems. TODO(darin): make this unnecessary 91 // problems. TODO(darin): make this unnecessary
92 bool processing_incoming_; 92 bool processing_incoming_;
93 93
94 // Determines if we should validate a client's secret on connection. 94 // Determines if we should validate a client's secret on connection.
95 bool validate_client_; 95 bool validate_client_;
96 96
97 // True if there is a write in progress. TODO(rvargas): remove this. 97 // True if there is a write in progress. TODO(rvargas): remove this.
98 bool writing_; 98 bool writing_;
99 99
100 // Tracks the lifetime of this object, for debugging purposes. 100 // Tracks the lifetime of this object, for debugging purposes.
101 int32 debug_flags_; 101 uint32 debug_flags_;
102
103 // OS result for the current write. TODO(rvargas): remove this.
104 uint32 write_error_;
105
106 // OS result for a previous failed write. TODO(rvargas): remove this.
107 uint32 last_write_error_;
108
109 // Size of the current write. TODO(rvargas): remove this.
110 uint32 write_size_;
102 111
103 // This is a unique per-channel value used to authenticate the client end of 112 // This is a unique per-channel value used to authenticate the client end of
104 // a connection. If the value is non-zero, the client passes it in the hello 113 // a connection. If the value is non-zero, the client passes it in the hello
105 // and the host validates. (We don't send the zero value fto preserve IPC 114 // and the host validates. (We don't send the zero value fto preserve IPC
106 // compatability with existing clients that don't validate the channel.) 115 // compatability with existing clients that don't validate the channel.)
107 int32 client_secret_; 116 int32 client_secret_;
108 117
109 scoped_ptr<base::ThreadChecker> thread_check_; 118 scoped_ptr<base::ThreadChecker> thread_check_;
110 base::WeakPtrFactory<ChannelWin> weak_factory_; 119 base::WeakPtrFactory<ChannelWin> weak_factory_;
111 120
112 DISALLOW_COPY_AND_ASSIGN(ChannelWin); 121 DISALLOW_COPY_AND_ASSIGN(ChannelWin);
113 }; 122 };
114 123
115 } // namespace IPC 124 } // namespace IPC
116 125
117 #endif // IPC_IPC_CHANNEL_WIN_H_ 126 #endif // IPC_IPC_CHANNEL_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | ipc/ipc_channel_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698