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

Side by Side Diff: chrome/browser/win/chrome_process_finder.h

Issue 2098713003: Moved a bunch of win-specific files to the new win folder in chrome/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROME_PROCESS_FINDER_WIN_H_ 5 #ifndef CHROME_BROWSER_WIN_CHROME_PROCESS_FINDER_H_
6 #define CHROME_BROWSER_CHROME_PROCESS_FINDER_WIN_H_ 6 #define CHROME_BROWSER_WIN_CHROME_PROCESS_FINDER_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 11
12 namespace base { 12 namespace base {
13 class FilePath; 13 class FilePath;
14 } 14 }
15 15
16 namespace chrome { 16 namespace chrome {
17 namespace win {
sky 2016/06/24 15:58:17 Don't bother with the win namespace here.
Patrick Monette 2016/06/27 17:43:12 Removed.
17 18
18 enum NotifyChromeResult { 19 enum NotifyChromeResult {
19 NOTIFY_SUCCESS, 20 NOTIFY_SUCCESS,
20 NOTIFY_FAILED, 21 NOTIFY_FAILED,
21 NOTIFY_WINDOW_HUNG, 22 NOTIFY_WINDOW_HUNG,
22 }; 23 };
23 24
24 // Finds an already running Chrome window if it exists. 25 // Finds an already running Chrome window if it exists.
25 HWND FindRunningChromeWindow(const base::FilePath& user_data_dir); 26 HWND FindRunningChromeWindow(const base::FilePath& user_data_dir);
26 27
27 // Attempts to send the current command line to an already running instance of 28 // Attempts to send the current command line to an already running instance of
28 // Chrome via a WM_COPYDATA message. 29 // Chrome via a WM_COPYDATA message.
29 // Returns true if a running Chrome is found and successfully notified. 30 // Returns true if a running Chrome is found and successfully notified.
30 // |fast_start| is true when this is being called on the window fast start path. 31 // |fast_start| is true when this is being called on the window fast start path.
31 NotifyChromeResult AttemptToNotifyRunningChrome(HWND remote_window, 32 NotifyChromeResult AttemptToNotifyRunningChrome(HWND remote_window,
32 bool fast_start); 33 bool fast_start);
33 34
34 // Changes the notification timeout to |new_timeout|, returns the old timeout. 35 // Changes the notification timeout to |new_timeout|, returns the old timeout.
35 base::TimeDelta SetNotificationTimeoutForTesting(base::TimeDelta new_timeout); 36 base::TimeDelta SetNotificationTimeoutForTesting(base::TimeDelta new_timeout);
36 37
38 } // namespace win
37 } // namespace chrome 39 } // namespace chrome
38 40
39 #endif // CHROME_BROWSER_CHROME_PROCESS_FINDER_WIN_H_ 41 #endif // CHROME_BROWSER_WIN_CHROME_PROCESS_FINDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/win/chrome_elf_init_unittest.cc ('k') | chrome/browser/win/chrome_process_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698