| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // we cache the world of the initializing window on worldOfInitializ
ingWindow. | 84 // we cache the world of the initializing window on worldOfInitializ
ingWindow. |
| 85 // If there is no initiazing window, worldOfInitializingWindow is 0. | 85 // If there is no initiazing window, worldOfInitializingWindow is 0. |
| 86 return *worldOfInitializingWindow; | 86 return *worldOfInitializingWindow; |
| 87 } | 87 } |
| 88 return world(isolate->GetCurrentContext()); | 88 return world(isolate->GetCurrentContext()); |
| 89 } | 89 } |
| 90 | 90 |
| 91 static DOMWrapperWorld& mainWorld(); | 91 static DOMWrapperWorld& mainWorld(); |
| 92 static DOMWrapperWorld& privateScriptIsolatedWorld(); | 92 static DOMWrapperWorld& privateScriptIsolatedWorld(); |
| 93 | 93 |
| 94 static void setIsolatedWorldHumanReadableName(int worldID, const String&); |
| 95 String isolatedWorldHumanReadableName(); |
| 96 |
| 94 // Associates an isolated world (see above for description) with a security | 97 // Associates an isolated world (see above for description) with a security |
| 95 // origin. XMLHttpRequest instances used in that world will be considered | 98 // origin. XMLHttpRequest instances used in that world will be considered |
| 96 // to come from that origin, not the frame's. | 99 // to come from that origin, not the frame's. |
| 97 static void setIsolatedWorldSecurityOrigin(int worldId, PassRefPtr<SecurityO
rigin>); | 100 static void setIsolatedWorldSecurityOrigin(int worldId, PassRefPtr<SecurityO
rigin>); |
| 98 SecurityOrigin* isolatedWorldSecurityOrigin(); | 101 SecurityOrigin* isolatedWorldSecurityOrigin(); |
| 99 | 102 |
| 100 // Associated an isolated world with a Content Security Policy. Resources | 103 // Associated an isolated world with a Content Security Policy. Resources |
| 101 // embedded into the main world's DOM from script executed in an isolated | 104 // embedded into the main world's DOM from script executed in an isolated |
| 102 // world should be restricted based on the isolated world's DOM, not the | 105 // world should be restricted based on the isolated world's DOM, not the |
| 103 // main world's. | 106 // main world's. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 132 static DOMWrapperWorld* worldOfInitializingWindow; | 135 static DOMWrapperWorld* worldOfInitializingWindow; |
| 133 | 136 |
| 134 const int m_worldId; | 137 const int m_worldId; |
| 135 const int m_extensionGroup; | 138 const int m_extensionGroup; |
| 136 OwnPtr<DOMDataStore> m_domDataStore; | 139 OwnPtr<DOMDataStore> m_domDataStore; |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 } // namespace blink | 142 } // namespace blink |
| 140 | 143 |
| 141 #endif // DOMWrapperWorld_h | 144 #endif // DOMWrapperWorld_h |
| OLD | NEW |