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

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: Rebase to ToT Created 4 years, 11 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/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 5f881e66db0bcd558b2c141a0beb0a9689937e5a..29a20ab0e6012f1cccc251efa59386df24cf9ffe 100644
--- a/chrome/browser/feedback/system_logs/system_logs_fetcher_base.h
+++ b/chrome/browser/feedback/system_logs/system_logs_fetcher_base.h
@@ -63,15 +63,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