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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chrome_process_util.h
diff --git a/chrome/test/chrome_process_util.h b/chrome/test/chrome_process_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..31f3b5f8d84334ecb69978f1ae6212d25c700e43
--- /dev/null
+++ b/chrome/test/chrome_process_util.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_TEST_CHROME_PROCESS_UTIL_H_
+#define CHROME_TEST_CHROME_PROCESS_UTIL_H_
+
+#include <vector>
+
+#include "base/file_path.h"
+#include "base/process_util.h"
+
+typedef std::vector<base::ProcessId> ChromeProcessList;
+
+// Returns PID of browser process running with user data dir |data_dir|.
+// Returns -1 on error.
+base::ProcessId ChromeBrowserProcessId(const FilePath& data_dir);
+
+// Returns a vector of PIDs of chrome processes (main and renderers etc)
+// associated with user data dir |data_dir|. On error returns empty vector.
+ChromeProcessList GetRunningChromeProcesses(const FilePath& data_dir);
+
+// Attempts to terminate all chrome processes associated with |data_dir|.
+void TerminateAllChromeProcesses(const FilePath& data_dir);
+
+#endif // CHROME_TEST_CHROME_PROCESS_UTIL_H_
« 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