[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / cloud_print / common / win / cloud_print_utils.h
blobbc9895c66c65a5f71fdff09bee09049f336516c5
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.
5 #ifndef CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_
6 #define CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_
8 #include <wtypes.h>
10 #include "base/strings/string16.h"
12 namespace cloud_print {
14 // Similar to the Windows API call GetLastError but returns an HRESULT.
15 HRESULT GetLastHResult();
17 // Convert an HRESULT to a localized string.
18 base::string16 GetErrorMessage(HRESULT hr);
20 // Retrieves a string from the string table of the module that contains the
21 // calling code.
22 base::string16 LoadLocalString(DWORD id);
24 // Sets registry value to notify Google Update that product was used.
25 void SetGoogleUpdateUsage(const base::string16& product_id);
27 } // namespace cloud_print
29 #endif // CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_