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

Side by Side Diff: content/common/resource_request.h

Issue 2654663004: [Not for review] record detailed time breakdown of SW related requests.
Patch Set: add stream uma Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_COMMON_RESOURCE_REQUEST_H_ 5 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_H_
6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_ 6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/optional.h" 12 #include "base/optional.h"
13 #include "base/time/time.h"
13 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
14 #include "content/common/navigation_params.h" 15 #include "content/common/navigation_params.h"
15 #include "content/common/resource_request_body_impl.h" 16 #include "content/common/resource_request_body_impl.h"
16 #include "content/common/service_worker/service_worker_types.h" 17 #include "content/common/service_worker/service_worker_types.h"
17 #include "content/public/common/appcache_info.h" 18 #include "content/public/common/appcache_info.h"
18 #include "content/public/common/previews_state.h" 19 #include "content/public/common/previews_state.h"
19 #include "content/public/common/request_context_frame_type.h" 20 #include "content/public/common/request_context_frame_type.h"
20 #include "content/public/common/request_context_type.h" 21 #include "content/public/common/request_context_type.h"
21 #include "content/public/common/resource_type.h" 22 #include "content/public/common/resource_type.h"
22 #include "net/base/request_priority.h" 23 #include "net/base/request_priority.h"
(...skipping 10 matching lines...) Expand all
33 ResourceRequest(); 34 ResourceRequest();
34 ResourceRequest(const ResourceRequest& request); 35 ResourceRequest(const ResourceRequest& request);
35 ~ResourceRequest(); 36 ~ResourceRequest();
36 37
37 // The request method: GET, POST, etc. 38 // The request method: GET, POST, etc.
38 std::string method; 39 std::string method;
39 40
40 // The absolute requested URL encoded in ASCII per the rules of RFC-2396. 41 // The absolute requested URL encoded in ASCII per the rules of RFC-2396.
41 GURL url; 42 GURL url;
42 43
44 // TimeTicks::Now() when the renderer sent the request to the browser.
45 base::TimeTicks request_start;
46
43 // URL representing the first-party origin for the request, which may be 47 // URL representing the first-party origin for the request, which may be
44 // checked by the third-party cookie blocking policy. This is usually the URL 48 // checked by the third-party cookie blocking policy. This is usually the URL
45 // of the document in the top-level window. Leaving it empty may lead to 49 // of the document in the top-level window. Leaving it empty may lead to
46 // undesired cookie blocking. Third-party cookie blocking can be bypassed by 50 // undesired cookie blocking. Third-party cookie blocking can be bypassed by
47 // setting first_party_for_cookies = url, but this should ideally only be 51 // setting first_party_for_cookies = url, but this should ideally only be
48 // done if there really is no way to determine the correct value. 52 // done if there really is no way to determine the correct value.
49 GURL first_party_for_cookies; 53 GURL first_party_for_cookies;
50 54
51 // The origin of the context which initiated the request, which will be used 55 // The origin of the context which initiated the request, which will be used
52 // for cookie checks like 'First-Party-Only'. 56 // for cookie checks like 'First-Party-Only'.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 bool initiated_in_secure_context = false; 197 bool initiated_in_secure_context = false;
194 198
195 // The response should be downloaded and stored in the network cache, but not 199 // The response should be downloaded and stored in the network cache, but not
196 // sent back to the renderer. 200 // sent back to the renderer.
197 bool download_to_network_cache_only = false; 201 bool download_to_network_cache_only = false;
198 }; 202 };
199 203
200 } // namespace content 204 } // namespace content
201 205
202 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ 206 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/service_worker/service_worker_event_dispatcher.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698