| 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 #include "core/css/RemoteFontFaceSource.h" | 5 #include "core/css/RemoteFontFaceSource.h" |
| 6 | 6 |
| 7 #include "core/css/CSSCustomFontData.h" | 7 #include "core/css/CSSCustomFontData.h" |
| 8 #include "core/css/CSSFontFace.h" | 8 #include "core/css/CSSFontFace.h" |
| 9 #include "core/css/CSSFontSelector.h" | 9 #include "core/css/CSSFontSelector.h" |
| 10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 { | 318 { |
| 319 // interventionResult takes 0-3 values. | 319 // interventionResult takes 0-3 values. |
| 320 int interventionResult = 0; | 320 int interventionResult = 0; |
| 321 if (m_isLongLimitExceeded) | 321 if (m_isLongLimitExceeded) |
| 322 interventionResult |= 1 << 0; | 322 interventionResult |= 1 << 0; |
| 323 if (isTriggered) | 323 if (isTriggered) |
| 324 interventionResult |= 1 << 1; | 324 interventionResult |= 1 << 1; |
| 325 const int boundary = 1 << 2; | 325 const int boundary = 1 << 2; |
| 326 | 326 |
| 327 DEFINE_STATIC_LOCAL(EnumerationHistogram, interventionHistogram, ("WebFont.I
nterventionResult", boundary)); | 327 DEFINE_STATIC_LOCAL(EnumerationHistogram, interventionHistogram, ("WebFont.I
nterventionResult", boundary)); |
| 328 DEFINE_STATIC_LOCAL(EnumerationHistogram, missCachedInterventionHistogram, (
"WebFont.MissCachedInterventionResult", boundary)); | 328 DEFINE_STATIC_LOCAL(EnumerationHistogram, missedCacheInterventionHistogram,
("WebFont.InterventionResult.MissedCache", boundary)); |
| 329 interventionHistogram.count(interventionResult); | 329 interventionHistogram.count(interventionResult); |
| 330 if (isLoadedFromNetwork) | 330 if (isLoadedFromNetwork) |
| 331 missCachedInterventionHistogram.count(interventionResult); | 331 missedCacheInterventionHistogram.count(interventionResult); |
| 332 } | 332 } |
| 333 | 333 |
| 334 } // namespace blink | 334 } // namespace blink |
| OLD | NEW |