| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // main world's. | 81 // main world's. |
| 82 // | 82 // |
| 83 // FIXME: Right now, resource injection simply bypasses the main world's | 83 // FIXME: Right now, resource injection simply bypasses the main world's |
| 84 // DOM. More work is necessary to allow the isolated world's policy to be | 84 // DOM. More work is necessary to allow the isolated world's policy to be |
| 85 // applied correctly. | 85 // applied correctly. |
| 86 static void setIsolatedWorldContentSecurityPolicy(int worldID, const String&
policy); | 86 static void setIsolatedWorldContentSecurityPolicy(int worldID, const String&
policy); |
| 87 static void clearIsolatedWorldContentSecurityPolicy(int worldID); | 87 static void clearIsolatedWorldContentSecurityPolicy(int worldID); |
| 88 bool isolatedWorldHasContentSecurityPolicy(); | 88 bool isolatedWorldHasContentSecurityPolicy(); |
| 89 | 89 |
| 90 // Associate a logger with the world identified by worldId (worlId may be 0 | 90 // Associate a logger with the world identified by worldId (worlId may be 0 |
| 91 // identifying the main world). | 91 // identifying the main world). |
| 92 static void setActivityLogger(int worldId, PassOwnPtr<V8DOMActivityLogger>); | 92 static void setActivityLogger(int worldId, PassOwnPtr<V8DOMActivityLogger>); |
| 93 static V8DOMActivityLogger* activityLogger(int worldId); | 93 static V8DOMActivityLogger* activityLogger(int worldId); |
| 94 | 94 |
| 95 bool isMainWorld() const { return m_worldId == mainWorldId; } | 95 bool isMainWorld() const { return m_worldId == mainWorldId; } |
| 96 bool isIsolatedWorld() const { return isIsolatedWorldId(m_worldId); } | 96 bool isIsolatedWorld() const { return isIsolatedWorldId(m_worldId); } |
| 97 | 97 |
| 98 int worldId() const { return m_worldId; } | 98 int worldId() const { return m_worldId; } |
| 99 int extensionGroup() const { return m_extensionGroup; } | 99 int extensionGroup() const { return m_extensionGroup; } |
| 100 DOMDataStore* isolatedWorldDOMDataStore() const | 100 DOMDataStore* isolatedWorldDOMDataStore() const |
| 101 { | 101 { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 122 | 122 |
| 123 DOMWrapperWorld* mainThreadNormalWorld(); | 123 DOMWrapperWorld* mainThreadNormalWorld(); |
| 124 | 124 |
| 125 // FIXME: this is a workaround for a problem in ScriptController | 125 // FIXME: this is a workaround for a problem in ScriptController |
| 126 // Do not use this anywhere else!! | 126 // Do not use this anywhere else!! |
| 127 DOMWrapperWorld* existingWindowShellWorkaroundWorld(); | 127 DOMWrapperWorld* existingWindowShellWorkaroundWorld(); |
| 128 | 128 |
| 129 } // namespace WebCore | 129 } // namespace WebCore |
| 130 | 130 |
| 131 #endif // DOMWrapperWorld_h | 131 #endif // DOMWrapperWorld_h |
| OLD | NEW |