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

Side by Side Diff: chrome/test/chrome_process_util.h

Issue 54003: Replace chrome_process_filter with chrome_process_util. (Closed)
Patch Set: error handling Created 11 years, 8 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
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_CHROME_PROCESS_UTIL_H_
6 #define CHROME_TEST_CHROME_PROCESS_UTIL_H_
7
8 #include <vector>
9
10 #include "base/file_path.h"
11 #include "base/process_util.h"
12
13 typedef std::vector<base::ProcessId> ChromeProcessList;
14
15 // Returns PID of browser process running with user data dir |data_dir|.
16 // Returns -1 on error.
17 base::ProcessId ChromeBrowserProcessId(const FilePath& data_dir);
18
19 // Returns a vector of PIDs of chrome processes (main and renderers etc)
20 // associated with user data dir |data_dir|. On error returns empty vector.
21 ChromeProcessList GetRunningChromeProcesses(const FilePath& data_dir);
22
23 // Attempts to terminate all chrome processes associated with |data_dir|.
24 void TerminateAllChromeProcesses(const FilePath& data_dir);
25
26 #endif // CHROME_TEST_CHROME_PROCESS_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/test/automated_ui_tests/automated_ui_tests.vcproj ('k') | chrome/test/chrome_process_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698