summaryrefslogtreecommitdiffstats
path: root/chrome/common/mac/cfbundle_blocker.h
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-13 03:26:08 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-13 03:26:08 +0000
commitf7b46a3a5b833edcd06ae14e624c69f805fbbf64 (patch)
treef0f4a03572531f8231b3492ce31ef6498afd76c2 /chrome/common/mac/cfbundle_blocker.h
parent25b6ff15af404aa0a2d74bdb0171a2cbfd419b1b (diff)
downloadchromium_src-f7b46a3a5b833edcd06ae14e624c69f805fbbf64.zip
chromium_src-f7b46a3a5b833edcd06ae14e624c69f805fbbf64.tar.gz
chromium_src-f7b46a3a5b833edcd06ae14e624c69f805fbbf64.tar.bz2
Allow whitelisted bundles to load in Chrome:
Default Folder X as of CFBundleVersion 4.4.3 MySpeed as of CFBundleVersion 1201 SIMBL (Albert Zeyer's fork) at any CFBundleVersion Smart Scroll as of CFBundleVersion 3.9 This also removes the prohibition on loading SIMBL plug-ins. If a permitted SIMBL is present, it is resposnbile for loading plug-ins and provides the interface for plug-ins to override code. BUG=95045 TEST=These products should now work in Chrome Review URL: http://codereview.chromium.org/8226026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105251 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/mac/cfbundle_blocker.h')
-rw-r--r--chrome/common/mac/cfbundle_blocker.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/common/mac/cfbundle_blocker.h b/chrome/common/mac/cfbundle_blocker.h
index b31d748..bc4aaf1 100644
--- a/chrome/common/mac/cfbundle_blocker.h
+++ b/chrome/common/mac/cfbundle_blocker.h
@@ -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 @@ namespace mac {
// 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