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 #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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "net/base/net_api.h" | 15 #include "net/base/net_export.h" |
16 #include "net/http/http_version.h" | 16 #include "net/http/http_version.h" |
17 | 17 |
18 class Pickle; | 18 class Pickle; |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class Time; | 21 class Time; |
22 class TimeDelta; | 22 class TimeDelta; |
23 } | 23 } |
24 | 24 |
25 namespace net { | 25 namespace net { |
26 | 26 |
27 // HttpResponseHeaders: parses and holds HTTP response headers. | 27 // HttpResponseHeaders: parses and holds HTTP response headers. |
28 class NET_API HttpResponseHeaders | 28 class NET_EXPORT HttpResponseHeaders |
29 : public base::RefCountedThreadSafe<HttpResponseHeaders> { | 29 : public base::RefCountedThreadSafe<HttpResponseHeaders> { |
30 public: | 30 public: |
31 // Persist options. | 31 // Persist options. |
32 typedef int PersistOptions; | 32 typedef int PersistOptions; |
33 static const PersistOptions PERSIST_RAW = -1; // Raw, unparsed headers. | 33 static const PersistOptions PERSIST_RAW = -1; // Raw, unparsed headers. |
34 static const PersistOptions PERSIST_ALL = 0; // Parsed headers. | 34 static const PersistOptions PERSIST_ALL = 0; // Parsed headers. |
35 static const PersistOptions PERSIST_SANS_COOKIES = 1 << 0; | 35 static const PersistOptions PERSIST_SANS_COOKIES = 1 << 0; |
36 static const PersistOptions PERSIST_SANS_CHALLENGES = 1 << 1; | 36 static const PersistOptions PERSIST_SANS_CHALLENGES = 1 << 1; |
37 static const PersistOptions PERSIST_SANS_HOP_BY_HOP = 1 << 2; | 37 static const PersistOptions PERSIST_SANS_HOP_BY_HOP = 1 << 2; |
38 static const PersistOptions PERSIST_SANS_NON_CACHEABLE = 1 << 3; | 38 static const PersistOptions PERSIST_SANS_NON_CACHEABLE = 1 << 3; |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 341 |
342 // The parsed http version number (not normalized). | 342 // The parsed http version number (not normalized). |
343 HttpVersion parsed_http_version_; | 343 HttpVersion parsed_http_version_; |
344 | 344 |
345 DISALLOW_COPY_AND_ASSIGN(HttpResponseHeaders); | 345 DISALLOW_COPY_AND_ASSIGN(HttpResponseHeaders); |
346 }; | 346 }; |
347 | 347 |
348 } // namespace net | 348 } // namespace net |
349 | 349 |
350 #endif // NET_HTTP_HTTP_RESPONSE_HEADERS_H_ | 350 #endif // NET_HTTP_HTTP_RESPONSE_HEADERS_H_ |
OLD | NEW |