Use blink::WebLocalFrame instead of blink::WebFrame

Move GetDocument method from WebFrame to WebLocalFrame.
https://codereview.chromium.org/2928033002

Move MainWorldScriptContext accessor/method from WebFrame to WebLocalFrame.
https://codereview.chromium.org/2923053002
This commit is contained in:
Aleksei Kuzmin 2017-08-22 02:09:28 +03:00 committed by Cheng Zhao
parent 61797b7802
commit e4d9e12ee5
5 changed files with 13 additions and 9 deletions

View file

@ -107,10 +107,10 @@ class AtomSandboxedRenderViewObserver : public AtomRenderViewObserver {
}
protected:
void EmitIPCEvent(blink::WebFrame* frame,
void EmitIPCEvent(blink::WebLocalFrame* frame,
const base::string16& channel,
const base::ListValue& args) override {
if (!frame || frame->IsWebRemoteFrame())
if (!frame)
return;
auto isolate = blink::MainThreadIsolate();