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

Side by Side Diff: chrome/browser/feedback/system_logs/scrubbed_system_logs_fetcher.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SCRUBBED_SYSTEM_LOGS_FETCHER_H_ 5 #ifndef CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SCRUBBED_SYSTEM_LOGS_FETCHER_H_
6 #define CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SCRUBBED_SYSTEM_LOGS_FETCHER_H_ 6 #define CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SCRUBBED_SYSTEM_LOGS_FETCHER_H_
7 7
8 #include "chrome/browser/feedback/system_logs/system_logs_fetcher_base.h" 8 #include "chrome/browser/feedback/system_logs/system_logs_fetcher_base.h"
9 #include "components/feedback/anonymizer_tool.h"
9 10
10 namespace system_logs { 11 namespace system_logs {
11 12
12 // The ScrubbedSystemLogsFetcher aggregates the scrubbed logs for sending 13 // The ScrubbedSystemLogsFetcher aggregates the scrubbed logs for sending
13 // with feedback reports. 14 // with feedback reports.
14 // TODO: This class needs to be expanded to provide better scrubbing of 15 // TODO: This class needs to be expanded to provide better scrubbing of
15 // system logs. 16 // system logs.
16 class ScrubbedSystemLogsFetcher : public SystemLogsFetcherBase { 17 class ScrubbedSystemLogsFetcher : public SystemLogsFetcherBase {
17 public: 18 public:
18 ScrubbedSystemLogsFetcher(); 19 ScrubbedSystemLogsFetcher();
19 ~ScrubbedSystemLogsFetcher(); 20 ~ScrubbedSystemLogsFetcher() override;
21
22 protected:
23 void Rewrite(const std::string& source_name,
24 SystemLogsResponse* response) override;
20 25
21 private: 26 private:
27 feedback::AnonymizerTool anonymizer_;
22 28
23 DISALLOW_COPY_AND_ASSIGN(ScrubbedSystemLogsFetcher); 29 DISALLOW_COPY_AND_ASSIGN(ScrubbedSystemLogsFetcher);
24 }; 30 };
25 31
26 } // namespace system_logs 32 } // namespace system_logs
27 33
28 #endif // CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SCRUBBED_SYSTEM_LOGS_FETCHER_H_ 34 #endif // CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SCRUBBED_SYSTEM_LOGS_FETCHER_H_
29 35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698