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

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: Addressed comments Created 4 years, 7 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 "public/web/WebRemoteFrame.h" 9 #include "public/web/WebRemoteFrame.h"
10 #include "public/web/WebRemoteFrameClient.h" 10 #include "public/web/WebRemoteFrameClient.h"
(...skipping 27 matching lines...) Expand all
38 WebSize scrollOffset() const override; 38 WebSize scrollOffset() const override;
39 void setScrollOffset(const WebSize&) override; 39 void setScrollOffset(const WebSize&) override;
40 WebSize contentsSize() const override; 40 WebSize contentsSize() const override;
41 bool hasVisibleContent() const override; 41 bool hasVisibleContent() const override;
42 WebRect visibleContentRect() const override; 42 WebRect visibleContentRect() const override;
43 bool hasHorizontalScrollbar() const override; 43 bool hasHorizontalScrollbar() const override;
44 bool hasVerticalScrollbar() const override; 44 bool hasVerticalScrollbar() const override;
45 WebView* view() const override; 45 WebView* view() const override;
46 WebDocument document() const override; 46 WebDocument document() const override;
47 WebPerformance performance() const override; 47 WebPerformance performance() const override;
48 bool dispatchBeforeUnloadEvent() override;
49 void dispatchUnloadEvent() override; 48 void dispatchUnloadEvent() override;
50 void executeScript(const WebScriptSource&) override; 49 void executeScript(const WebScriptSource&) override;
51 void executeScriptInIsolatedWorld( 50 void executeScriptInIsolatedWorld(
52 int worldID, const WebScriptSource* sources, unsigned numSources, 51 int worldID, const WebScriptSource* sources, unsigned numSources,
53 int extensionGroup) override; 52 int extensionGroup) override;
54 void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOrigin&) o verride; 53 void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOrigin&) o verride;
55 void setIsolatedWorldContentSecurityPolicy(int worldID, const WebString&) ov erride; 54 void setIsolatedWorldContentSecurityPolicy(int worldID, const WebString&) ov erride;
56 void addMessageToConsole(const WebConsoleMessage&) override; 55 void addMessageToConsole(const WebConsoleMessage&) override;
57 void collectGarbage() override; 56 void collectGarbage() override;
58 v8::Local<v8::Value> executeScriptAndReturnValue( 57 v8::Local<v8::Value> executeScriptAndReturnValue(
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Accomplish that by keeping a self-referential Persistent<>. It is 183 // Accomplish that by keeping a self-referential Persistent<>. It is
185 // cleared upon close(). 184 // cleared upon close().
186 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; 185 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive;
187 }; 186 };
188 187
189 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame()); 188 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame());
190 189
191 } // namespace blink 190 } // namespace blink
192 191
193 #endif // WebRemoteFrameImpl_h 192 #endif // WebRemoteFrameImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698