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

Unified Diff: chrome/browser/conflicts/msi_util_win.h

Issue 2854143005: Add a utility class to retrieve the components of an MSI product (Closed)
Patch Set: Rebase Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/conflicts/msi_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/conflicts/msi_util_win.h
diff --git a/chrome/browser/conflicts/msi_util_win.h b/chrome/browser/conflicts/msi_util_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..4045cd6d212b1f17b3dce237c1b4664de15ea49d
--- /dev/null
+++ b/chrome/browser/conflicts/msi_util_win.h
@@ -0,0 +1,26 @@
+// Copyright 2017 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 CHROME_BROWSER_CONFLICTS_MSI_UTIL_WIN_H_
+#define CHROME_BROWSER_CONFLICTS_MSI_UTIL_WIN_H_
+
+#include <vector>
+
+#include "base/callback.h"
+#include "base/strings/string16.h"
+
+class MsiUtil {
+ public:
+ // Using the Microsoft Installer API, retrieves the path of all the components
+ // for a given product. This function should be called on a thread that allows
+ // access to the file system. Returns false if any error occured, including if
+ // the |product_guid| passed is not a GUID.
+ //
+ // Note: Marked virtual to allow mocking.
+ virtual bool GetMsiComponentPaths(
+ const base::string16& product_guid,
+ std::vector<base::string16>* component_paths);
+};
+
+#endif // CHROME_BROWSER_CONFLICTS_MSI_UTIL_WIN_H_
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/conflicts/msi_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698