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

Unified Diff: runtime/bin/filter.h

Issue 2480793002: clang-format runtime/bin (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/filter.h
diff --git a/runtime/bin/filter.h b/runtime/bin/filter.h
index 54693c0e49e06077250e7fef222a0f8d1d64f418..9239d567b964c4ae1706656f350e1f48cb61c01c 100644
--- a/runtime/bin/filter.h
+++ b/runtime/bin/filter.h
@@ -29,7 +29,9 @@ class Filter {
* a delete[] call.
*/
virtual bool Process(uint8_t* data, intptr_t length) = 0;
- virtual intptr_t Processed(uint8_t* buffer, intptr_t length, bool finish,
+ virtual intptr_t Processed(uint8_t* buffer,
+ intptr_t length,
+ bool finish,
bool end) = 0;
static Dart_Handle SetFilterAndCreateFinalizer(Dart_Handle filter,
@@ -56,18 +58,30 @@ class Filter {
class ZLibDeflateFilter : public Filter {
public:
- ZLibDeflateFilter(bool gzip, int32_t level, int32_t window_bits,
- int32_t mem_level, int32_t strategy,
- uint8_t* dictionary, intptr_t dictionary_length, bool raw)
- : gzip_(gzip), level_(level), window_bits_(window_bits),
- mem_level_(mem_level), strategy_(strategy), dictionary_(dictionary),
- dictionary_length_(dictionary_length), raw_(raw), current_buffer_(NULL)
- {}
+ ZLibDeflateFilter(bool gzip,
+ int32_t level,
+ int32_t window_bits,
+ int32_t mem_level,
+ int32_t strategy,
+ uint8_t* dictionary,
+ intptr_t dictionary_length,
+ bool raw)
+ : gzip_(gzip),
+ level_(level),
+ window_bits_(window_bits),
+ mem_level_(mem_level),
+ strategy_(strategy),
+ dictionary_(dictionary),
+ dictionary_length_(dictionary_length),
+ raw_(raw),
+ current_buffer_(NULL) {}
virtual ~ZLibDeflateFilter();
virtual bool Init();
virtual bool Process(uint8_t* data, intptr_t length);
- virtual intptr_t Processed(uint8_t* buffer, intptr_t length, bool finish,
+ virtual intptr_t Processed(uint8_t* buffer,
+ intptr_t length,
+ bool finish,
bool end);
private:
@@ -87,16 +101,22 @@ class ZLibDeflateFilter : public Filter {
class ZLibInflateFilter : public Filter {
public:
- ZLibInflateFilter(int32_t window_bits, uint8_t* dictionary,
- intptr_t dictionary_length, bool raw)
- : window_bits_(window_bits), dictionary_(dictionary),
- dictionary_length_(dictionary_length), raw_(raw), current_buffer_(NULL)
- {}
+ ZLibInflateFilter(int32_t window_bits,
+ uint8_t* dictionary,
+ intptr_t dictionary_length,
+ bool raw)
+ : window_bits_(window_bits),
+ dictionary_(dictionary),
+ dictionary_length_(dictionary_length),
+ raw_(raw),
+ current_buffer_(NULL) {}
virtual ~ZLibInflateFilter();
virtual bool Init();
virtual bool Process(uint8_t* data, intptr_t length);
- virtual intptr_t Processed(uint8_t* buffer, intptr_t length, bool finish,
+ virtual intptr_t Processed(uint8_t* buffer,
+ intptr_t length,
+ bool finish,
bool end);
private:
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698