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

Unified Diff: Source/core/loader/DocumentLoader.h

Issue 790383002: Remove NavigationAction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
Index: Source/core/loader/DocumentLoader.h
diff --git a/Source/core/loader/DocumentLoader.h b/Source/core/loader/DocumentLoader.h
index 3486b3d3a0a97a974b8b10c91e0af5e3f582b94f..1d5f73ce66b65b4121fc5a91a47c740534307c00 100644
--- a/Source/core/loader/DocumentLoader.h
+++ b/Source/core/loader/DocumentLoader.h
@@ -36,7 +36,8 @@
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/loader/DocumentLoadTiming.h"
#include "core/loader/DocumentWriter.h"
-#include "core/loader/NavigationAction.h"
+#include "core/loader/FrameLoaderTypes.h"
+#include "core/loader/NavigationPolicy.h"
#include "core/loader/SubstituteData.h"
#include "platform/network/ResourceError.h"
#include "platform/network/ResourceRequest.h"
@@ -107,9 +108,9 @@ namespace blink {
bool scheduleArchiveLoad(Resource*, const ResourceRequest&);
- bool shouldContinueForNavigationPolicy(const ResourceRequest&, ContentSecurityPolicyDisposition shouldCheckMainWorldContentSecurityPolicy, bool isTransitionNavigation = false);
- const NavigationAction& triggeringAction() const { return m_triggeringAction; }
- void setTriggeringAction(const NavigationAction& action) { m_triggeringAction = action; }
+ bool shouldContinueForNavigationPolicy(const ResourceRequest&, ContentSecurityPolicyDisposition shouldCheckMainWorldContentSecurityPolicy, NavigationPolicy = NavigationPolicyCurrentTab, bool isTransitionNavigation = false);
+ NavigationType navigationType() const { return m_navigationType; }
+ void setNavigationType(NavigationType navigationType) { m_navigationType = navigationType; }
void setDefersLoading(bool);
@@ -196,9 +197,7 @@ namespace blink {
bool m_isClientRedirect;
bool m_replacesCurrentHistoryItem;
- // The action that triggered loading - we keep this around for the
- // benefit of the various policy handlers.
- NavigationAction m_triggeringAction;
+ NavigationType m_navigationType;
OwnPtrWillBePersistent<ArchiveResourceCollection> m_archiveResourceCollection;
RefPtrWillBePersistent<MHTMLArchive> m_archive;

Powered by Google App Engine
This is Rietveld 408576698