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

Side by Side Diff: Source/core/dom/Document.h

Issue 585873002: Show a warning when using sync xhr. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Document lifecycle enums used for beforeunload event tracking. Created 6 years, 2 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 BeforeUnloadEventInProgress, 893 BeforeUnloadEventInProgress,
894 BeforeUnloadEventCompleted, 894 BeforeUnloadEventCompleted,
895 PageHideInProgress, 895 PageHideInProgress,
896 UnloadEventInProgress, 896 UnloadEventInProgress,
897 UnloadEventHandled 897 UnloadEventHandled
898 }; 898 };
899 bool loadEventStillNeeded() const { return m_loadEventProgress == LoadEventN otRun; } 899 bool loadEventStillNeeded() const { return m_loadEventProgress == LoadEventN otRun; }
900 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn Progress; } 900 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn Progress; }
901 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp leted; } 901 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp leted; }
902 bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgres s; } 902 bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgres s; }
903 bool processingBeforeUnload() const { return m_loadEventProgress == BeforeUn loadEventInProgress; }
kouhei (in TOK) 2014/10/07 23:21:18 Please don't add a new one. I think we can use !un
Mayur Kankanwadi 2014/10/08 10:14:24 unloadStarted even includes PageHideInProgress, wh
kouhei (in TOK) 2014/10/09 06:45:46 Acknowledged.
903 904
904 void setContainsPlugins() { m_containsPlugins = true; } 905 void setContainsPlugins() { m_containsPlugins = true; }
905 bool containsPlugins() const { return m_containsPlugins; } 906 bool containsPlugins() const { return m_containsPlugins; }
906 907
907 virtual bool isContextThread() const OVERRIDE FINAL; 908 virtual bool isContextThread() const OVERRIDE FINAL;
908 virtual bool isJSExecutionForbidden() const OVERRIDE FINAL { return false; } 909 virtual bool isJSExecutionForbidden() const OVERRIDE FINAL { return false; }
909 910
910 bool containsValidityStyleRules() const { return m_containsValidityStyleRule s; } 911 bool containsValidityStyleRules() const { return m_containsValidityStyleRule s; }
911 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true; } 912 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true; }
912 913
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 Node* eventTargetNodeForDocument(Document*); 1411 Node* eventTargetNodeForDocument(Document*);
1411 1412
1412 } // namespace blink 1413 } // namespace blink
1413 1414
1414 #ifndef NDEBUG 1415 #ifndef NDEBUG
1415 // Outside the WebCore namespace for ease of invocation from gdb. 1416 // Outside the WebCore namespace for ease of invocation from gdb.
1416 void showLiveDocumentInstances(); 1417 void showLiveDocumentInstances();
1417 #endif 1418 #endif
1418 1419
1419 #endif // Document_h 1420 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698