| 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 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2017 } | 2017 } |
| 2018 | 2018 |
| 2019 bool WebLocalFrameImpl::isLoading() const { | 2019 bool WebLocalFrameImpl::isLoading() const { |
| 2020 if (!frame() || !frame()->document()) | 2020 if (!frame() || !frame()->document()) |
| 2021 return false; | 2021 return false; |
| 2022 return frame()->loader().stateMachine()->isDisplayingInitialEmptyDocument() || | 2022 return frame()->loader().stateMachine()->isDisplayingInitialEmptyDocument() || |
| 2023 frame()->loader().provisionalDocumentLoader() || | 2023 frame()->loader().provisionalDocumentLoader() || |
| 2024 !frame()->document()->loadEventFinished(); | 2024 !frame()->document()->loadEventFinished(); |
| 2025 } | 2025 } |
| 2026 | 2026 |
| 2027 bool WebLocalFrameImpl::isInStopAllLoaders() const { |
| 2028 if (!frame() || !frame()->document()) |
| 2029 return false; |
| 2030 return frame()->loader().isInStopAllLoaders(); |
| 2031 } |
| 2032 |
| 2027 bool WebLocalFrameImpl::isNavigationScheduledWithin( | 2033 bool WebLocalFrameImpl::isNavigationScheduledWithin( |
| 2028 double intervalInSeconds) const { | 2034 double intervalInSeconds) const { |
| 2029 return frame() && | 2035 return frame() && |
| 2030 frame()->navigationScheduler().isNavigationScheduledWithin( | 2036 frame()->navigationScheduler().isNavigationScheduledWithin( |
| 2031 intervalInSeconds); | 2037 intervalInSeconds); |
| 2032 } | 2038 } |
| 2033 | 2039 |
| 2034 void WebLocalFrameImpl::setCommittedFirstRealLoad() { | 2040 void WebLocalFrameImpl::setCommittedFirstRealLoad() { |
| 2035 DCHECK(frame()); | 2041 DCHECK(frame()); |
| 2036 ensureFrameLoaderHasCommitted(frame()->loader()); | 2042 ensureFrameLoaderHasCommitted(frame()->loader()); |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2339 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; | 2345 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; |
| 2340 } else if (metric == "wasAlternateProtocolAvailable") { | 2346 } else if (metric == "wasAlternateProtocolAvailable") { |
| 2341 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; | 2347 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; |
| 2342 } else if (metric == "connectionInfo") { | 2348 } else if (metric == "connectionInfo") { |
| 2343 feature = UseCounter::ChromeLoadTimesConnectionInfo; | 2349 feature = UseCounter::ChromeLoadTimesConnectionInfo; |
| 2344 } | 2350 } |
| 2345 UseCounter::count(frame(), feature); | 2351 UseCounter::count(frame(), feature); |
| 2346 } | 2352 } |
| 2347 | 2353 |
| 2348 } // namespace blink | 2354 } // namespace blink |
| OLD | NEW |