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

Unified Diff: chrome/common/mac/cfbundle_blocker.h

Issue 8226026: Allow whitelisted bundles to load in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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: chrome/common/mac/cfbundle_blocker.h
===================================================================
--- chrome/common/mac/cfbundle_blocker.h (revision 105162)
+++ chrome/common/mac/cfbundle_blocker.h (working copy)
@@ -6,6 +6,12 @@
#define CHROME_COMMON_MAC_CFBUNDLE_BLOCKER_H_
#pragma once
+#if defined(__OBJC__)
+@class NSString;
+#else
+class NSString;
+#endif
+
namespace chrome {
namespace common {
namespace mac {
@@ -25,6 +31,12 @@
// created, but it does block them from loading modules into the process.
void EnableCFBundleBlocker();
+// Returns true if |bundle_id| and |version| identify a bundle that is allowed
+// to be loaded even when found in a blocked directory.
+//
+// Exposed only for testing. Do not call from outside the implementation.
+bool IsBundleAllowed(NSString* bundle_id, NSString* version);
+
} // namespace mac
} // namespace common
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698