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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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_BROWSER_CHROME_PROCESS_FINDER_WIN_H_
6 #define CHROME_BROWSER_CHROME_PROCESS_FINDER_WIN_H_
7
8 #include <windows.h>
9
10 namespace base {
11 class FilePath;
12 }
13
14 namespace chrome {
15
16 enum NotifyResult {
17 NOTIFY_SUCCESS,
18 NOTIFY_FAILED,
19 NOTIFY_WINDOW_HUNG,
20 };
21
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.
22
23 // Finds an already running Chrome window if it exists.
24 HWND FindRunningChromeWindow(const base::FilePath& user_data_dir);
25
26 // Attempts to send the current command line to an already running instance of
27 // Chrome via a WM_COPYDATA message.
28 // Returns true if a running Chrome is found and successfully notified.
29 NotifyResult AttemptToNotifyRunningChrome(HWND remote_window);
30
31 } // namespace chrome
32
33 #endif // CHROME_BROWSER_CHROME_PROCESS_FINDER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698