OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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 CHROME_COMMON_MAC_CFBUNDLE_BLOCKER_H_ |
| 6 #define CHROME_COMMON_MAC_CFBUNDLE_BLOCKER_H_ |
| 7 #pragma once |
| 8 |
| 9 namespace chrome { |
| 10 namespace common { |
| 11 namespace mac { |
| 12 |
| 13 // Arranges to block loading of some third-party plug-in code that might try |
| 14 // to inject itself into the process. Modules loaded by CFBundle are blocked |
| 15 // if located within specific directories. Because NSBundle uses CFBundle |
| 16 // behind the scenes, this also blocks modules loaded by NSBundle when located |
| 17 // in those same specific directories. |
| 18 // |
| 19 // Blocked modules include input managers, contextual menu items, and |
| 20 // scripting additions installed in per-user (~/Library), per-machine |
| 21 // (/Library), or network (/Network/Library) locations. Modules installed in |
| 22 // the operating system location (/System/Library) are never blocked. |
| 23 // |
| 24 // This mechanism does not prevent CFBundle (or NSBundle) objects from being |
| 25 // created, but it does block them from loading modules into the process. |
| 26 void EnableCFBundleBlocker(); |
| 27 |
| 28 } // namespace mac |
| 29 } // namespace common |
| 30 } // namespace chrome |
| 31 |
| 32 #endif // CHROME_COMMON_MAC_CFBUNDLE_BLOCKER_H_ |
OLD | NEW |