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