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

Side by Side Diff: net/http/http_response_headers.h

Issue 7273081: Upstream android net related code (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_response_headers.cc » ('j') | net/url_request/url_request.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
(...skipping 20 matching lines...) Expand all
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;
39 static const PersistOptions PERSIST_SANS_RANGES = 1 << 4; 39 static const PersistOptions PERSIST_SANS_RANGES = 1 << 4;
40 40
41 // Name of response header for x-auto-login.
42 static const char kXAutoLogin[];
43
41 // Parses the given raw_headers. raw_headers should be formatted thus: 44 // Parses the given raw_headers. raw_headers should be formatted thus:
42 // includes the http status response line, each line is \0-terminated, and 45 // includes the http status response line, each line is \0-terminated, and
43 // it's terminated by an empty line (ie, 2 \0s in a row). 46 // it's terminated by an empty line (ie, 2 \0s in a row).
44 // (Note that line continuations should have already been joined; 47 // (Note that line continuations should have already been joined;
45 // see HttpUtil::AssembleRawHeaders) 48 // see HttpUtil::AssembleRawHeaders)
46 // 49 //
47 // NOTE: For now, raw_headers is not really 'raw' in that this constructor is 50 // NOTE: For now, raw_headers is not really 'raw' in that this constructor is
48 // called with a 'NativeMB' string on Windows because WinHTTP does not allow 51 // called with a 'NativeMB' string on Windows because WinHTTP does not allow
49 // us to access the raw byte sequence as sent by a web server. In any case, 52 // us to access the raw byte sequence as sent by a web server. In any case,
50 // HttpResponseHeaders does not perform any encoding changes on the input. 53 // HttpResponseHeaders does not perform any encoding changes on the input.
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 344
342 // The parsed http version number (not normalized). 345 // The parsed http version number (not normalized).
343 HttpVersion parsed_http_version_; 346 HttpVersion parsed_http_version_;
344 347
345 DISALLOW_COPY_AND_ASSIGN(HttpResponseHeaders); 348 DISALLOW_COPY_AND_ASSIGN(HttpResponseHeaders);
346 }; 349 };
347 350
348 } // namespace net 351 } // namespace net
349 352
350 #endif // NET_HTTP_HTTP_RESPONSE_HEADERS_H_ 353 #endif // NET_HTTP_HTTP_RESPONSE_HEADERS_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_response_headers.cc » ('j') | net/url_request/url_request.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698