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); |