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

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

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 22 matching lines...) Expand all
33 33
34 #include "platform/Logging.h" 34 #include "platform/Logging.h"
35 #include "wtf/FastMalloc.h" 35 #include "wtf/FastMalloc.h"
36 #include "wtf/HashMap.h" 36 #include "wtf/HashMap.h"
37 #include "wtf/StdLibExtras.h" 37 #include "wtf/StdLibExtras.h"
38 #include "wtf/StringExtras.h" 38 #include "wtf/StringExtras.h"
39 #include "wtf/text/StringHash.h" 39 #include "wtf/text/StringHash.h"
40 #include "wtf/text/WTFString.h" 40 #include "wtf/text/WTFString.h"
41 #include <zlib.h> 41 #include <zlib.h>
42 42
43 namespace WebCore { 43 namespace blink {
44 44
45 static const int defaultMemLevel = 1; 45 static const int defaultMemLevel = 1;
46 static const size_t bufferIncrementUnit = 4096; 46 static const size_t bufferIncrementUnit = 4096;
47 47
48 PassOwnPtr<WebSocketDeflater> WebSocketDeflater::create(int windowBits, ContextT akeOverMode contextTakeOverMode) 48 PassOwnPtr<WebSocketDeflater> WebSocketDeflater::create(int windowBits, ContextT akeOverMode contextTakeOverMode)
49 { 49 {
50 return adoptPtr(new WebSocketDeflater(windowBits, contextTakeOverMode)); 50 return adoptPtr(new WebSocketDeflater(windowBits, contextTakeOverMode));
51 } 51 }
52 52
53 WebSocketDeflater::WebSocketDeflater(int windowBits, ContextTakeOverMode context TakeOverMode) 53 WebSocketDeflater::WebSocketDeflater(int windowBits, ContextTakeOverMode context TakeOverMode)
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 ASSERT(consumedSoFar == strippedLength); 224 ASSERT(consumedSoFar == strippedLength);
225 225
226 return true; 226 return true;
227 } 227 }
228 228
229 void WebSocketInflater::reset() 229 void WebSocketInflater::reset()
230 { 230 {
231 m_buffer.clear(); 231 m_buffer.clear();
232 } 232 }
233 233
234 } // namespace WebCore 234 } // namespace blink
235 235
OLDNEW
« no previous file with comments | « Source/modules/websockets/WebSocketDeflater.h ('k') | Source/modules/websockets/WebSocketDeflaterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698