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

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

Issue 14749006: [WIP] Pretend-to-preconnect for {mouse,touch}-event triggers. Base URL: https://chromium.googlesource.com/chromium/src.git@preconnect-pretend
Patch Set: Created 7 years, 7 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
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_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
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
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__
OLDNEW
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_job.cc » ('j') | net/http/http_stream_factory_impl_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698