| OLD | NEW |
| 1 // Copyright (c) 2012 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 #ifndef NET_HTTP_HTTP_RESPONSE_HEADERS_H_ | 5 #ifndef NET_HTTP_HTTP_RESPONSE_HEADERS_H_ |
| 6 #define NET_HTTP_HTTP_RESPONSE_HEADERS_H_ | 6 #define NET_HTTP_HTTP_RESPONSE_HEADERS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <unordered_set> | 12 #include <unordered_set> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/strings/string_piece.h" | 17 #include "base/strings/string_piece.h" |
| 18 #include "base/time/time.h" |
| 18 #include "net/base/net_export.h" | 19 #include "net/base/net_export.h" |
| 19 #include "net/http/http_version.h" | 20 #include "net/http/http_version.h" |
| 20 #include "net/log/net_log.h" | |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class Pickle; | 23 class Pickle; |
| 24 class PickleIterator; | 24 class PickleIterator; |
| 25 class Time; | 25 class Time; |
| 26 class TimeDelta; | 26 class TimeDelta; |
| 27 class Value; |
| 27 } | 28 } |
| 28 | 29 |
| 29 namespace net { | 30 namespace net { |
| 30 | 31 |
| 31 class HttpByteRange; | 32 class HttpByteRange; |
| 33 class NetLogCaptureMode; |
| 32 | 34 |
| 33 enum ValidationType { | 35 enum ValidationType { |
| 34 VALIDATION_NONE, // The resource is fresh. | 36 VALIDATION_NONE, // The resource is fresh. |
| 35 VALIDATION_ASYNCHRONOUS, // The resource requires async revalidation. | 37 VALIDATION_ASYNCHRONOUS, // The resource requires async revalidation. |
| 36 VALIDATION_SYNCHRONOUS // The resource requires sync revalidation. | 38 VALIDATION_SYNCHRONOUS // The resource requires sync revalidation. |
| 37 }; | 39 }; |
| 38 | 40 |
| 39 // HttpResponseHeaders: parses and holds HTTP response headers. | 41 // HttpResponseHeaders: parses and holds HTTP response headers. |
| 40 class NET_EXPORT HttpResponseHeaders | 42 class NET_EXPORT HttpResponseHeaders |
| 41 : public base::RefCountedThreadSafe<HttpResponseHeaders> { | 43 : public base::RefCountedThreadSafe<HttpResponseHeaders> { |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 428 |
| 427 // The normalized http version (consistent with what GetStatusLine() returns). | 429 // The normalized http version (consistent with what GetStatusLine() returns). |
| 428 HttpVersion http_version_; | 430 HttpVersion http_version_; |
| 429 | 431 |
| 430 DISALLOW_COPY_AND_ASSIGN(HttpResponseHeaders); | 432 DISALLOW_COPY_AND_ASSIGN(HttpResponseHeaders); |
| 431 }; | 433 }; |
| 432 | 434 |
| 433 } // namespace net | 435 } // namespace net |
| 434 | 436 |
| 435 #endif // NET_HTTP_HTTP_RESPONSE_HEADERS_H_ | 437 #endif // NET_HTTP_HTTP_RESPONSE_HEADERS_H_ |
| OLD | NEW |