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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.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 /* 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 WebSize scrollOffset() const override; 89 WebSize scrollOffset() const override;
90 void setScrollOffset(const WebSize&) override; 90 void setScrollOffset(const WebSize&) override;
91 WebSize contentsSize() const override; 91 WebSize contentsSize() const override;
92 bool hasVisibleContent() const override; 92 bool hasVisibleContent() const override;
93 WebRect visibleContentRect() const override; 93 WebRect visibleContentRect() const override;
94 bool hasHorizontalScrollbar() const override; 94 bool hasHorizontalScrollbar() const override;
95 bool hasVerticalScrollbar() const override; 95 bool hasVerticalScrollbar() const override;
96 WebView* view() const override; 96 WebView* view() const override;
97 WebDocument document() const override; 97 WebDocument document() const override;
98 WebPerformance performance() const override; 98 WebPerformance performance() const override;
99 bool dispatchBeforeUnloadEvent() override;
100 void dispatchUnloadEvent() override; 99 void dispatchUnloadEvent() override;
101 void executeScript(const WebScriptSource&) override; 100 void executeScript(const WebScriptSource&) override;
102 void executeScriptInIsolatedWorld( 101 void executeScriptInIsolatedWorld(
103 int worldID, const WebScriptSource* sources, unsigned numSources, 102 int worldID, const WebScriptSource* sources, unsigned numSources,
104 int extensionGroup) override; 103 int extensionGroup) override;
105 void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOrigin&) o verride; 104 void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOrigin&) o verride;
106 void setIsolatedWorldContentSecurityPolicy(int worldID, const WebString&) ov erride; 105 void setIsolatedWorldContentSecurityPolicy(int worldID, const WebString&) ov erride;
107 void setIsolatedWorldHumanReadableName(int worldID, const WebString&) overri de; 106 void setIsolatedWorldHumanReadableName(int worldID, const WebString&) overri de;
108 void addMessageToConsole(const WebConsoleMessage&) override; 107 void addMessageToConsole(const WebConsoleMessage&) override;
109 void collectGarbage() override; 108 void collectGarbage() override;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // WebLocalFrame methods: 200 // WebLocalFrame methods:
202 void setAutofillClient(WebAutofillClient*) override; 201 void setAutofillClient(WebAutofillClient*) override;
203 WebAutofillClient* autofillClient() override; 202 WebAutofillClient* autofillClient() override;
204 void setDevToolsAgentClient(WebDevToolsAgentClient*) override; 203 void setDevToolsAgentClient(WebDevToolsAgentClient*) override;
205 WebDevToolsAgent* devToolsAgent() override; 204 WebDevToolsAgent* devToolsAgent() override;
206 void setFrameOwnerProperties(const WebFrameOwnerProperties&) override; 205 void setFrameOwnerProperties(const WebFrameOwnerProperties&) override;
207 WebLocalFrameImpl* localRoot() override; 206 WebLocalFrameImpl* localRoot() override;
208 WebLocalFrame* traversePreviousLocal(bool wrap) const override; 207 WebLocalFrame* traversePreviousLocal(bool wrap) const override;
209 WebLocalFrame* traverseNextLocal(bool wrap) const override; 208 WebLocalFrame* traverseNextLocal(bool wrap) const override;
210 void sendPings(const WebURL& destinationURL) override; 209 void sendPings(const WebURL& destinationURL) override;
210 bool dispatchBeforeUnloadEvent(bool) override;
211 WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebCachePolicy) const override; 211 WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebCachePolicy) const override;
212 WebURLRequest requestForReload(WebFrameLoadType, const WebURL&) const overri de; 212 WebURLRequest requestForReload(WebFrameLoadType, const WebURL&) const overri de;
213 void load(const WebURLRequest&, WebFrameLoadType, const WebHistoryItem&, 213 void load(const WebURLRequest&, WebFrameLoadType, const WebHistoryItem&,
214 WebHistoryLoadType, bool isClientRedirect) override; 214 WebHistoryLoadType, bool isClientRedirect) override;
215 void loadData( 215 void loadData(
216 const WebData&, const WebString& mimeType, const WebString& textEncoding , 216 const WebData&, const WebString& mimeType, const WebString& textEncoding ,
217 const WebURL& baseURL, const WebURL& unreachableURL, bool replace, WebFr ameLoadType, 217 const WebURL& baseURL, const WebURL& unreachableURL, bool replace, WebFr ameLoadType,
218 const WebHistoryItem&, WebHistoryLoadType, bool isClientRedirect) overri de; 218 const WebHistoryItem&, WebHistoryLoadType, bool isClientRedirect) overri de;
219 bool isLoading() const override; 219 bool isLoading() const override;
220 bool isNavigationScheduledWithin(double interval) const override; 220 bool isNavigationScheduledWithin(double interval) const override;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // Accomplish that by keeping a self-referential Persistent<>. It is 392 // Accomplish that by keeping a self-referential Persistent<>. It is
393 // cleared upon close(). 393 // cleared upon close().
394 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; 394 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive;
395 }; 395 };
396 396
397 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 397 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
398 398
399 } // namespace blink 399 } // namespace blink
400 400
401 #endif 401 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698