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

Unified Diff: components/domain_reliability/uploader.h

Issue 2538313002: Fix data usage tracking for domain reliability service (Closed)
Patch Set: Rebased Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/domain_reliability/DEPS ('k') | components/domain_reliability/uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/uploader.h
diff --git a/components/domain_reliability/uploader.h b/components/domain_reliability/uploader.h
index 0cba48232b271a61c2c9c2d6b82067c9392782c7..6962711ce1b1cf62596d7caa0cdcd7d319e3c6cc 100644
--- a/components/domain_reliability/uploader.h
+++ b/components/domain_reliability/uploader.h
@@ -55,6 +55,9 @@ class DOMAIN_RELIABILITY_EXPORT DomainReliabilityUploader {
const scoped_refptr<net::URLRequestContextGetter>&
url_request_context_getter);
+ // Returns true if the request originated from domain reliability uploader.
+ static bool OriginatedFromDomainReliability(const net::URLRequest& request);
+
// Uploads |report_json| to |upload_url| and calls |callback| when the upload
// has either completed or failed.
virtual void UploadReport(const std::string& report_json,
« no previous file with comments | « components/domain_reliability/DEPS ('k') | components/domain_reliability/uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698