OLD | NEW |
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 REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ | 5 #ifndef REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ |
6 #define REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ | 6 #define REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 void DisconnectElevatedHost(); | 152 void DisconnectElevatedHost(); |
153 | 153 |
154 // Native messaging channel used to communicate with the elevated host. | 154 // Native messaging channel used to communicate with the elevated host. |
155 scoped_ptr<extensions::NativeMessagingChannel> elevated_channel_; | 155 scoped_ptr<extensions::NativeMessagingChannel> elevated_channel_; |
156 | 156 |
157 // Native messaging event handler used to process responses from the elevated | 157 // Native messaging event handler used to process responses from the elevated |
158 // host. | 158 // host. |
159 scoped_ptr<ElevatedChannelEventHandler> elevated_channel_event_handler_; | 159 scoped_ptr<ElevatedChannelEventHandler> elevated_channel_event_handler_; |
160 | 160 |
161 // Timer to control the lifetime of the elevated host. | 161 // Timer to control the lifetime of the elevated host. |
162 base::OneShotTimer<Me2MeNativeMessagingHost> elevated_host_timer_; | 162 base::OneShotTimer elevated_host_timer_; |
163 #endif // defined(OS_WIN) | 163 #endif // defined(OS_WIN) |
164 | 164 |
165 bool needs_elevation_; | 165 bool needs_elevation_; |
166 | 166 |
167 #if defined(OS_WIN) | 167 #if defined(OS_WIN) |
168 // Handle of the parent window. | 168 // Handle of the parent window. |
169 intptr_t parent_window_handle_; | 169 intptr_t parent_window_handle_; |
170 #endif // defined(OS_WIN) | 170 #endif // defined(OS_WIN) |
171 | 171 |
172 base::Closure quit_closure_; | 172 base::Closure quit_closure_; |
(...skipping 16 matching lines...) Expand all Loading... |
189 | 189 |
190 base::WeakPtr<Me2MeNativeMessagingHost> weak_ptr_; | 190 base::WeakPtr<Me2MeNativeMessagingHost> weak_ptr_; |
191 base::WeakPtrFactory<Me2MeNativeMessagingHost> weak_factory_; | 191 base::WeakPtrFactory<Me2MeNativeMessagingHost> weak_factory_; |
192 | 192 |
193 DISALLOW_COPY_AND_ASSIGN(Me2MeNativeMessagingHost); | 193 DISALLOW_COPY_AND_ASSIGN(Me2MeNativeMessagingHost); |
194 }; | 194 }; |
195 | 195 |
196 } // namespace remoting | 196 } // namespace remoting |
197 | 197 |
198 #endif // REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ | 198 #endif // REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ |
OLD | NEW |