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

Side by Side Diff: components/domain_reliability/beacon.h

Issue 1088933007: Domain Reliability: Add was_proxied field to beacons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | components/domain_reliability/beacon.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_ 5 #ifndef COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_
6 #define COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_ 6 #define COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 21 matching lines...) Expand all
32 // The domain that the beacon is reporting on, if included. 32 // The domain that the beacon is reporting on, if included.
33 std::string domain; 33 std::string domain;
34 // The resource name that the beacon is reporting on, if included. 34 // The resource name that the beacon is reporting on, if included.
35 std::string resource; 35 std::string resource;
36 // Status string (e.g. "ok", "dns.nxdomain", "http.403"). 36 // Status string (e.g. "ok", "dns.nxdomain", "http.403").
37 std::string status; 37 std::string status;
38 // Net error code. Encoded as a string in the final JSON. 38 // Net error code. Encoded as a string in the final JSON.
39 int chrome_error; 39 int chrome_error;
40 // IP address of the server the request went to. 40 // IP address of the server the request went to.
41 std::string server_ip; 41 std::string server_ip;
42 // Whether the request went through a proxy. If true, |server_ip| will be
43 // empty.
44 bool was_proxied;
42 // Protocol used to make the request. 45 // Protocol used to make the request.
43 std::string protocol; 46 std::string protocol;
44 // HTTP response code returned by the server, or -1 if none was received. 47 // HTTP response code returned by the server, or -1 if none was received.
45 int http_response_code; 48 int http_response_code;
46 // Elapsed time between starting and completing the request. 49 // Elapsed time between starting and completing the request.
47 base::TimeDelta elapsed; 50 base::TimeDelta elapsed;
48 // Start time of the request. Encoded as the request age in the final JSON. 51 // Start time of the request. Encoded as the request age in the final JSON.
49 base::TimeTicks start_time; 52 base::TimeTicks start_time;
50 53
51 // Okay to copy and assign. 54 // Okay to copy and assign.
52 }; 55 };
53 56
54 } // namespace domain_reliability 57 } // namespace domain_reliability
55 58
56 #endif // COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_ 59 #endif // COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_
OLDNEW
« no previous file with comments | « no previous file | components/domain_reliability/beacon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698