diff options
author | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 19:49:35 +0000 |
---|---|---|
committer | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 19:49:35 +0000 |
commit | 91240c947358b33cc19c0923a06d116ab36737dd (patch) | |
tree | 7897c99ad9b41d7735c7a42e0ea75fe6f76760b3 /o3d/import/cross/gz_compressor.h | |
parent | 2e25a9f4152a90a179ad37206bff79e1198379d7 (diff) | |
download | chromium_src-91240c947358b33cc19c0923a06d116ab36737dd.zip chromium_src-91240c947358b33cc19c0923a06d116ab36737dd.tar.gz chromium_src-91240c947358b33cc19c0923a06d116ab36737dd.tar.bz2 |
Asynchronous tick now uses NPN_PluginAsyncCall.URL streaming callbacks are now also asynchronous.Implemented NPN_PluginAsyncCall for IE.Allowed WM_PAINT handler to be reentered because it no longer calls into the browser (except to schedule an asynchronous tick if none is pending).Fixed a bug where the EventManager would crash if an event callback called cleanUp on the client.Cleanup destroys all the packs. Doing this in NPP_Destroy seems to make Chrome timeout and fail to load the next page.Tar and GZ decoding happens on a new thread.
Review URL: http://codereview.chromium.org/155733
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22305 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/import/cross/gz_compressor.h')
-rw-r--r-- | o3d/import/cross/gz_compressor.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/o3d/import/cross/gz_compressor.h b/o3d/import/cross/gz_compressor.h index bdf13a1..43dbf0f 100644 --- a/o3d/import/cross/gz_compressor.h +++ b/o3d/import/cross/gz_compressor.h @@ -49,18 +49,19 @@ class GzCompressor : public StreamProcessor { explicit GzCompressor(StreamProcessor *callback_client); virtual ~GzCompressor(); - virtual int ProcessBytes(MemoryReadStream *stream, size_t bytes_to_process); + virtual Status ProcessBytes(MemoryReadStream *stream, + size_t bytes_to_process); // Must call when all bytes to compress have been sent (with ProcessBytes) - void Finalize(); + virtual void Close(bool success); private: - int CompressBytes(MemoryReadStream *stream, - size_t bytes_to_process, - bool flush); + Status CompressBytes(MemoryReadStream *stream, + size_t bytes_to_process, + bool flush); z_stream strm_; // low-level zlib state - int init_result_; + bool initialized_; bool stream_is_closed_; StreamProcessor *callback_client_; |