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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 2339683006: [Blink] Modify SuspendableScriptExecutor to take a v8::Function (Closed)
Patch Set: polish Created 4 years, 3 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 int extensionGroup) override; 103 int extensionGroup) override;
104 void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOrigin&) o verride; 104 void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOrigin&) o verride;
105 void setIsolatedWorldContentSecurityPolicy(int worldID, const WebString&) ov erride; 105 void setIsolatedWorldContentSecurityPolicy(int worldID, const WebString&) ov erride;
106 void setIsolatedWorldHumanReadableName(int worldID, const WebString&) overri de; 106 void setIsolatedWorldHumanReadableName(int worldID, const WebString&) overri de;
107 void addMessageToConsole(const WebConsoleMessage&) override; 107 void addMessageToConsole(const WebConsoleMessage&) override;
108 void collectGarbage() override; 108 void collectGarbage() override;
109 v8::Local<v8::Value> executeScriptAndReturnValue( 109 v8::Local<v8::Value> executeScriptAndReturnValue(
110 const WebScriptSource&) override; 110 const WebScriptSource&) override;
111 void requestExecuteScriptAndReturnValue( 111 void requestExecuteScriptAndReturnValue(
112 const WebScriptSource&, bool userGesture, WebScriptExecutionCallback*) o verride; 112 const WebScriptSource&, bool userGesture, WebScriptExecutionCallback*) o verride;
113 void requestExecuteV8Function(
114 v8::Local<v8::Function>, v8::Local<v8::Value> receiver, int argc, v8::Lo cal<v8::Value> argv[], WebScriptExecutionCallback*) override;
113 void executeScriptInIsolatedWorld( 115 void executeScriptInIsolatedWorld(
114 int worldID, const WebScriptSource* sourcesIn, unsigned numSources, 116 int worldID, const WebScriptSource* sourcesIn, unsigned numSources,
115 int extensionGroup, WebVector<v8::Local<v8::Value>>* results) override; 117 int extensionGroup, WebVector<v8::Local<v8::Value>>* results) override;
116 void requestExecuteScriptInIsolatedWorld( 118 void requestExecuteScriptInIsolatedWorld(
117 int worldID, const WebScriptSource* sourceIn, unsigned numSources, 119 int worldID, const WebScriptSource* sourceIn, unsigned numSources,
118 int extensionGroup, bool userGesture, WebScriptExecutionCallback*) overr ide; 120 int extensionGroup, bool userGesture, WebScriptExecutionCallback*) overr ide;
119 v8::Local<v8::Value> callFunctionEvenIfScriptDisabled( 121 v8::Local<v8::Value> callFunctionEvenIfScriptDisabled(
120 v8::Local<v8::Function>, 122 v8::Local<v8::Function>,
121 v8::Local<v8::Value>, 123 v8::Local<v8::Value>,
122 int argc, 124 int argc,
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // Accomplish that by keeping a self-referential Persistent<>. It is 394 // Accomplish that by keeping a self-referential Persistent<>. It is
393 // cleared upon close(). 395 // cleared upon close().
394 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; 396 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive;
395 }; 397 };
396 398
397 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 399 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
398 400
399 } // namespace blink 401 } // namespace blink
400 402
401 #endif 403 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698