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

Side by Side Diff: Source/modules/websockets/WebSocketDeflater.h

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #define WebSocketDeflater_h 32 #define WebSocketDeflater_h
33 33
34 #include "wtf/Noncopyable.h" 34 #include "wtf/Noncopyable.h"
35 #include "wtf/OwnPtr.h" 35 #include "wtf/OwnPtr.h"
36 #include "wtf/PassOwnPtr.h" 36 #include "wtf/PassOwnPtr.h"
37 #include "wtf/Vector.h" 37 #include "wtf/Vector.h"
38 38
39 struct z_stream_s; 39 struct z_stream_s;
40 typedef z_stream_s z_stream; 40 typedef z_stream_s z_stream;
41 41
42 namespace WebCore { 42 namespace blink {
43 43
44 class WebSocketDeflater { 44 class WebSocketDeflater {
45 WTF_MAKE_FAST_ALLOCATED; 45 WTF_MAKE_FAST_ALLOCATED;
46 public: 46 public:
47 // This enum is reused for histogram. When this needs to be modified, add a 47 // This enum is reused for histogram. When this needs to be modified, add a
48 // new enum for histogram and convert mode values into values in the new 48 // new enum for histogram and convert mode values into values in the new
49 // enum to keep new data consistent with old one. 49 // enum to keep new data consistent with old one.
50 enum ContextTakeOverMode { 50 enum ContextTakeOverMode {
51 DoNotTakeOverContext, 51 DoNotTakeOverContext,
52 TakeOverContext, 52 TakeOverContext,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 explicit WebSocketInflater(int windowBits); 95 explicit WebSocketInflater(int windowBits);
96 96
97 int m_windowBits; 97 int m_windowBits;
98 Vector<char> m_buffer; 98 Vector<char> m_buffer;
99 OwnPtr<z_stream> m_stream; 99 OwnPtr<z_stream> m_stream;
100 }; 100 };
101 101
102 } 102 }
103 103
104 #endif // WebSocketDeflater_h 104 #endif // WebSocketDeflater_h
OLDNEW
« no previous file with comments | « Source/modules/websockets/WebSocketDeflateFramer.cpp ('k') | Source/modules/websockets/WebSocketDeflater.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698