| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |