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

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

Issue 1149113006: Move Pickle to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « net/http/http_response_headers.h ('k') | net/http/http_vary_data.h » ('j') | no next file with comments »
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_INFO_H_ 5 #ifndef NET_HTTP_HTTP_RESPONSE_INFO_H_
6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_ 6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "net/base/host_port_pair.h" 11 #include "net/base/host_port_pair.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 #include "net/http/http_vary_data.h" 13 #include "net/http/http_vary_data.h"
14 #include "net/socket/next_proto.h" 14 #include "net/socket/next_proto.h"
15 #include "net/ssl/ssl_info.h" 15 #include "net/ssl/ssl_info.h"
16 16
17 namespace base {
17 class Pickle; 18 class Pickle;
19 }
18 20
19 namespace net { 21 namespace net {
20 22
21 class AuthChallengeInfo; 23 class AuthChallengeInfo;
22 class HttpResponseHeaders; 24 class HttpResponseHeaders;
23 class IOBufferWithSize; 25 class IOBufferWithSize;
24 class SSLCertRequestInfo; 26 class SSLCertRequestInfo;
25 27
26 class NET_EXPORT HttpResponseInfo { 28 class NET_EXPORT HttpResponseInfo {
27 public: 29 public:
(...skipping 17 matching lines...) Expand all
45 }; 47 };
46 48
47 HttpResponseInfo(); 49 HttpResponseInfo();
48 HttpResponseInfo(const HttpResponseInfo& rhs); 50 HttpResponseInfo(const HttpResponseInfo& rhs);
49 ~HttpResponseInfo(); 51 ~HttpResponseInfo();
50 HttpResponseInfo& operator=(const HttpResponseInfo& rhs); 52 HttpResponseInfo& operator=(const HttpResponseInfo& rhs);
51 // Even though we could get away with the copy ctor and default operator=, 53 // Even though we could get away with the copy ctor and default operator=,
52 // that would prevent us from doing a bunch of forward declaration. 54 // that would prevent us from doing a bunch of forward declaration.
53 55
54 // Initializes from the representation stored in the given pickle. 56 // Initializes from the representation stored in the given pickle.
55 bool InitFromPickle(const Pickle& pickle, bool* response_truncated); 57 bool InitFromPickle(const base::Pickle& pickle, bool* response_truncated);
56 58
57 // Call this method to persist the response info. 59 // Call this method to persist the response info.
58 void Persist(Pickle* pickle, 60 void Persist(base::Pickle* pickle,
59 bool skip_transient_headers, 61 bool skip_transient_headers,
60 bool response_truncated) const; 62 bool response_truncated) const;
61 63
62 // Whether QUIC is used or not. 64 // Whether QUIC is used or not.
63 bool DidUseQuic() const { 65 bool DidUseQuic() const {
64 return connection_info == CONNECTION_INFO_QUIC1_SPDY3; 66 return connection_info == CONNECTION_INFO_QUIC1_SPDY3;
65 } 67 }
66 68
67 // The following is only defined if the request_time member is set. 69 // The following is only defined if the request_time member is set.
68 // If this resource was found in the cache, then this bool is set, and 70 // If this resource was found in the cache, then this bool is set, and
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 scoped_refptr<IOBufferWithSize> metadata; 152 scoped_refptr<IOBufferWithSize> metadata;
151 153
152 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); 154 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto);
153 155
154 static std::string ConnectionInfoToString(ConnectionInfo connection_info); 156 static std::string ConnectionInfoToString(ConnectionInfo connection_info);
155 }; 157 };
156 158
157 } // namespace net 159 } // namespace net
158 160
159 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ 161 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_
OLDNEW
« no previous file with comments | « net/http/http_response_headers.h ('k') | net/http/http_vary_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698