| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 if (!scriptingContentIsAllowed(parserContentPolicy)) | 45 if (!scriptingContentIsAllowed(parserContentPolicy)) |
| 46 return parserContentPolicy; | 46 return parserContentPolicy; |
| 47 return DisallowScriptingContent; | 47 return DisallowScriptingContent; |
| 48 } | 48 } |
| 49 | 49 |
| 50 static inline bool pluginContentIsAllowed(ParserContentPolicy parserContentPolic
y) | 50 static inline bool pluginContentIsAllowed(ParserContentPolicy parserContentPolic
y) |
| 51 { | 51 { |
| 52 return parserContentPolicy != DisallowScriptingAndPluginContent; | 52 return parserContentPolicy != DisallowScriptingAndPluginContent; |
| 53 } | 53 } |
| 54 | 54 |
| 55 static inline ParserContentPolicy allowPluginContent(ParserContentPolicy parserC
ontentPolicy) | |
| 56 { | |
| 57 if (pluginContentIsAllowed(parserContentPolicy)) | |
| 58 return parserContentPolicy; | |
| 59 return DisallowScriptingContent; | |
| 60 } | |
| 61 | |
| 62 } // namespace blink | 55 } // namespace blink |
| 63 | 56 |
| 64 #endif // ParserContentPolicy_h | 57 #endif // ParserContentPolicy_h |
| OLD | NEW |