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