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

Side by Side Diff: base/process/process_iterator.h

Issue 614103004: replace 'virtual ... OVERRIDE' with '... override' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: process base/ Created 6 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // This file contains methods to iterate over processes on the system. 5 // This file contains methods to iterate over processes on the system.
6 6
7 #ifndef BASE_PROCESS_PROCESS_ITERATOR_H_ 7 #ifndef BASE_PROCESS_PROCESS_ITERATOR_H_
8 #define BASE_PROCESS_PROCESS_ITERATOR_H_ 8 #define BASE_PROCESS_PROCESS_ITERATOR_H_
9 9
10 #include <list> 10 #include <list>
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // on the current machine that were started from the given executable 159 // on the current machine that were started from the given executable
160 // name. To use, create an instance and then call NextProcessEntry() 160 // name. To use, create an instance and then call NextProcessEntry()
161 // until it returns false. 161 // until it returns false.
162 class BASE_EXPORT NamedProcessIterator : public ProcessIterator { 162 class BASE_EXPORT NamedProcessIterator : public ProcessIterator {
163 public: 163 public:
164 NamedProcessIterator(const FilePath::StringType& executable_name, 164 NamedProcessIterator(const FilePath::StringType& executable_name,
165 const ProcessFilter* filter); 165 const ProcessFilter* filter);
166 virtual ~NamedProcessIterator(); 166 virtual ~NamedProcessIterator();
167 167
168 protected: 168 protected:
169 virtual bool IncludeEntry() OVERRIDE; 169 bool IncludeEntry() override;
170 170
171 private: 171 private:
172 FilePath::StringType executable_name_; 172 FilePath::StringType executable_name_;
173 173
174 DISALLOW_COPY_AND_ASSIGN(NamedProcessIterator); 174 DISALLOW_COPY_AND_ASSIGN(NamedProcessIterator);
175 }; 175 };
176 176
177 // Returns the number of processes on the machine that are running from the 177 // Returns the number of processes on the machine that are running from the
178 // given executable name. If filter is non-null, then only processes selected 178 // given executable name. If filter is non-null, then only processes selected
179 // by the filter will be counted. 179 // by the filter will be counted.
180 BASE_EXPORT int GetProcessCount(const FilePath::StringType& executable_name, 180 BASE_EXPORT int GetProcessCount(const FilePath::StringType& executable_name,
181 const ProcessFilter* filter); 181 const ProcessFilter* filter);
182 182
183 } // namespace base 183 } // namespace base
184 184
185 #endif // BASE_PROCESS_PROCESS_ITERATOR_H_ 185 #endif // BASE_PROCESS_PROCESS_ITERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698