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

Unified Diff: chrome/browser/safe_browsing/incident_report_uploader.h

Issue 470213002: Moving all the incident reporting stuff to a common folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@binsign
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/incident_report_uploader.h
diff --git a/chrome/browser/safe_browsing/incident_report_uploader.h b/chrome/browser/safe_browsing/incident_report_uploader.h
deleted file mode 100644
index d56484802ed3b59facddad6edd80ea2c273fbf01..0000000000000000000000000000000000000000
--- a/chrome/browser/safe_browsing/incident_report_uploader.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORT_UPLOADER_H_
-#define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORT_UPLOADER_H_
-
-#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace safe_browsing {
-
-class ClientIncidentResponse;
-
-// An abstract base class for a facility that uploads incident reports.
-class IncidentReportUploader {
- public:
- // The result of a report upload. Values here are used for UMA so they must
- // not be changed.
- enum Result {
- UPLOAD_SUCCESS = 0, // A response was received.
- UPLOAD_SUPPRESSED = 1, // The request was suppressed.
- UPLOAD_INVALID_REQUEST = 2, // The request was invalid.
- UPLOAD_CANCELLED = 3, // The upload was cancelled.
- UPLOAD_REQUEST_FAILED = 4, // Upload failed.
- UPLOAD_INVALID_RESPONSE = 5, // The response was not recognized.
- UPLOAD_NO_DOWNLOAD = 6, // No last download was found.
- NUM_UPLOAD_RESULTS
- };
-
- // A callback run by the uploader upon success or failure. The first argument
- // indicates the result of the upload, while the second contains the response
- // received, if any.
- typedef base::Callback<void(Result, scoped_ptr<ClientIncidentResponse>)>
- OnResultCallback;
-
- virtual ~IncidentReportUploader();
-
- protected:
- explicit IncidentReportUploader(const OnResultCallback& callback);
-
- // The callback by which results are returned.
- OnResultCallback callback_;
-};
-
-} // namespace safe_browsing
-
-#endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORT_UPLOADER_H_
« no previous file with comments | « chrome/browser/safe_browsing/incident_handler_util.cc ('k') | chrome/browser/safe_browsing/incident_report_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698