Changeset 215060 in webkit


Ignore:
Timestamp:
Apr 6, 2017 2:35:09 PM (7 years ago)
Author:
andersca@apple.com
Message:

OptionSet options need to be powers of two
https://bugs.webkit.org/show_bug.cgi?id=170565

Reviewed by Chris Dumez.

Change Cache::Option to be powers of two.

  • NetworkProcess/cache/NetworkCache.h:
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r215046 r215060  
     12017-04-06  Anders Carlsson  <andersca@apple.com>
     2
     3        OptionSet options need to be powers of two
     4        https://bugs.webkit.org/show_bug.cgi?id=170565
     5
     6        Reviewed by Chris Dumez.
     7
     8        Change Cache::Option to be powers of two.
     9
     10        * NetworkProcess/cache/NetworkCache.h:
     11
    1122017-04-06  Youenn Fablet  <youenn@apple.com>
    213
  • trunk/Source/WebKit2/NetworkProcess/cache/NetworkCache.h

    r215044 r215060  
    9797public:
    9898    enum class Option {
    99         EfficacyLogging,
     99        EfficacyLogging = 1 << 0,
    100100        // In testing mode we try to eliminate sources of randomness. Cache does not shrink and there are no read timeouts.
    101         TestingMode,
     101        TestingMode = 1 << 1,
    102102#if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION)
    103         SpeculativeRevalidation,
     103        SpeculativeRevalidation = 1 << 2,
    104104#endif
    105105    };
Note: See TracChangeset for help on using the changeset viewer.