| OLD | NEW |
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 bool waiting_connect_; | 114 bool waiting_connect_; |
| 115 | 115 |
| 116 // This flag is set when processing incoming messages. It is used to | 116 // This flag is set when processing incoming messages. It is used to |
| 117 // avoid recursing through ProcessIncomingMessages, which could cause | 117 // avoid recursing through ProcessIncomingMessages, which could cause |
| 118 // problems. TODO(darin): make this unnecessary | 118 // problems. TODO(darin): make this unnecessary |
| 119 bool processing_incoming_; | 119 bool processing_incoming_; |
| 120 | 120 |
| 121 // Determines if we should validate a client's secret on connection. | 121 // Determines if we should validate a client's secret on connection. |
| 122 bool validate_client_; | 122 bool validate_client_; |
| 123 | 123 |
| 124 // Tracks the lifetime of this object, for debugging purposes. | |
| 125 uint32_t debug_flags_; | |
| 126 | |
| 127 // This is a unique per-channel value used to authenticate the client end of | 124 // This is a unique per-channel value used to authenticate the client end of |
| 128 // a connection. If the value is non-zero, the client passes it in the hello | 125 // a connection. If the value is non-zero, the client passes it in the hello |
| 129 // and the host validates. (We don't send the zero value fto preserve IPC | 126 // and the host validates. (We don't send the zero value fto preserve IPC |
| 130 // compatability with existing clients that don't validate the channel.) | 127 // compatability with existing clients that don't validate the channel.) |
| 131 int32_t client_secret_; | 128 int32_t client_secret_; |
| 132 | 129 |
| 133 std::unique_ptr<base::ThreadChecker> thread_check_; | 130 std::unique_ptr<base::ThreadChecker> thread_check_; |
| 134 | 131 |
| 135 base::WeakPtrFactory<ChannelWin> weak_factory_; | 132 base::WeakPtrFactory<ChannelWin> weak_factory_; |
| 136 DISALLOW_COPY_AND_ASSIGN(ChannelWin); | 133 DISALLOW_COPY_AND_ASSIGN(ChannelWin); |
| 137 }; | 134 }; |
| 138 | 135 |
| 139 } // namespace IPC | 136 } // namespace IPC |
| 140 | 137 |
| 141 #endif // IPC_IPC_CHANNEL_WIN_H_ | 138 #endif // IPC_IPC_CHANNEL_WIN_H_ |
| OLD | NEW |