OLD | NEW |
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 "WebFrame.h" | 8 #include "WebFrame.h" |
9 #include "WebFrameLoadType.h" | 9 #include "WebFrameLoadType.h" |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Navigation State ------------------------------------------------------- | 84 // Navigation State ------------------------------------------------------- |
85 | 85 |
86 // Returns true if the current frame's load event has not completed. | 86 // Returns true if the current frame's load event has not completed. |
87 virtual bool isLoading() const = 0; | 87 virtual bool isLoading() const = 0; |
88 | 88 |
89 // Returns true if any resource load is currently in progress. Exposed | 89 // Returns true if any resource load is currently in progress. Exposed |
90 // primarily for use in layout tests. You probably want isLoading() | 90 // primarily for use in layout tests. You probably want isLoading() |
91 // instead. | 91 // instead. |
92 virtual bool isResourceLoadInProgress() const = 0; | 92 virtual bool isResourceLoadInProgress() const = 0; |
93 | 93 |
| 94 // Returns true if there is a pending redirect or location change. |
| 95 // This could be caused by: |
| 96 // * an HTTP Refresh header |
| 97 // * an X-Frame-Options header |
| 98 // * the respective http-equiv meta tags |
| 99 // * window.location value being mutated |
| 100 virtual bool isRedirectOrLocationChangePending() const = 0; |
| 101 |
94 // Override the normal rules for whether a load has successfully committed | 102 // Override the normal rules for whether a load has successfully committed |
95 // in this frame. Used to propagate state when this frame has navigated | 103 // in this frame. Used to propagate state when this frame has navigated |
96 // cross process. | 104 // cross process. |
97 virtual void setCommittedFirstRealLoad() = 0; | 105 virtual void setCommittedFirstRealLoad() = 0; |
98 | 106 |
99 // Orientation Changes ---------------------------------------------------- | 107 // Orientation Changes ---------------------------------------------------- |
100 | 108 |
101 // Notify the frame that the screen orientation has changed. | 109 // Notify the frame that the screen orientation has changed. |
102 virtual void sendOrientationChangeEvent() = 0; | 110 virtual void sendOrientationChangeEvent() = 0; |
103 | 111 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // Returns the effective sandbox flags which are inherited from their parent
frame. | 172 // Returns the effective sandbox flags which are inherited from their parent
frame. |
165 virtual WebSandboxFlags effectiveSandboxFlags() const = 0; | 173 virtual WebSandboxFlags effectiveSandboxFlags() const = 0; |
166 | 174 |
167 protected: | 175 protected: |
168 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } | 176 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } |
169 }; | 177 }; |
170 | 178 |
171 } // namespace blink | 179 } // namespace blink |
172 | 180 |
173 #endif // WebLocalFrame_h | 181 #endif // WebLocalFrame_h |
OLD | NEW |