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

Unified Diff: third_party/WebKit/Source/web/WebDocument.cpp

Issue 2514523002: [Extensions] Make port creation synchronous in unload handlers (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/messaging_bindings.cc ('k') | third_party/WebKit/public/web/WebDocument.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebDocument.cpp
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp
index c3bc1c988abec5e05e66686b501b84cb5038aa36..ca949a9df29de4a830a4ad82b4076b0b9e8a27f8 100644
--- a/third_party/WebKit/Source/web/WebDocument.cpp
+++ b/third_party/WebKit/Source/web/WebDocument.cpp
@@ -206,6 +206,14 @@ void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors) {
CSSSelectorWatch::from(*document).watchCSSSelectors(selectors);
}
+bool WebDocument::unloadStartedDoNotUse() const {
+ return constUnwrap<Document>()->unloadStarted();
+}
+
+bool WebDocument::processingBeforeUnloadDoNotUse() const {
+ return constUnwrap<Document>()->processingBeforeUnload();
+}
+
WebReferrerPolicy WebDocument::referrerPolicy() const {
return static_cast<WebReferrerPolicy>(
constUnwrap<Document>()->getReferrerPolicy());
« no previous file with comments | « extensions/renderer/messaging_bindings.cc ('k') | third_party/WebKit/public/web/WebDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698