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

Unified Diff: content/public/common/registry_utils_win.h

Issue 324593004: Windows: Add an "Open in Adobe Reader" menu item for PDF files in the download shelf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 6 years, 6 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
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_

Powered by Google App Engine
This is Rietveld 408576698