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

Side by Side Diff: cloud_print/virtual_driver/win/virtual_driver_helpers.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « cloud_print/service/service_state.h ('k') | content/browser/appcache/chrome_appcache_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_VIRTUAL_DRIVER_HELPERS_H_ 5 #ifndef CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_
6 #define CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_ 6 #define CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9
9 #include "base/string16.h" 10 #include "base/string16.h"
10 11
12 namespace base {
11 class FilePath; 13 class FilePath;
14 }
12 15
13 namespace cloud_print { 16 namespace cloud_print {
14 17
15 // Returns TRUE if the current OS is 64 bit. 18 // Returns TRUE if the current OS is 64 bit.
16 bool IsSystem64Bit(); 19 bool IsSystem64Bit();
17 20
18 // Convert an HRESULT to a localized string and display it in a message box. 21 // Convert an HRESULT to a localized string and display it in a message box.
19 void DisplayWindowsMessage(HWND hwnd, 22 void DisplayWindowsMessage(HWND hwnd,
20 HRESULT message_id, 23 HRESULT message_id,
21 const string16 &caption); 24 const string16 &caption);
22 25
23 // Similar to the Windows API call GetLastError but returns an HRESULT. 26 // Similar to the Windows API call GetLastError but returns an HRESULT.
24 HRESULT GetLastHResult(); 27 HRESULT GetLastHResult();
25 28
26 // Returns the correct port monitor DLL file name for the current machine. 29 // Returns the correct port monitor DLL file name for the current machine.
27 string16 GetPortMonitorDllName(); 30 string16 GetPortMonitorDllName();
28 31
29 // Gets the standard install path for "version 3" print drivers. 32 // Gets the standard install path for "version 3" print drivers.
30 HRESULT GetPrinterDriverDir(FilePath* path); 33 HRESULT GetPrinterDriverDir(base::FilePath* path);
31 34
32 // Retrieves a string from the string table of the module that contains the 35 // Retrieves a string from the string table of the module that contains the
33 // calling code. 36 // calling code.
34 string16 LoadLocalString(DWORD string_id); 37 string16 LoadLocalString(DWORD string_id);
35 38
36 } // namespace cloud_print 39 } // namespace cloud_print
37 40
38 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_ 41 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_WIN_VIRTUAL_DRIVER_HELPERS_H_
39 42
40 43
41 44
OLDNEW
« no previous file with comments | « cloud_print/service/service_state.h ('k') | content/browser/appcache/chrome_appcache_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698