Chromium Code Reviews
DescriptionChange the WebSocket OpCode constants to an enum
In order to permit them to be used in switch statements, changed the
kOpCode* constants to an enum.
Simplified IsKnownDataOpCode() and IsKnownControlOpCode() since the
compiler can now see the values and so produce optimised output with no
need for bit fiddling.
Also applied style fixes suggested by clang-format and cpplint.py.
BUG=
TEST=net_unittests chromedriver_unittests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201086
Patch Set 1 #
Total comments: 4
Patch Set 2 : Amend comments for IsKnown*OpCode. #
Messages
Total messages: 8 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||