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

Side by Side Diff: chrome/browser/safe_browsing/srt_fetcher_win.h

Issue 2731413003: Remove UWS Rappor (Closed)
Patch Set: Remove BEHAVIOUR_LOG_TO_RAPPOR Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SAFE_BROWSING_SRT_FETCHER_WIN_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_
7 7
8 #include <limits.h> 8 #include <limits.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // ending in |suffix|. Those metrics should be copied to UMA histograms also 52 // ending in |suffix|. Those metrics should be copied to UMA histograms also
53 // ending in |suffix|. For the canonical version, |suffix| will be empty. 53 // ending in |suffix|. For the canonical version, |suffix| will be empty.
54 std::string suffix; 54 std::string suffix;
55 55
56 // Flags to control behaviours the Software Reporter should support by 56 // Flags to control behaviours the Software Reporter should support by
57 // default. These flags are set in the Reporter installer, and experimental 57 // default. These flags are set in the Reporter installer, and experimental
58 // versions of the reporter will turn on the behaviours that are not yet 58 // versions of the reporter will turn on the behaviours that are not yet
59 // supported. 59 // supported.
60 using Behaviours = uint32_t; 60 using Behaviours = uint32_t;
61 enum : Behaviours { 61 enum : Behaviours {
62 BEHAVIOUR_LOG_TO_RAPPOR = 0x1,
63 BEHAVIOUR_LOG_EXIT_CODE_TO_PREFS = 0x2, 62 BEHAVIOUR_LOG_EXIT_CODE_TO_PREFS = 0x2,
64 BEHAVIOUR_TRIGGER_PROMPT = 0x4, 63 BEHAVIOUR_TRIGGER_PROMPT = 0x4,
65 BEHAVIOUR_ALLOW_SEND_REPORTER_LOGS = 0x8, 64 BEHAVIOUR_ALLOW_SEND_REPORTER_LOGS = 0x8,
66 }; 65 };
67 Behaviours supported_behaviours = 0; 66 Behaviours supported_behaviours = 0;
68 67
69 // Whether logs upload was enabled in this invocation. 68 // Whether logs upload was enabled in this invocation.
70 bool logs_upload_enabled = false; 69 bool logs_upload_enabled = false;
71 70
72 SwReporterInvocation(); 71 SwReporterInvocation();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 128
130 // Set a delegate for testing. The implementation will not take ownership of 129 // Set a delegate for testing. The implementation will not take ownership of
131 // |delegate| - it must remain valid until this function is called again to 130 // |delegate| - it must remain valid until this function is called again to
132 // reset the delegate. If |delegate| is nullptr, any previous delegate is 131 // reset the delegate. If |delegate| is nullptr, any previous delegate is
133 // cleared. 132 // cleared.
134 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate); 133 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate);
135 134
136 } // namespace safe_browsing 135 } // namespace safe_browsing
137 136
138 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_ 137 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_FETCHER_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc ('k') | chrome/browser/safe_browsing/srt_fetcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698