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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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 CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SERVI CE_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SERVI CE_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SERVI CE_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SERVI CE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // True when the asynchronous environment collection task has been fired off 278 // True when the asynchronous environment collection task has been fired off
279 // but has not yet completed. 279 // but has not yet completed.
280 bool environment_collection_pending_; 280 bool environment_collection_pending_;
281 281
282 // True when an incident has been received and the service is waiting for the 282 // True when an incident has been received and the service is waiting for the
283 // collation_timer_ to fire. 283 // collation_timer_ to fire.
284 bool collation_timeout_pending_; 284 bool collation_timeout_pending_;
285 285
286 // A timer upon the firing of which the service will report received 286 // A timer upon the firing of which the service will report received
287 // incidents. 287 // incidents.
288 base::DelayTimer<IncidentReportingService> collation_timer_; 288 base::DelayTimer collation_timer_;
289 289
290 // The report currently being assembled. This becomes non-NULL when an initial 290 // The report currently being assembled. This becomes non-NULL when an initial
291 // incident is reported, and returns to NULL when the report is sent for 291 // incident is reported, and returns to NULL when the report is sent for
292 // upload. 292 // upload.
293 scoped_ptr<ClientIncidentReport> report_; 293 scoped_ptr<ClientIncidentReport> report_;
294 294
295 // The time at which the initial incident is reported. 295 // The time at which the initial incident is reported.
296 base::Time first_incident_time_; 296 base::Time first_incident_time_;
297 297
298 // The time at which the last incident is reported. 298 // The time at which the last incident is reported.
(...skipping 28 matching lines...) Expand all
327 // that are posted during normal processing (e.g., environment collection, 327 // that are posted during normal processing (e.g., environment collection,
328 // safe browsing database checks, and report uploads). 328 // safe browsing database checks, and report uploads).
329 base::WeakPtrFactory<IncidentReportingService> weak_ptr_factory_; 329 base::WeakPtrFactory<IncidentReportingService> weak_ptr_factory_;
330 330
331 DISALLOW_COPY_AND_ASSIGN(IncidentReportingService); 331 DISALLOW_COPY_AND_ASSIGN(IncidentReportingService);
332 }; 332 };
333 333
334 } // namespace safe_browsing 334 } // namespace safe_browsing
335 335
336 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SE RVICE_H_ 336 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SE RVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698