OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CLOUD_PRINT_VIRTUAL_DRIVER_WIN_PORT_MONITOR_PORT_MONITOR_H_ | 5 #ifndef CLOUD_PRINT_VIRTUAL_DRIVER_WIN_PORT_MONITOR_PORT_MONITOR_H_ |
6 #define CLOUD_PRINT_VIRTUAL_DRIVER_WIN_PORT_MONITOR_PORT_MONITOR_H_ | 6 #define CLOUD_PRINT_VIRTUAL_DRIVER_WIN_PORT_MONITOR_PORT_MONITOR_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <string> | 9 #include <string> |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/process.h" | 11 #include "base/process.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 | 13 |
14 namespace cloud_print { | 14 namespace cloud_print { |
15 | 15 |
16 // Returns path to be used for launching Chrome. | 16 // Returns path to be used for launching Chrome. |
17 FilePath GetChromeExePath(); | 17 base::FilePath GetChromeExePath(); |
18 | 18 |
19 // Returns path to user profile to be used for launching Chrome. | 19 // Returns path to user profile to be used for launching Chrome. |
20 FilePath GetChromeProfilePath(); | 20 base::FilePath GetChromeProfilePath(); |
21 | 21 |
22 // Implementations for the function pointers in the MONITOR2 structure | 22 // Implementations for the function pointers in the MONITOR2 structure |
23 // returned by InitializePrintMonitor2. The prototypes and behaviors | 23 // returned by InitializePrintMonitor2. The prototypes and behaviors |
24 // are as described in the MONITOR2 documentation from Microsoft. | 24 // are as described in the MONITOR2 documentation from Microsoft. |
25 | 25 |
26 BOOL WINAPI Monitor2EnumPorts(HANDLE, | 26 BOOL WINAPI Monitor2EnumPorts(HANDLE, |
27 wchar_t*, | 27 wchar_t*, |
28 DWORD level, | 28 DWORD level, |
29 BYTE* ports, | 29 BYTE* ports, |
30 DWORD ports_size, | 30 DWORD ports_size, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 extern const wchar_t kChromeExePath[]; | 83 extern const wchar_t kChromeExePath[]; |
84 extern const wchar_t kChromeExePathRegValue[]; | 84 extern const wchar_t kChromeExePathRegValue[]; |
85 extern const wchar_t kChromeProfilePathRegValue[]; | 85 extern const wchar_t kChromeProfilePathRegValue[]; |
86 extern const bool kIsUnittest; | 86 extern const bool kIsUnittest; |
87 | 87 |
88 } // namespace cloud_print | 88 } // namespace cloud_print |
89 | 89 |
90 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_WIN_PORT_MONITOR_PORT_MONITOR_H_ | 90 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_WIN_PORT_MONITOR_PORT_MONITOR_H_ |
91 | 91 |
OLD | NEW |