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

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

Issue 7748042: Merge trunk r97497 and its many dependents to the 14.0.835 branch. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/835/src/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « chrome/common/mac/DEPS ('k') | chrome/common/mac/cfbundle_blocker.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/mac/cfbundle_blocker.h
===================================================================
--- chrome/common/mac/cfbundle_blocker.h (revision 0)
+++ chrome/common/mac/cfbundle_blocker.h (revision 0)
@@ -0,0 +1,32 @@
+// Copyright (c) 2011 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 CHROME_COMMON_MAC_CFBUNDLE_BLOCKER_H_
+#define CHROME_COMMON_MAC_CFBUNDLE_BLOCKER_H_
+#pragma once
+
+namespace chrome {
+namespace common {
+namespace mac {
+
+// Arranges to block loading of some third-party plug-in code that might try
+// to inject itself into the process. Modules loaded by CFBundle are blocked
+// if located within specific directories. Because NSBundle uses CFBundle
+// behind the scenes, this also blocks modules loaded by NSBundle when located
+// in those same specific directories.
+//
+// Blocked modules include input managers, contextual menu items, and
+// scripting additions installed in per-user (~/Library), per-machine
+// (/Library), or network (/Network/Library) locations. Modules installed in
+// the operating system location (/System/Library) are never blocked.
+//
+// This mechanism does not prevent CFBundle (or NSBundle) objects from being
+// created, but it does block them from loading modules into the process.
+void EnableCFBundleBlocker();
+
+} // namespace mac
+} // namespace common
+} // namespace chrome
+
+#endif // CHROME_COMMON_MAC_CFBUNDLE_BLOCKER_H_
Property changes on: chrome/common/mac/cfbundle_blocker.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/common/mac/DEPS ('k') | chrome/common/mac/cfbundle_blocker.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698