{"json_modified": "2016-03-28T07:51:05.891945", "uuid": "def9dccd-9c8e-4ddd-922a-96528b644251", "title": "nsIContentPolicy", "url": "/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIContentPolicy", "tags": ["R\u00e9f\u00e9rence", "NeedsMarkupWork", "Reference", "XPCOM", "Interfaces", "XPCOM Interface Reference", "Interfaces:Scriptable"], "translations": [], "modified": "2015-08-03T09:27:33", "label": "nsIContentPolicy", "localization_tags": [], "locale": "en-US", "id": 2202, "last_edit": "2015-07-29T13:07:29", "summary": "You can observe content that is being loaded into your browser by implementing nsIContentPolicy. This interface can be very useful if you are developing a content-aware plugin (blocking ads or altering the look of content, for example), or if you want to stop or allow user-browsed URLs.", "sections": [{"id": "Method_overview", "title": "Method overview"}, {"id": "Constants", "title": "Constants"}, {"id": "Content_types", "title": "Content types"}, {"id": "Methods", "title": "Methods"}, {"id": "shouldLoad()", "title": "shouldLoad()"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Return_value", "title": "Return value"}, {"id": "shouldProcess()", "title": "shouldProcess()"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Return_value", "title": "Return value"}, {"id": "Example", "title": "Example"}], "slug": "Mozilla/Tech/XPCOM/Reference/Interface/nsIContentPolicy", "review_tags": []}