| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 | 489 |
| 490 Picture = 521, | 490 Picture = 521, |
| 491 Sizes = 522, | 491 Sizes = 522, |
| 492 SrcsetXDescriptor = 523, | 492 SrcsetXDescriptor = 523, |
| 493 SrcsetWDescriptor = 524, | 493 SrcsetWDescriptor = 524, |
| 494 SelectionContainsNode = 525, | 494 SelectionContainsNode = 525, |
| 495 MediaStreamEnded = 526, | 495 MediaStreamEnded = 526, |
| 496 MixedContentPrivateIPInPublicWebsitePassive = 527, | 496 MixedContentPrivateIPInPublicWebsitePassive = 527, |
| 497 MixedContentPrivateIPInPublicWebsiteActive = 528, | 497 MixedContentPrivateIPInPublicWebsiteActive = 528, |
| 498 XMLExternalResourceLoad = 529, | 498 XMLExternalResourceLoad = 529, |
| 499 MixedContentPrivateHostnameInPublicHostname = 530, |
| 499 | 500 |
| 500 // Add new features immediately above this line. Don't change assigned | 501 // Add new features immediately above this line. Don't change assigned |
| 501 // numbers of any item, and don't reuse removed slots. | 502 // numbers of any item, and don't reuse removed slots. |
| 502 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 503 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 503 // to update the UMA mapping. | 504 // to update the UMA mapping. |
| 504 NumberOfFeatures, // This enum value must be last. | 505 NumberOfFeatures, // This enum value must be last. |
| 505 }; | 506 }; |
| 506 | 507 |
| 507 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 508 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 508 static void count(const Document&, Feature); | 509 static void count(const Document&, Feature); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 | 561 |
| 561 void updateMeasurements(); | 562 void updateMeasurements(); |
| 562 | 563 |
| 563 OwnPtr<BitVector> m_countBits; | 564 OwnPtr<BitVector> m_countBits; |
| 564 BitVector m_CSSFeatureBits; | 565 BitVector m_CSSFeatureBits; |
| 565 }; | 566 }; |
| 566 | 567 |
| 567 } // namespace blink | 568 } // namespace blink |
| 568 | 569 |
| 569 #endif // UseCounter_h | 570 #endif // UseCounter_h |
| OLD | NEW |