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

Side by Side Diff: cloud_print/common/win/cloud_print_utils.h

Issue 16511009: Use a direct include of strings headers in cloud_print/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cloud_print/common/win/install_utils.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 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 CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_ 5 #ifndef CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_
6 #define CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_ 6 #define CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_
7 7
8 #include <wtypes.h> 8 #include <wtypes.h>
9 9
10 #include "base/string16.h" 10 #include "base/strings/string16.h"
11 11
12 namespace cloud_print { 12 namespace cloud_print {
13 13
14 // Similar to the Windows API call GetLastError but returns an HRESULT. 14 // Similar to the Windows API call GetLastError but returns an HRESULT.
15 HRESULT GetLastHResult(); 15 HRESULT GetLastHResult();
16 16
17 // Convert an HRESULT to a localized string. 17 // Convert an HRESULT to a localized string.
18 string16 GetErrorMessage(HRESULT hr); 18 string16 GetErrorMessage(HRESULT hr);
19 19
20 // Retrieves a string from the string table of the module that contains the 20 // Retrieves a string from the string table of the module that contains the
21 // calling code. 21 // calling code.
22 string16 LoadLocalString(DWORD id); 22 string16 LoadLocalString(DWORD id);
23 23
24 // Sets registry value to notify Google Update that product was used. 24 // Sets registry value to notify Google Update that product was used.
25 void SetGoogleUpdateUsage(const string16& product_id); 25 void SetGoogleUpdateUsage(const string16& product_id);
26 26
27 } // namespace cloud_print 27 } // namespace cloud_print
28 28
29 #endif // CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_ 29 #endif // CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_
30 30
OLDNEW
« no previous file with comments | « no previous file | cloud_print/common/win/install_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698