Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: third_party/WebKit/Source/core/frame/UseCounter.h

Issue 2860093003: Implement device-ram client hints header (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1602 kPluginInstanceAccessFromIsolatedWorld = 1996, 1602 kPluginInstanceAccessFromIsolatedWorld = 1996,
1603 kPluginInstanceAccessFromMainWorld = 1997, 1603 kPluginInstanceAccessFromMainWorld = 1997,
1604 kRequestFullscreenForDialogElement = 1998, 1604 kRequestFullscreenForDialogElement = 1998,
1605 kRequestFullscreenForDialogElementInTopLayer = 1999, 1605 kRequestFullscreenForDialogElementInTopLayer = 1999,
1606 kShowModalForElementInFullscreenStack = 2000, 1606 kShowModalForElementInFullscreenStack = 2000,
1607 kThreeValuedPositionBackground = 2001, 1607 kThreeValuedPositionBackground = 2001,
1608 kThreeValuedPositionBasicShape = 2002, 1608 kThreeValuedPositionBasicShape = 2002,
1609 kThreeValuedPositionGradient = 2003, 1609 kThreeValuedPositionGradient = 2003,
1610 kThreeValuedPositionObjectPosition = 2004, 1610 kThreeValuedPositionObjectPosition = 2004,
1611 kThreeValuedPositionPerspectiveOrigin = 2005, 1611 kThreeValuedPositionPerspectiveOrigin = 2005,
1612 kClientHintsDeviceRAM = 2006,
1612 1613
1613 // Add new features immediately above this line. Don't change assigned 1614 // Add new features immediately above this line. Don't change assigned
1614 // numbers of any item, and don't reuse removed slots. 1615 // numbers of any item, and don't reuse removed slots.
1615 // Also, run update_use_counter_feature_enum.py in 1616 // Also, run update_use_counter_feature_enum.py in
1616 // chromium/src/tools/metrics/histograms/ to update the UMA mapping. 1617 // chromium/src/tools/metrics/histograms/ to update the UMA mapping.
1617 kNumberOfFeatures, // This enum value must be last. 1618 kNumberOfFeatures, // This enum value must be last.
1618 }; 1619 };
1619 1620
1620 // An interface to observe UseCounter changes. Note that this is never 1621 // An interface to observe UseCounter changes. Note that this is never
1621 // notified when the counter is disabled by |m_muteCount| or when |m_context| 1622 // notified when the counter is disabled by |m_muteCount| or when |m_context|
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1719 // Tracks what features/properties need to be reported to the legacy 1720 // Tracks what features/properties need to be reported to the legacy
1720 // histograms. 1721 // histograms.
1721 BitVector feature_bits_; 1722 BitVector feature_bits_;
1722 BitVector css_bits_; 1723 BitVector css_bits_;
1723 } legacy_counter_; 1724 } legacy_counter_;
1724 }; 1725 };
1725 1726
1726 } // namespace blink 1727 } // namespace blink
1727 1728
1728 #endif // UseCounter_h 1729 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698