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

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

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "components/domain_reliability/domain_reliability_export.h" 12 #include "components/domain_reliability/domain_reliability_export.h"
13 #include "net/base/net_error_details.h" 13 #include "net/base/net_error_details.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace base { 16 namespace base {
17 class Value; 17 class Value;
18 } // namespace base 18 } // namespace base
19 19
20 namespace domain_reliability { 20 namespace domain_reliability {
21 21
22 // The per-request data that is uploaded to the Domain Reliability collector. 22 // The per-request data that is uploaded to the Domain Reliability collector.
23 struct DOMAIN_RELIABILITY_EXPORT DomainReliabilityBeacon { 23 struct DOMAIN_RELIABILITY_EXPORT DomainReliabilityBeacon {
24 public: 24 public:
25 DomainReliabilityBeacon(); 25 DomainReliabilityBeacon();
26 DomainReliabilityBeacon(const DomainReliabilityBeacon& other);
26 ~DomainReliabilityBeacon(); 27 ~DomainReliabilityBeacon();
27 28
28 // Converts the Beacon to JSON format for uploading. Calculates the age 29 // Converts the Beacon to JSON format for uploading. Calculates the age
29 // relative to an upload time of |upload_time|. 30 // relative to an upload time of |upload_time|.
30 // 31 //
31 // |last_network_change_time| is used to determine which beacons are 32 // |last_network_change_time| is used to determine which beacons are
32 // labeled as from a previous network connection. 33 // labeled as from a previous network connection.
33 // |collector_url| is compared to the URLs in the beacons to determine which 34 // |collector_url| is compared to the URLs in the beacons to determine which
34 // are being uploaded to a same-origin collector. 35 // are being uploaded to a same-origin collector.
35 // |path_prefixes| are used to include only a known-safe (not PII) prefix of 36 // |path_prefixes| are used to include only a known-safe (not PII) prefix of
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 int upload_depth; 73 int upload_depth;
73 // The probability that this request had of being reported ("sample rate"). 74 // The probability that this request had of being reported ("sample rate").
74 double sample_rate; 75 double sample_rate;
75 76
76 // Okay to copy and assign. 77 // Okay to copy and assign.
77 }; 78 };
78 79
79 } // namespace domain_reliability 80 } // namespace domain_reliability
80 81
81 #endif // COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_ 82 #endif // COMPONENTS_DOMAIN_RELIABILITY_BEACON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698