OLD | NEW |
---|---|
(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 { | |
sky
2013/05/24 16:13:31
This name is too generic for the chrome namespace.
koz (OOO until 15th September)
2013/05/27 00:01:46
Done.
| |
17 NOTIFY_SUCCESS, | |
18 NOTIFY_FAILED, | |
19 NOTIFY_WINDOW_HUNG, | |
20 }; | |
21 | |
22 // Finds an already running Chrome window if it exists. | |
23 HWND FindRunningChromeWindow(const base::FilePath& user_data_dir); | |
24 | |
25 // Attempts to send the current command line to an already running instance of | |
26 // Chrome via a WM_COPYDATA message. | |
27 // Returns true if a running Chrome is found and successfully notified. | |
28 NotifyResult AttemptToNotifyRunningChrome(HWND remote_window); | |
29 | |
30 } // namespace chrome | |
31 | |
32 #endif // CHROME_BROWSER_CHROME_PROCESS_FINDER_WIN_H_ | |
OLD | NEW |