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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoader.h

Issue 2735183003: PlzNavigate: stop navigations when opening a document for write (Closed)
Patch Set: Rebase Created 3 years, 9 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) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
4 * (http://www.torchmobile.com/) 4 * (http://www.torchmobile.com/)
5 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
6 * Copyright (C) 2011 Google Inc. All rights reserved. 6 * Copyright (C) 2011 Google Inc. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 // Note: When a PlzNavigtate navigation is handled by the client, we will 218 // Note: When a PlzNavigtate navigation is handled by the client, we will
219 // have created a dummy provisional DocumentLoader, so this will return true 219 // have created a dummy provisional DocumentLoader, so this will return true
220 // while the client handles the navigation. 220 // while the client handles the navigation.
221 bool hasProvisionalNavigation() const { return provisionalDocumentLoader(); } 221 bool hasProvisionalNavigation() const { return provisionalDocumentLoader(); }
222 222
223 DECLARE_TRACE(); 223 DECLARE_TRACE();
224 224
225 static void setReferrerForFrameRequest(FrameLoadRequest&); 225 static void setReferrerForFrameRequest(FrameLoadRequest&);
226 226
227 void clientDroppedNavigation();
228
227 private: 229 private:
228 void checkTimerFired(TimerBase*); 230 void checkTimerFired(TimerBase*);
229 231
230 bool prepareRequestForThisFrame(FrameLoadRequest&); 232 bool prepareRequestForThisFrame(FrameLoadRequest&);
231 FrameLoadType determineFrameLoadType(const FrameLoadRequest&); 233 FrameLoadType determineFrameLoadType(const FrameLoadRequest&);
232 234
233 SubstituteData defaultSubstituteDataForURL(const KURL&); 235 SubstituteData defaultSubstituteDataForURL(const KURL&);
234 236
235 bool shouldPerformFragmentNavigation(bool isFormSubmission, 237 bool shouldPerformFragmentNavigation(bool isFormSubmission,
236 const String& httpMethod, 238 const String& httpMethod,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 331
330 SandboxFlags m_forcedSandboxFlags; 332 SandboxFlags m_forcedSandboxFlags;
331 333
332 bool m_dispatchingDidClearWindowObjectInMainWorld; 334 bool m_dispatchingDidClearWindowObjectInMainWorld;
333 bool m_protectProvisionalLoader; 335 bool m_protectProvisionalLoader;
334 }; 336 };
335 337
336 } // namespace blink 338 } // namespace blink
337 339
338 #endif // FrameLoader_h 340 #endif // FrameLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698