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

Side by Side Diff: third_party/WebKit/public/web/WebFrame.h

Issue 2628053003: Remove extension group from DOMWrapperWorld. (Closed)
Patch Set: Fix GCCallbackTest Created 3 years, 11 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
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 // Scripting ---------------------------------------------------------- 238 // Scripting ----------------------------------------------------------
239 239
240 // Executes script in the context of the current page. 240 // Executes script in the context of the current page.
241 virtual void executeScript(const WebScriptSource&) = 0; 241 virtual void executeScript(const WebScriptSource&) = 0;
242 242
243 // Executes JavaScript in a new world associated with the web frame. 243 // Executes JavaScript in a new world associated with the web frame.
244 // The script gets its own global scope and its own prototypes for 244 // The script gets its own global scope and its own prototypes for
245 // intrinsic JavaScript objects (String, Array, and so-on). It also 245 // intrinsic JavaScript objects (String, Array, and so-on). It also
246 // gets its own wrappers for all DOM nodes and DOM constructors. 246 // gets its own wrappers for all DOM nodes and DOM constructors.
247 // extensionGroup is an embedder-provided specifier that controls which
248 // v8 extensions are loaded into the new context - see
249 // blink::registerExtension for the corresponding specifier.
250 // 247 //
251 // worldID must be > 0 (as 0 represents the main world). 248 // worldID must be > 0 (as 0 represents the main world).
252 // worldID must be < EmbedderWorldIdLimit, high number used internally. 249 // worldID must be < EmbedderWorldIdLimit, high number used internally.
253 virtual void executeScriptInIsolatedWorld(int worldID, 250 virtual void executeScriptInIsolatedWorld(int worldID,
254 const WebScriptSource* sources, 251 const WebScriptSource* sources,
255 unsigned numSources, 252 unsigned numSources) = 0;
256 int extensionGroup) = 0;
257 253
258 // Associates an isolated world (see above for description) with a security 254 // Associates an isolated world (see above for description) with a security
259 // origin. XMLHttpRequest instances used in that world will be considered 255 // origin. XMLHttpRequest instances used in that world will be considered
260 // to come from that origin, not the frame's. 256 // to come from that origin, not the frame's.
261 virtual void setIsolatedWorldSecurityOrigin(int worldID, 257 virtual void setIsolatedWorldSecurityOrigin(int worldID,
262 const WebSecurityOrigin&) = 0; 258 const WebSecurityOrigin&) = 0;
263 259
264 // Associates a content security policy with an isolated world. This policy 260 // Associates a content security policy with an isolated world. This policy
265 // should be used when evaluating script in the isolated world, and should 261 // should be used when evaluating script in the isolated world, and should
266 // also replace a protected resource's CSP when evaluating resources 262 // also replace a protected resource's CSP when evaluating resources
(...skipping 13 matching lines...) Expand all
280 virtual v8::Local<v8::Value> executeScriptAndReturnValue( 276 virtual v8::Local<v8::Value> executeScriptAndReturnValue(
281 const WebScriptSource&) = 0; 277 const WebScriptSource&) = 0;
282 278
283 // worldID must be > 0 (as 0 represents the main world). 279 // worldID must be > 0 (as 0 represents the main world).
284 // worldID must be < EmbedderWorldIdLimit, high number used internally. 280 // worldID must be < EmbedderWorldIdLimit, high number used internally.
285 // DEPRECATED: Use WebLocalFrame::requestExecuteScriptInIsolatedWorld. 281 // DEPRECATED: Use WebLocalFrame::requestExecuteScriptInIsolatedWorld.
286 virtual void executeScriptInIsolatedWorld( 282 virtual void executeScriptInIsolatedWorld(
287 int worldID, 283 int worldID,
288 const WebScriptSource* sourcesIn, 284 const WebScriptSource* sourcesIn,
289 unsigned numSources, 285 unsigned numSources,
290 int extensionGroup,
291 WebVector<v8::Local<v8::Value>>* results) = 0; 286 WebVector<v8::Local<v8::Value>>* results) = 0;
292 287
293 // Call the function with the given receiver and arguments, bypassing 288 // Call the function with the given receiver and arguments, bypassing
294 // canExecute(). 289 // canExecute().
295 virtual v8::Local<v8::Value> callFunctionEvenIfScriptDisabled( 290 virtual v8::Local<v8::Value> callFunctionEvenIfScriptDisabled(
296 v8::Local<v8::Function>, 291 v8::Local<v8::Function>,
297 v8::Local<v8::Value>, 292 v8::Local<v8::Value>,
298 int argc, 293 int argc,
299 v8::Local<v8::Value> argv[]) = 0; 294 v8::Local<v8::Value> argv[]) = 0;
300 295
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 WebFrame* m_firstChild; 479 WebFrame* m_firstChild;
485 WebFrame* m_lastChild; 480 WebFrame* m_lastChild;
486 481
487 WebFrame* m_opener; 482 WebFrame* m_opener;
488 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; 483 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker;
489 }; 484 };
490 485
491 } // namespace blink 486 } // namespace blink
492 487
493 #endif 488 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebContentSettingsClient.h ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698