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

Unified Diff: cloud_print/common/win/cloud_print_utils.h

Issue 2541123003: Resurrect the cloud printer driver. (Closed)
Patch Set: Remove cross-compiling option for the portmon dll. Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cloud_print/common/BUILD.gn ('k') | cloud_print/common/win/cloud_print_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/common/win/cloud_print_utils.h
diff --git a/cloud_print/common/win/cloud_print_utils.h b/cloud_print/common/win/cloud_print_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..39fe017bf6667cfc14683d74c1bf0827e3eb99fc
--- /dev/null
+++ b/cloud_print/common/win/cloud_print_utils.h
@@ -0,0 +1,29 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_
+#define CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_
+
+#include <wtypes.h>
+
+#include "base/strings/string16.h"
+
+namespace cloud_print {
+
+// Similar to the Windows API call GetLastError but returns an HRESULT.
+HRESULT GetLastHResult();
+
+// Convert an HRESULT to a localized string.
+base::string16 GetErrorMessage(HRESULT hr);
+
+// Retrieves a string from the string table of the module that contains the
+// calling code.
+base::string16 LoadLocalString(DWORD id);
+
+// Sets registry value to notify Google Update that product was used.
+void SetGoogleUpdateUsage(const base::string16& product_id);
+
+} // namespace cloud_print
+
+#endif // CLOUD_PRINT_COMMON_CLOUD_PRINT_UTILS_H_
« no previous file with comments | « cloud_print/common/BUILD.gn ('k') | cloud_print/common/win/cloud_print_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698