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

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.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 WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include "WebFrame.h" 8 #include "WebFrame.h"
9 #include "WebFrameLoadType.h" 9 #include "WebFrameLoadType.h"
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // optionally wrapping around. 80 // optionally wrapping around.
81 virtual WebLocalFrame* traversePreviousLocal(bool wrap) const = 0; 81 virtual WebLocalFrame* traversePreviousLocal(bool wrap) const = 0;
82 virtual WebLocalFrame* traverseNextLocal(bool wrap) const = 0; 82 virtual WebLocalFrame* traverseNextLocal(bool wrap) const = 0;
83 83
84 // Navigation Ping -------------------------------------------------------- 84 // Navigation Ping --------------------------------------------------------
85 85
86 virtual void sendPings(const WebURL& destinationURL) = 0; 86 virtual void sendPings(const WebURL& destinationURL) = 0;
87 87
88 // Navigation ---------------------------------------------------------- 88 // Navigation ----------------------------------------------------------
89 89
90 // Runs beforeunload handlers for this frame and returns the value returned
91 // by handlers.
92 // Note: this may lead to the destruction of the frame.
93 virtual bool dispatchBeforeUnloadEvent(bool isReload) = 0;
94
90 // Returns a WebURLRequest corresponding to the load of the WebHistoryItem. 95 // Returns a WebURLRequest corresponding to the load of the WebHistoryItem.
91 virtual WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebCache Policy) const = 0; 96 virtual WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebCache Policy) const = 0;
92 97
93 // Returns a WebURLRequest corresponding to the reload of the current 98 // Returns a WebURLRequest corresponding to the reload of the current
94 // HistoryItem. 99 // HistoryItem.
95 virtual WebURLRequest requestForReload(WebFrameLoadType, 100 virtual WebURLRequest requestForReload(WebFrameLoadType,
96 const WebURL& overrideURL = WebURL()) const = 0; 101 const WebURL& overrideURL = WebURL()) const = 0;
97 102
98 // Load the given URL. For history navigations, a valid WebHistoryItem 103 // Load the given URL. For history navigations, a valid WebHistoryItem
99 // should be given, as well as a WebHistoryLoadType. 104 // should be given, as well as a WebHistoryLoadType.
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // to call these on a WebLocalFrame. 333 // to call these on a WebLocalFrame.
329 bool isWebLocalFrame() const override = 0; 334 bool isWebLocalFrame() const override = 0;
330 WebLocalFrame* toWebLocalFrame() override = 0; 335 WebLocalFrame* toWebLocalFrame() override = 0;
331 bool isWebRemoteFrame() const override = 0; 336 bool isWebRemoteFrame() const override = 0;
332 WebRemoteFrame* toWebRemoteFrame() override = 0; 337 WebRemoteFrame* toWebRemoteFrame() override = 0;
333 }; 338 };
334 339
335 } // namespace blink 340 } // namespace blink
336 341
337 #endif // WebLocalFrame_h 342 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698