Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2109 return frame()->loader().stateMachine()->isDisplayingInitialEmptyDocument() || frame()->loader().provisionalDocumentLoader() || !frame()->document()->loadEv entFinished(); | 2109 return frame()->loader().stateMachine()->isDisplayingInitialEmptyDocument() || frame()->loader().provisionalDocumentLoader() || !frame()->document()->loadEv entFinished(); |
| 2110 } | 2110 } |
| 2111 | 2111 |
| 2112 bool WebLocalFrameImpl::isResourceLoadInProgress() const | 2112 bool WebLocalFrameImpl::isResourceLoadInProgress() const |
| 2113 { | 2113 { |
| 2114 if (!frame() || !frame()->document()) | 2114 if (!frame() || !frame()->document()) |
| 2115 return false; | 2115 return false; |
| 2116 return frame()->document()->fetcher()->requestCount(); | 2116 return frame()->document()->fetcher()->requestCount(); |
| 2117 } | 2117 } |
| 2118 | 2118 |
| 2119 bool WebLocalFrameImpl::isRedirectOrLocationChangePending() const | |
| 2120 { | |
| 2121 return frame() && (frame()->navigationScheduler().isRedirect() || frame()->n avigationScheduler().locationChangePending()); | |
|
Nate Chapin
2015/08/21 22:38:31
Is there a reason this has to be picky about what
dglazkov
2015/08/21 22:54:53
Good question. For the specific user of the API, i
Nate Chapin
2015/08/21 23:00:29
I think that's preferable, yeah.
| |
| 2122 } | |
| 2123 | |
| 2119 void WebLocalFrameImpl::setCommittedFirstRealLoad() | 2124 void WebLocalFrameImpl::setCommittedFirstRealLoad() |
| 2120 { | 2125 { |
| 2121 ASSERT(frame()); | 2126 ASSERT(frame()); |
| 2122 ensureFrameLoaderHasCommitted(frame()->loader()); | 2127 ensureFrameLoaderHasCommitted(frame()->loader()); |
| 2123 } | 2128 } |
| 2124 | 2129 |
| 2125 void WebLocalFrameImpl::sendOrientationChangeEvent() | 2130 void WebLocalFrameImpl::sendOrientationChangeEvent() |
| 2126 { | 2131 { |
| 2127 if (!frame()) | 2132 if (!frame()) |
| 2128 return; | 2133 return; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2206 } | 2211 } |
| 2207 | 2212 |
| 2208 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const | 2213 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const |
| 2209 { | 2214 { |
| 2210 if (!frame()) | 2215 if (!frame()) |
| 2211 return WebSandboxFlags::None; | 2216 return WebSandboxFlags::None; |
| 2212 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); | 2217 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); |
| 2213 } | 2218 } |
| 2214 | 2219 |
| 2215 } // namespace blink | 2220 } // namespace blink |
| OLD | NEW |