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 CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORT_UPLOADER
_IMPL_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORT_UPLOADER
_IMPL_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORT_UPLOADER
_IMPL_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORT_UPLOADER
_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 private: | 47 private: |
48 IncidentReportUploaderImpl( | 48 IncidentReportUploaderImpl( |
49 const OnResultCallback& callback, | 49 const OnResultCallback& callback, |
50 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, | 50 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, |
51 const std::string& post_data); | 51 const std::string& post_data); |
52 | 52 |
53 // Returns the URL to which incident reports are to be sent. | 53 // Returns the URL to which incident reports are to be sent. |
54 static GURL GetIncidentReportUrl(); | 54 static GURL GetIncidentReportUrl(); |
55 | 55 |
56 // net::URLFetcherDelegate methods. | 56 // net::URLFetcherDelegate methods. |
57 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; | 57 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; |
58 | 58 |
59 // The underlying URL fetcher. The instance is alive from construction through | 59 // The underlying URL fetcher. The instance is alive from construction through |
60 // OnURLFetchComplete. | 60 // OnURLFetchComplete. |
61 scoped_ptr<net::URLFetcher> url_fetcher_; | 61 scoped_ptr<net::URLFetcher> url_fetcher_; |
62 | 62 |
63 // The time at which the upload was initiated. | 63 // The time at which the upload was initiated. |
64 base::TimeTicks time_begin_; | 64 base::TimeTicks time_begin_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(IncidentReportUploaderImpl); | 66 DISALLOW_COPY_AND_ASSIGN(IncidentReportUploaderImpl); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace safe_browsing | 69 } // namespace safe_browsing |
70 | 70 |
71 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORT_UPLOA
DER_IMPL_H_ | 71 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORT_UPLOA
DER_IMPL_H_ |
OLD | NEW |