| 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_REQUEST_INFO_H__ | 5 #ifndef NET_HTTP_HTTP_REQUEST_INFO_H__ |
| 6 #define NET_HTTP_HTTP_REQUEST_INFO_H__ | 6 #define NET_HTTP_HTTP_REQUEST_INFO_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "googleurl/src/gurl.h" | |
| 12 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
| 13 #include "net/base/privacy_mode.h" | 12 #include "net/base/privacy_mode.h" |
| 14 #include "net/http/http_request_headers.h" | 13 #include "net/http/http_request_headers.h" |
| 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 | 17 |
| 18 class UploadDataStream; | 18 class UploadDataStream; |
| 19 | 19 |
| 20 struct NET_EXPORT HttpRequestInfo { | 20 struct NET_EXPORT HttpRequestInfo { |
| 21 enum RequestMotivation{ | 21 enum RequestMotivation{ |
| 22 // TODO(mbelshe): move these into Client Socket. | 22 // TODO(mbelshe): move these into Client Socket. |
| 23 PRECONNECT_MOTIVATED, // Request was motivated by a prefetch. | 23 PRECONNECT_MOTIVATED, // Request was motivated by a prefetch. |
| 24 OMNIBOX_MOTIVATED, // Request was motivated by the omnibox. | 24 OMNIBOX_MOTIVATED, // Request was motivated by the omnibox. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 54 uint64 request_id; | 54 uint64 request_id; |
| 55 | 55 |
| 56 // If enabled, then request must be sent over connection that cannot be | 56 // If enabled, then request must be sent over connection that cannot be |
| 57 // tracked by the server (e.g. without channel id). | 57 // tracked by the server (e.g. without channel id). |
| 58 PrivacyMode privacy_mode; | 58 PrivacyMode privacy_mode; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace net | 61 } // namespace net |
| 62 | 62 |
| 63 #endif // NET_HTTP_HTTP_REQUEST_INFO_H__ | 63 #endif // NET_HTTP_HTTP_REQUEST_INFO_H__ |
| OLD | NEW |