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

Side by Side Diff: components/domain_reliability/monitor.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_MONITOR_H_ 5 #ifndef COMPONENTS_DOMAIN_RELIABILITY_MONITOR_H_
6 #define COMPONENTS_DOMAIN_RELIABILITY_MONITOR_H_ 6 #define COMPONENTS_DOMAIN_RELIABILITY_MONITOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 private: 134 private:
135 friend class DomainReliabilityMonitorTest; 135 friend class DomainReliabilityMonitorTest;
136 // Allow the Service to call |MakeWeakPtr|. 136 // Allow the Service to call |MakeWeakPtr|.
137 friend class DomainReliabilityServiceImpl; 137 friend class DomainReliabilityServiceImpl;
138 138
139 typedef std::map<std::string, DomainReliabilityContext*> ContextMap; 139 typedef std::map<std::string, DomainReliabilityContext*> ContextMap;
140 140
141 struct DOMAIN_RELIABILITY_EXPORT RequestInfo { 141 struct DOMAIN_RELIABILITY_EXPORT RequestInfo {
142 RequestInfo(); 142 RequestInfo();
143 explicit RequestInfo(const net::URLRequest& request); 143 explicit RequestInfo(const net::URLRequest& request);
144 RequestInfo(const RequestInfo& other);
144 ~RequestInfo(); 145 ~RequestInfo();
145 146
146 static bool ShouldReportRequest(const RequestInfo& request); 147 static bool ShouldReportRequest(const RequestInfo& request);
147 148
148 GURL url; 149 GURL url;
149 net::URLRequestStatus status; 150 net::URLRequestStatus status;
150 net::HttpResponseInfo response_info; 151 net::HttpResponseInfo response_info;
151 int load_flags; 152 int load_flags;
152 net::LoadTimingInfo load_timing_info; 153 net::LoadTimingInfo load_timing_info;
153 net::ConnectionAttempts connection_attempts; 154 net::ConnectionAttempts connection_attempts;
(...skipping 30 matching lines...) Expand all
184 bool discard_uploads_set_; 185 bool discard_uploads_set_;
185 186
186 base::WeakPtrFactory<DomainReliabilityMonitor> weak_factory_; 187 base::WeakPtrFactory<DomainReliabilityMonitor> weak_factory_;
187 188
188 DISALLOW_COPY_AND_ASSIGN(DomainReliabilityMonitor); 189 DISALLOW_COPY_AND_ASSIGN(DomainReliabilityMonitor);
189 }; 190 };
190 191
191 } // namespace domain_reliability 192 } // namespace domain_reliability
192 193
193 #endif // COMPONENTS_DOMAIN_RELIABILITY_MONITOR_H_ 194 #endif // COMPONENTS_DOMAIN_RELIABILITY_MONITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698