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

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

Issue 1890493002: PlzNavigate: properly execute BeforeUnload on renderer initiated navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + fixed issue with layout test Created 4 years, 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebRemoteFrameImpl_h 5 #ifndef WebRemoteFrameImpl_h
6 #define WebRemoteFrameImpl_h 6 #define WebRemoteFrameImpl_h
7 7
8 #include "core/frame/RemoteFrame.h" 8 #include "core/frame/RemoteFrame.h"
9 #include "platform/heap/SelfKeepAlive.h" 9 #include "platform/heap/SelfKeepAlive.h"
10 #include "public/web/WebRemoteFrame.h" 10 #include "public/web/WebRemoteFrame.h"
(...skipping 28 matching lines...) Expand all
39 WebSize scrollOffset() const override; 39 WebSize scrollOffset() const override;
40 void setScrollOffset(const WebSize&) override; 40 void setScrollOffset(const WebSize&) override;
41 WebSize contentsSize() const override; 41 WebSize contentsSize() const override;
42 bool hasVisibleContent() const override; 42 bool hasVisibleContent() const override;
43 WebRect visibleContentRect() const override; 43 WebRect visibleContentRect() const override;
44 bool hasHorizontalScrollbar() const override; 44 bool hasHorizontalScrollbar() const override;
45 bool hasVerticalScrollbar() const override; 45 bool hasVerticalScrollbar() const override;
46 WebView* view() const override; 46 WebView* view() const override;
47 WebDocument document() const override; 47 WebDocument document() const override;
48 WebPerformance performance() const override; 48 WebPerformance performance() const override;
49 bool dispatchBeforeUnloadEvent() override;
50 void dispatchUnloadEvent() override; 49 void dispatchUnloadEvent() override;
51 void executeScript(const WebScriptSource&) override; 50 void executeScript(const WebScriptSource&) override;
52 void executeScriptInIsolatedWorld( 51 void executeScriptInIsolatedWorld(
53 int worldID, const WebScriptSource* sources, unsigned numSources, 52 int worldID, const WebScriptSource* sources, unsigned numSources,
54 int extensionGroup) override; 53 int extensionGroup) override;
55 void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOrigin&) o verride; 54 void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOrigin&) o verride;
56 void setIsolatedWorldContentSecurityPolicy(int worldID, const WebString&) ov erride; 55 void setIsolatedWorldContentSecurityPolicy(int worldID, const WebString&) ov erride;
57 void addMessageToConsole(const WebConsoleMessage&) override; 56 void addMessageToConsole(const WebConsoleMessage&) override;
58 void collectGarbage() override; 57 void collectGarbage() override;
59 v8::Local<v8::Value> executeScriptAndReturnValue( 58 v8::Local<v8::Value> executeScriptAndReturnValue(
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // Accomplish that by keeping a self-referential Persistent<>. It is 186 // Accomplish that by keeping a self-referential Persistent<>. It is
188 // cleared upon close(). 187 // cleared upon close().
189 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; 188 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive;
190 }; 189 };
191 190
192 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame()); 191 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame());
193 192
194 } // namespace blink 193 } // namespace blink
195 194
196 #endif // WebRemoteFrameImpl_h 195 #endif // WebRemoteFrameImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698