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

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2428803002: Don't send loading completion callbacks for detaching frames. (Closed)
Patch Set: Remove stray include 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/web/tests/data/parent_detaching_frame.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "WebCompositionUnderline.h" 8 #include "WebCompositionUnderline.h"
9 #include "WebFrame.h" 9 #include "WebFrame.h"
10 #include "WebFrameLoadType.h" 10 #include "WebFrameLoadType.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // On load failure, attempts to make frame's parent rendering fallback content 126 // On load failure, attempts to make frame's parent rendering fallback content
127 // and stop this frame loading. 127 // and stop this frame loading.
128 virtual bool maybeRenderFallbackContent(const WebURLError&) const = 0; 128 virtual bool maybeRenderFallbackContent(const WebURLError&) const = 0;
129 129
130 // Navigation State ------------------------------------------------------- 130 // Navigation State -------------------------------------------------------
131 131
132 // Returns true if the current frame's load event has not completed. 132 // Returns true if the current frame's load event has not completed.
133 virtual bool isLoading() const = 0; 133 virtual bool isLoading() const = 0;
134 134
135 // Returns true if the current frame is detaching/detached. crbug.com/654654
136 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873()
137 const = 0;
138
139 // Returns true if there is a pending redirect or location change 135 // Returns true if there is a pending redirect or location change
140 // within specified interval (in seconds). This could be caused by: 136 // within specified interval (in seconds). This could be caused by:
141 // * an HTTP Refresh header 137 // * an HTTP Refresh header
142 // * an X-Frame-Options header 138 // * an X-Frame-Options header
143 // * the respective http-equiv meta tags 139 // * the respective http-equiv meta tags
144 // * window.location value being mutated 140 // * window.location value being mutated
145 // * CSP policy block 141 // * CSP policy block
146 // * reload 142 // * reload
147 // * form submission 143 // * form submission
148 virtual bool isNavigationScheduledWithin(double intervalInSeconds) const = 0; 144 virtual bool isNavigationScheduledWithin(double intervalInSeconds) const = 0;
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 // to call these on a WebLocalFrame. 450 // to call these on a WebLocalFrame.
455 bool isWebLocalFrame() const override = 0; 451 bool isWebLocalFrame() const override = 0;
456 WebLocalFrame* toWebLocalFrame() override = 0; 452 WebLocalFrame* toWebLocalFrame() override = 0;
457 bool isWebRemoteFrame() const override = 0; 453 bool isWebRemoteFrame() const override = 0;
458 WebRemoteFrame* toWebRemoteFrame() override = 0; 454 WebRemoteFrame* toWebRemoteFrame() override = 0;
459 }; 455 };
460 456
461 } // namespace blink 457 } // namespace blink
462 458
463 #endif // WebLocalFrame_h 459 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/data/parent_detaching_frame.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698