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

Side by Side Diff: remoting/host/setup/me2me_native_messaging_host.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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 | « remoting/host/resizing_host_observer.h ('k') | remoting/host/setup/win/auth_code_getter.h » ('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 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
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
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_
OLDNEW
« no previous file with comments | « remoting/host/resizing_host_observer.h ('k') | remoting/host/setup/win/auth_code_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698