Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Side by Side Diff: Source/bindings/v8/DOMWrapperWorld.h

Issue 14334002: Delete WorldContextHandle in favor of DOMWrapperWorld (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 void makeContextWeak(v8::Handle<v8::Context>); 60 void makeContextWeak(v8::Handle<v8::Context>);
61 void setIsolatedWorldField(v8::Handle<v8::Context>); 61 void setIsolatedWorldField(v8::Handle<v8::Context>);
62 62
63 static DOMWrapperWorld* isolatedWorld(v8::Handle<v8::Context> context) 63 static DOMWrapperWorld* isolatedWorld(v8::Handle<v8::Context> context)
64 { 64 {
65 ASSERT(contextHasCorrectPrototype(context)); 65 ASSERT(contextHasCorrectPrototype(context));
66 return static_cast<DOMWrapperWorld*>(context->GetAlignedPointerFromEmbed derData(v8ContextIsolatedWorld)); 66 return static_cast<DOMWrapperWorld*>(context->GetAlignedPointerFromEmbed derData(v8ContextIsolatedWorld));
67 } 67 }
68 68
69 // Will return null if there is no DOMWrapperWorld representing the given Sc riptExecutionContext. 69 // Will return null if there is no DOMWrapperWorld for the current v8::Conte xt
70 static DOMWrapperWorld* current(ScriptExecutionContext*); 70 static DOMWrapperWorld* current();
71 71
72 // Associates an isolated world (see above for description) with a security 72 // Associates an isolated world (see above for description) with a security
73 // origin. XMLHttpRequest instances used in that world will be considered 73 // origin. XMLHttpRequest instances used in that world will be considered
74 // to come from that origin, not the frame's. 74 // to come from that origin, not the frame's.
75 static void setIsolatedWorldSecurityOrigin(int worldID, PassRefPtr<SecurityO rigin>); 75 static void setIsolatedWorldSecurityOrigin(int worldID, PassRefPtr<SecurityO rigin>);
76 static void clearIsolatedWorldSecurityOrigin(int worldID); 76 static void clearIsolatedWorldSecurityOrigin(int worldID);
77 SecurityOrigin* isolatedWorldSecurityOrigin(); 77 SecurityOrigin* isolatedWorldSecurityOrigin();
78 78
79 // Associated an isolated world with a Content Security Policy. Resources 79 // Associated an isolated world with a Content Security Policy. Resources
80 // embedded into the main world's DOM from script executed in an isolated 80 // embedded into the main world's DOM from script executed in an isolated
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 DOMWrapperWorld* mainThreadNormalWorld(); 124 DOMWrapperWorld* mainThreadNormalWorld();
125 125
126 // FIXME: this is a workaround for a problem in ScriptController 126 // FIXME: this is a workaround for a problem in ScriptController
127 // Do not use this anywhere else!! 127 // Do not use this anywhere else!!
128 DOMWrapperWorld* existingWindowShellWorkaroundWorld(); 128 DOMWrapperWorld* existingWindowShellWorkaroundWorld();
129 129
130 } // namespace WebCore 130 } // namespace WebCore
131 131
132 #endif // DOMWrapperWorld_h 132 #endif // DOMWrapperWorld_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698