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

Unified Diff: chrome/browser/chrome_process_finder_win.h

Issue 14617003: Make chrome.exe rendezvous with existing chrome process earlier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 7 years, 7 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
Index: chrome/browser/chrome_process_finder_win.h
diff --git a/chrome/browser/chrome_process_finder_win.h b/chrome/browser/chrome_process_finder_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..6f1a17d134e94c08cd119645e5181ff35dbdb464
--- /dev/null
+++ b/chrome/browser/chrome_process_finder_win.h
@@ -0,0 +1,33 @@
+// Copyright 2013 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_BROWSER_CHROME_PROCESS_FINDER_WIN_H_
+#define CHROME_BROWSER_CHROME_PROCESS_FINDER_WIN_H_
+
+#include <windows.h>
+
+namespace base {
+class FilePath;
+}
+
+namespace chrome {
+
+enum NotifyResult {
+ NOTIFY_SUCCESS,
+ NOTIFY_FAILED,
+ NOTIFY_WINDOW_HUNG,
+};
+
grt (UTC plus 2) 2013/05/17 03:30:58 nit: remove extra blank line
koz (OOO until 15th September) 2013/05/21 00:38:16 Done.
+
+// Finds an already running Chrome window if it exists.
+HWND FindRunningChromeWindow(const base::FilePath& user_data_dir);
+
+// Attempts to send the current command line to an already running instance of
+// Chrome via a WM_COPYDATA message.
+// Returns true if a running Chrome is found and successfully notified.
+NotifyResult AttemptToNotifyRunningChrome(HWND remote_window);
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_CHROME_PROCESS_FINDER_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698