Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_COMMON_REGISTRY_UTILS_WIN_H_ | |
| 6 #define CONTENT_PUBLIC_COMMON_REGISTRY_UTILS_WIN_H_ | |
| 7 | |
| 8 #include "base/strings/string16.h" | |
| 9 #include "content/common/content_export.h" | |
| 10 | |
| 11 #if !defined(OS_WIN) | |
| 12 #error "Windows only header" | |
| 13 #endif | |
| 14 | |
| 15 namespace base { | |
| 16 class FilePath; | |
| 17 } | |
| 18 | |
| 19 namespace content { | |
| 20 | |
| 21 // 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.
| |
| 22 // When NPAPI is fully removed, this can be moved into chrome/. | |
| 23 | |
| 24 // The key path and key name required to register applications on Windows such | |
| 25 // that it can be launched from Start->Run just by name (e.g. chrome.exe). | |
| 26 CONTENT_EXPORT extern const base::char16 kRegistryAppsKey[]; | |
| 27 CONTENT_EXPORT extern const base::char16 kRegistryPath[]; | |
| 28 | |
| 29 // The key paths under |kRegistryAppsKey| to look for Adobe Acrobat and | |
| 30 // Acrobat Reader, respectively. | |
| 31 CONTENT_EXPORT extern const base::char16 kRegistryAcrobat[]; | |
| 32 CONTENT_EXPORT extern const base::char16 kRegistryAcrobatReader[]; | |
| 33 | |
| 34 // Gets the installed path for a registered app. Returns true on success and | |
| 35 // write the path for |app| to |out|. | |
| 36 CONTENT_EXPORT bool GetInstalledPath(const base::char16* app, | |
| 37 base::FilePath* out); | |
| 38 | |
| 39 } // namespace content | |
| 40 | |
| 41 #endif // CONTENT_PUBLIC_COMMON_REGISTRY_UTILS_WIN_H_ | |
| OLD | NEW |