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

Side by Side Diff: remoting/host/win/host_service.h

Issue 569593002: Maintaining the proper order of initialization WeakPtrFactory in "src/remoting" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments 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 | « remoting/host/desktop_session_agent.cc ('k') | no next file » | 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 REMOTING_HOST_WIN_HOST_SERVICE_H_ 5 #ifndef REMOTING_HOST_WIN_HOST_SERVICE_H_
6 #define REMOTING_HOST_WIN_HOST_SERVICE_H_ 6 #define REMOTING_HOST_WIN_HOST_SERVICE_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // The action routine to be executed. 110 // The action routine to be executed.
111 int (HostService::*run_routine_)(); 111 int (HostService::*run_routine_)();
112 112
113 // The service status handle. 113 // The service status handle.
114 SERVICE_STATUS_HANDLE service_status_handle_; 114 SERVICE_STATUS_HANDLE service_status_handle_;
115 115
116 // A waitable event that is used to wait until the service is stopped. 116 // A waitable event that is used to wait until the service is stopped.
117 base::WaitableEvent stopped_event_; 117 base::WaitableEvent stopped_event_;
118 118
119 base::WeakPtr<HostService> weak_ptr_;
Wez 2014/09/19 18:23:03 nit: The WeakPtrFactory comment below still applie
120
119 // Used to post session change notifications and control events. 121 // Used to post session change notifications and control events.
120 base::WeakPtrFactory<HostService> weak_factory_; 122 base::WeakPtrFactory<HostService> weak_factory_;
121 base::WeakPtr<HostService> weak_ptr_;
122 123
123 // Singleton. 124 // Singleton.
124 friend struct DefaultSingletonTraits<HostService>; 125 friend struct DefaultSingletonTraits<HostService>;
125 126
126 DISALLOW_COPY_AND_ASSIGN(HostService); 127 DISALLOW_COPY_AND_ASSIGN(HostService);
127 }; 128 };
128 129
129 } // namespace remoting 130 } // namespace remoting
130 131
131 #endif // REMOTING_HOST_WIN_HOST_SERVICE_H_ 132 #endif // REMOTING_HOST_WIN_HOST_SERVICE_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_session_agent.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698