OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/base/sdch_filter.h" | 5 #include "net/base/sdch_filter.h" |
6 | 6 |
7 #include <limits.h> | 7 #include <limits.h> |
8 #include <ctype.h> | 8 #include <ctype.h> |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/file_util.h" | |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
14 #include "net/base/sdch_manager.h" | 13 #include "net/base/sdch_manager.h" |
15 | 14 |
16 #include "sdch/open-vcdiff/src/google/vcdecoder.h" | 15 #include "sdch/open-vcdiff/src/google/vcdecoder.h" |
17 | 16 |
18 namespace net { | 17 namespace net { |
19 | 18 |
20 SdchFilter::SdchFilter(const FilterContext& filter_context) | 19 SdchFilter::SdchFilter(const FilterContext& filter_context) |
21 : filter_context_(filter_context), | 20 : filter_context_(filter_context), |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 dest_buffer_excess_index_ += amount; | 380 dest_buffer_excess_index_ += amount; |
382 if (dest_buffer_excess_.size() <= dest_buffer_excess_index_) { | 381 if (dest_buffer_excess_.size() <= dest_buffer_excess_index_) { |
383 DCHECK(dest_buffer_excess_.size() == dest_buffer_excess_index_); | 382 DCHECK(dest_buffer_excess_.size() == dest_buffer_excess_index_); |
384 dest_buffer_excess_.clear(); | 383 dest_buffer_excess_.clear(); |
385 dest_buffer_excess_index_ = 0; | 384 dest_buffer_excess_index_ = 0; |
386 } | 385 } |
387 return amount; | 386 return amount; |
388 } | 387 } |
389 | 388 |
390 } // namespace net | 389 } // namespace net |
OLD | NEW |