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

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

Issue 660863002: [DevTools] Added public method for async execution of scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added deprecated label for not suspendable execute methods Created 6 years, 1 month 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 // Calls window.gc() if it is defined. 293 // Calls window.gc() if it is defined.
294 virtual void collectGarbage() = 0; 294 virtual void collectGarbage() = 0;
295 295
296 // Check if the scripting URL represents a mixed content condition relative 296 // Check if the scripting URL represents a mixed content condition relative
297 // to this frame. 297 // to this frame.
298 virtual bool checkIfRunInsecureContent(const WebURL&) const = 0; 298 virtual bool checkIfRunInsecureContent(const WebURL&) const = 0;
299 299
300 // Executes script in the context of the current page and returns the value 300 // Executes script in the context of the current page and returns the value
301 // that the script evaluated to. 301 // that the script evaluated to.
302 // DEPRECATED: Use WebLocalFrame::requestExecuteScriptAndReturnValue.
302 virtual v8::Handle<v8::Value> executeScriptAndReturnValue( 303 virtual v8::Handle<v8::Value> executeScriptAndReturnValue(
303 const WebScriptSource&) = 0; 304 const WebScriptSource&) = 0;
304 305
305 // worldID must be > 0 (as 0 represents the main world). 306 // worldID must be > 0 (as 0 represents the main world).
306 // worldID must be < EmbedderWorldIdLimit, high number used internally. 307 // worldID must be < EmbedderWorldIdLimit, high number used internally.
308 // DEPRECATED: Use WebLocalFrame::requestExecuteScriptInIsolatedWorld.
307 virtual void executeScriptInIsolatedWorld( 309 virtual void executeScriptInIsolatedWorld(
308 int worldID, const WebScriptSource* sourcesIn, unsigned numSources, 310 int worldID, const WebScriptSource* sourcesIn, unsigned numSources,
309 int extensionGroup, WebVector<v8::Local<v8::Value> >* results) = 0; 311 int extensionGroup, WebVector<v8::Local<v8::Value> >* results) = 0;
310 312
311 // Call the function with the given receiver and arguments, bypassing 313 // Call the function with the given receiver and arguments, bypassing
312 // canExecute(). 314 // canExecute().
313 virtual v8::Handle<v8::Value> callFunctionEvenIfScriptDisabled( 315 virtual v8::Handle<v8::Value> callFunctionEvenIfScriptDisabled(
314 v8::Handle<v8::Function>, 316 v8::Handle<v8::Function>,
315 v8::Handle<v8::Value>, 317 v8::Handle<v8::Value>,
316 int argc, 318 int argc,
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 695 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
694 }; 696 };
695 697
696 #if BLINK_IMPLEMENTATION 698 #if BLINK_IMPLEMENTATION
697 Frame* toCoreFrame(const WebFrame*); 699 Frame* toCoreFrame(const WebFrame*);
698 #endif 700 #endif
699 701
700 } // namespace blink 702 } // namespace blink
701 703
702 #endif 704 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698