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" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // circuits that path (of waiting for the renderer to | 26 // circuits that path (of waiting for the renderer to |
27 // do the URL request), and starts loading ASAP. | 27 // do the URL request), and starts loading ASAP. |
28 MOUSE_OVER_MOTIVATED, // Request was motivated by a preconnect | 28 MOUSE_OVER_MOTIVATED, // Request was motivated by a preconnect |
29 // from link mouseover | 29 // from link mouseover |
30 MOUSE_DOWN_MOTIVATED, // Request was motivated by a preconnect | 30 MOUSE_DOWN_MOTIVATED, // Request was motivated by a preconnect |
31 // from link mousedown | 31 // from link mousedown |
32 TAP_UNCONFIRMED_MOTIVATED, // Request was motivated by a preconnect | 32 TAP_UNCONFIRMED_MOTIVATED, // Request was motivated by a preconnect |
33 // from link unconfirmed tap | 33 // from link unconfirmed tap |
34 TAP_DOWN_MOTIVATED, // Request was motivated by a preconnect | 34 TAP_DOWN_MOTIVATED, // Request was motivated by a preconnect |
35 // from link tapdown | 35 // from link tapdown |
| 36 MAX_MOTIVATED, |
36 }; | 37 }; |
37 | 38 |
38 HttpRequestInfo(); | 39 HttpRequestInfo(); |
39 ~HttpRequestInfo(); | 40 ~HttpRequestInfo(); |
40 | 41 |
41 // The requested URL. | 42 // The requested URL. |
42 GURL url; | 43 GURL url; |
43 | 44 |
44 // The method to use (GET, POST, etc.). | 45 // The method to use (GET, POST, etc.). |
45 std::string method; | 46 std::string method; |
(...skipping 11 matching lines...) Expand all Loading... |
57 RequestMotivation motivation; | 58 RequestMotivation motivation; |
58 | 59 |
59 // An optional globally unique identifier for this request for use by the | 60 // An optional globally unique identifier for this request for use by the |
60 // consumer. 0 is invalid. | 61 // consumer. 0 is invalid. |
61 uint64 request_id; | 62 uint64 request_id; |
62 }; | 63 }; |
63 | 64 |
64 } // namespace net | 65 } // namespace net |
65 | 66 |
66 #endif // NET_HTTP_HTTP_REQUEST_INFO_H__ | 67 #endif // NET_HTTP_HTTP_REQUEST_INFO_H__ |
OLD | NEW |