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

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: 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 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/feedback/system_logs/system_logs_fetcher_base.h" 9 #include "chrome/browser/feedback/system_logs/system_logs_fetcher_base.h"
10 #include "components/feedback/anonymizer_tool.h"
10 11
11 namespace system_logs { 12 namespace system_logs {
12 13
13 // The ScrubbedSystemLogsFetcher aggregates the scrubbed logs for sending 14 // The ScrubbedSystemLogsFetcher aggregates the scrubbed logs for sending
14 // with feedback reports. 15 // with feedback reports.
15 // TODO: This class needs to be expanded to provide better scrubbing of 16 // TODO: This class needs to be expanded to provide better scrubbing of
16 // system logs. 17 // system logs.
17 class ScrubbedSystemLogsFetcher : public SystemLogsFetcherBase { 18 class ScrubbedSystemLogsFetcher : public SystemLogsFetcherBase {
18 public: 19 public:
19 ScrubbedSystemLogsFetcher(); 20 ScrubbedSystemLogsFetcher();
20 ~ScrubbedSystemLogsFetcher(); 21 ~ScrubbedSystemLogsFetcher() override;
22
23 protected:
24 void Rewrite(const std::string& source_name,
25 SystemLogsResponse* response) override;
21 26
22 private: 27 private:
28 feedback::AnonymizerTool anonymizer_;
23 29
24 DISALLOW_COPY_AND_ASSIGN(ScrubbedSystemLogsFetcher); 30 DISALLOW_COPY_AND_ASSIGN(ScrubbedSystemLogsFetcher);
25 }; 31 };
26 32
27 } // namespace system_logs 33 } // namespace system_logs
28 34
29 #endif // CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SCRUBBED_SYSTEM_LOGS_FETCHER_H_ 35 #endif // CHROME_BROWSER_FEEDBACK_SYSTEM_LOGS_SCRUBBED_SYSTEM_LOGS_FETCHER_H_
30 36
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698