| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |