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

Unified Diff: Source/modules/websockets/WebSocketDeflater.h

Issue 15451002: Start collecting two new WebSocket histograms. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/websockets/WebSocketDeflater.h
diff --git a/Source/modules/websockets/WebSocketDeflater.h b/Source/modules/websockets/WebSocketDeflater.h
index 5de5201ce1a449f75f86e999c2a97d17897d181b..25f1bf2c7099395fde2184a2e385e628a45ced4f 100644
--- a/Source/modules/websockets/WebSocketDeflater.h
+++ b/Source/modules/websockets/WebSocketDeflater.h
@@ -44,9 +44,13 @@ namespace WebCore {
class WebSocketDeflater {
WTF_MAKE_FAST_ALLOCATED;
public:
+ // This enum is reused for histogram. When this needs to be modified, add a
+ // new enum for histogram and convert mode values into values in the new
+ // enum to keep new data consistent with old one.
enum ContextTakeOverMode {
DoNotTakeOverContext,
- TakeOverContext
+ TakeOverContext,
+ ContextTakeOverModeMax,
};
static PassOwnPtr<WebSocketDeflater> create(int windowBits, ContextTakeOverMode = TakeOverContext);
« no previous file with comments | « no previous file | Source/modules/websockets/WebSocketHandshake.h » ('j') | Source/modules/websockets/WebSocketHandshake.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698