Chromium Code Reviews| Index: content/public/common/registry_utils_win.h |
| diff --git a/content/public/common/registry_utils_win.h b/content/public/common/registry_utils_win.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7546c1518cf96d759e9dc4e716fdff530dc49102 |
| --- /dev/null |
| +++ b/content/public/common/registry_utils_win.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright 2014 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 CONTENT_PUBLIC_COMMON_REGISTRY_UTILS_WIN_H_ |
| +#define CONTENT_PUBLIC_COMMON_REGISTRY_UTILS_WIN_H_ |
| + |
| +#include "base/strings/string16.h" |
| +#include "content/common/content_export.h" |
| + |
| +#if !defined(OS_WIN) |
| +#error "Windows only header" |
| +#endif |
| + |
| +namespace base { |
| +class FilePath; |
| +} |
| + |
| +namespace content { |
| + |
| +// Windows registry path constants and utility functions. |
|
jam
2014/06/19 16:37:07
since this is generic-windows code with no content
Lei Zhang
2014/06/19 18:12:30
|kRegistryAcrobat| and |kRegistryAcrobatReader| do
Lei Zhang
2014/06/19 18:19:44
base/win/win_util.h seems to discourage stuffing m
Lei Zhang
2014/06/20 06:22:51
I decided to just leave content/ alone.
|
| +// When NPAPI is fully removed, this can be moved into chrome/. |
| + |
| +// The key path and key name required to register applications on Windows such |
| +// that it can be launched from Start->Run just by name (e.g. chrome.exe). |
| +CONTENT_EXPORT extern const base::char16 kRegistryAppsKey[]; |
| +CONTENT_EXPORT extern const base::char16 kRegistryPath[]; |
| + |
| +// The key paths under |kRegistryAppsKey| to look for Adobe Acrobat and |
| +// Acrobat Reader, respectively. |
| +CONTENT_EXPORT extern const base::char16 kRegistryAcrobat[]; |
| +CONTENT_EXPORT extern const base::char16 kRegistryAcrobatReader[]; |
| + |
| +// Gets the installed path for a registered app. Returns true on success and |
| +// write the path for |app| to |out|. |
| +CONTENT_EXPORT bool GetInstalledPath(const base::char16* app, |
| + base::FilePath* out); |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_COMMON_REGISTRY_UTILS_WIN_H_ |