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

Unified Diff: chrome/browser/feedback/system_logs/system_logs_fetcher_base.h

Issue 1530403003: Add anonymizer tool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved location of scrubbing Created 5 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
Index: chrome/browser/feedback/system_logs/system_logs_fetcher_base.h
diff --git a/chrome/browser/feedback/system_logs/system_logs_fetcher_base.h b/chrome/browser/feedback/system_logs/system_logs_fetcher_base.h
index 521e15dd5ca4f12990a88bcc9fb37a8b467db0f7..3c82fa766dfb127eba1796b371e46866746313a3 100644
--- a/chrome/browser/feedback/system_logs/system_logs_fetcher_base.h
+++ b/chrome/browser/feedback/system_logs/system_logs_fetcher_base.h
@@ -60,15 +60,22 @@ class SystemLogsFetcherBase
: public base::SupportsWeakPtr<SystemLogsFetcherBase> {
public:
SystemLogsFetcherBase();
- ~SystemLogsFetcherBase();
+ virtual ~SystemLogsFetcherBase();
void Fetch(const SysLogsFetcherCallback& callback);
protected:
- // Callback passed to all the data sources. It merges the |data| it receives
- // into response_. When all the data sources have responded, it deletes their
- // objects and returns the response to the callback_. After this it
- // deletes this instance of the object.
+ // Callback passed to all the data sources. Calls Rewrite() and AddResponse().
+ void OnFetched(const std::string& source_name, SystemLogsResponse* response);
+
+ // Virtual function that allows derived classes to modify the response before
+ // it gets added to the output.
+ virtual void Rewrite(const std::string& source_name,
+ SystemLogsResponse* response);
+
+ // Merges the |data| it receives into response_. When all the data sources
+ // have responded, it deletes their objects and returns the response to the
+ // callback_. After this it deletes this instance of the object.
void AddResponse(const std::string& source_name,
SystemLogsResponse* response);

Powered by Google App Engine
This is Rietveld 408576698