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

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

Issue 810133003: replace NULL->nullptr in src/remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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_WORKER_PROCESS_LAUNCHER_H_ 5 #ifndef REMOTING_HOST_WIN_WORKER_PROCESS_LAUNCHER_H_
6 #define REMOTING_HOST_WIN_WORKER_PROCESS_LAUNCHER_H_ 6 #define REMOTING_HOST_WIN_WORKER_PROCESS_LAUNCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void OnChannelError(); 98 void OnChannelError();
99 99
100 private: 100 private:
101 friend class WorkerProcessLauncherTest; 101 friend class WorkerProcessLauncherTest;
102 102
103 // base::win::ObjectWatcher::Delegate implementation used to watch for 103 // base::win::ObjectWatcher::Delegate implementation used to watch for
104 // the worker process exiting. 104 // the worker process exiting.
105 virtual void OnObjectSignaled(HANDLE object) override; 105 virtual void OnObjectSignaled(HANDLE object) override;
106 106
107 // Returns true when the object is being destroyed. 107 // Returns true when the object is being destroyed.
108 bool stopping() const { return ipc_handler_ == NULL; } 108 bool stopping() const { return ipc_handler_ == nullptr; }
109 109
110 // Attempts to launch the worker process. Schedules next launch attempt if 110 // Attempts to launch the worker process. Schedules next launch attempt if
111 // creation of the process fails. 111 // creation of the process fails.
112 void LaunchWorker(); 112 void LaunchWorker();
113 113
114 // Called to record outcome of a launch attempt: success or failure. 114 // Called to record outcome of a launch attempt: success or failure.
115 void RecordLaunchResult(); 115 void RecordLaunchResult();
116 116
117 // Called by the test to record a successful launch attempt. 117 // Called by the test to record a successful launch attempt.
118 void RecordSuccessfulLaunchForTest(); 118 void RecordSuccessfulLaunchForTest();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 // The handle of the worker process, if launched. 161 // The handle of the worker process, if launched.
162 base::win::ScopedHandle worker_process_; 162 base::win::ScopedHandle worker_process_;
163 163
164 DISALLOW_COPY_AND_ASSIGN(WorkerProcessLauncher); 164 DISALLOW_COPY_AND_ASSIGN(WorkerProcessLauncher);
165 }; 165 };
166 166
167 } // namespace remoting 167 } // namespace remoting
168 168
169 #endif // REMOTING_HOST_WIN_WORKER_PROCESS_LAUNCHER_H_ 169 #endif // REMOTING_HOST_WIN_WORKER_PROCESS_LAUNCHER_H_
OLDNEW
« no previous file with comments | « remoting/host/win/window_station_and_desktop.cc ('k') | remoting/host/win/worker_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698