OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_manager.h" | 5 #include "net/base/sdch_manager.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "crypto/sha2.h" | 12 #include "crypto/sha2.h" |
13 #include "net/base/registry_controlled_domain.h" | 13 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
14 #include "net/url_request/url_request_http_job.h" | 14 #include "net/url_request/url_request_http_job.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 //------------------------------------------------------------------------------ | 18 //------------------------------------------------------------------------------ |
19 // static | 19 // static |
20 const size_t SdchManager::kMaxDictionarySize = 1000000; | 20 const size_t SdchManager::kMaxDictionarySize = 1000000; |
21 | 21 |
22 // static | 22 // static |
23 const size_t SdchManager::kMaxDictionaryCount = 20; | 23 const size_t SdchManager::kMaxDictionaryCount = 20; |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 case '/': | 555 case '/': |
556 (*output)[i] = '_'; | 556 (*output)[i] = '_'; |
557 continue; | 557 continue; |
558 default: | 558 default: |
559 continue; | 559 continue; |
560 } | 560 } |
561 } | 561 } |
562 } | 562 } |
563 | 563 |
564 } // namespace net | 564 } // namespace net |
OLD | NEW |