Chromium Code Reviews| 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_UPLOADER_H_ | 5 #ifndef COMPONENTS_DOMAIN_RELIABILITY_UPLOADER_H_ |
| 6 #define COMPONENTS_DOMAIN_RELIABILITY_UPLOADER_H_ | 6 #define COMPONENTS_DOMAIN_RELIABILITY_UPLOADER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "components/domain_reliability/domain_reliability_export.h" | 12 #include "components/domain_reliability/domain_reliability_export.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 class URLFetcher; | 16 class URLFetcher; |
| 17 class URLRequestContextGetter; | 17 class URLRequestContextGetter; |
| 18 } // namespace net | 18 } // namespace net |
| 19 | 19 |
| 20 namespace domain_reliability { | 20 namespace domain_reliability { |
| 21 | 21 |
| 22 class DOMAIN_RELIABILITY_EXPORT DomainReliabilityUploader { | 22 class DOMAIN_RELIABILITY_EXPORT DomainReliabilityUploader { |
|
Ryan Sleevi
2014/04/26 02:37:39
Document.
Deprecated (see juliatuttle)
2014/04/28 22:01:13
Done.
| |
| 23 public: | 23 public: |
| 24 typedef base::Callback<void(bool success)> UploadCallback; | 24 typedef base::Callback<void(bool success)> UploadCallback; |
| 25 | 25 |
| 26 DomainReliabilityUploader(); | 26 DomainReliabilityUploader(); |
| 27 | |
| 27 virtual ~DomainReliabilityUploader(); | 28 virtual ~DomainReliabilityUploader(); |
| 28 | 29 |
| 29 static scoped_ptr<DomainReliabilityUploader> Create( | 30 static scoped_ptr<DomainReliabilityUploader> Create( |
| 30 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter); | 31 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter); |
|
Ryan Sleevi
2014/04/26 02:37:39
const scoped_refptr<...>&
Avoids an extra refcoun
Deprecated (see juliatuttle)
2014/04/28 22:01:13
Done.
| |
| 31 | 32 |
| 32 virtual void UploadReport(const std::string& report_json, | 33 virtual void UploadReport(const std::string& report_json, |
|
Ryan Sleevi
2014/04/26 02:37:39
Document.
Deprecated (see juliatuttle)
2014/04/28 22:01:13
Done.
| |
| 33 const GURL& upload_url, | 34 const GURL& upload_url, |
| 34 const UploadCallback& callback) = 0; | 35 const UploadCallback& callback) = 0; |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 } // namespace domain_reliability | 38 } // namespace domain_reliability |
| 38 | 39 |
| 39 #endif // COMPONENTS_DOMAIN_RELIABILITY_UPLOADER_H_ | 40 #endif // COMPONENTS_DOMAIN_RELIABILITY_UPLOADER_H_ |
| OLD | NEW |