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

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

Issue 1921533004: Add a low-frequency RAPPOR configuration, and use it for Safe Browsing and Permissions metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nits Created 4 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Classes for managing the SafeBrowsing interstitial pages. 5 // Classes for managing the SafeBrowsing interstitial pages.
6 // 6 //
7 // When a user is about to visit a page the SafeBrowsing system has deemed to 7 // When a user is about to visit a page the SafeBrowsing system has deemed to
8 // be malicious, either as malware or a phishing page, we show an interstitial 8 // be malicious, either as malware or a phishing page, we show an interstitial
9 // page with some options (go back, continue) to give the user a chance to avoid 9 // page with some options (go back, continue) to give the user a chance to avoid
10 // the harmful page. 10 // the harmful page.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // Fills the passed dictionary with the values to be passed to the template 205 // Fills the passed dictionary with the values to be passed to the template
206 // when creating the HTML. 206 // when creating the HTML.
207 void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data); 207 void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data);
208 void PopulateMalwareLoadTimeData(base::DictionaryValue* load_time_data); 208 void PopulateMalwareLoadTimeData(base::DictionaryValue* load_time_data);
209 void PopulateHarmfulLoadTimeData(base::DictionaryValue* load_time_data); 209 void PopulateHarmfulLoadTimeData(base::DictionaryValue* load_time_data);
210 void PopulatePhishingLoadTimeData(base::DictionaryValue* load_time_data); 210 void PopulatePhishingLoadTimeData(base::DictionaryValue* load_time_data);
211 211
212 std::string GetMetricPrefix() const; 212 std::string GetMetricPrefix() const;
213 std::string GetExtraMetricsSuffix() const; 213 std::string GetExtraMetricsSuffix() const;
214 std::string GetRapporPrefix() const; 214 std::string GetRapporPrefix() const;
215 std::string GetDeprecatedRapporPrefix() const;
215 std::string GetSamplingEventName() const; 216 std::string GetSamplingEventName() const;
216 217
217 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPage); 218 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPage);
218 }; 219 };
219 220
220 // Factory for creating SafeBrowsingBlockingPage. Useful for tests. 221 // Factory for creating SafeBrowsingBlockingPage. Useful for tests.
221 class SafeBrowsingBlockingPageFactory { 222 class SafeBrowsingBlockingPageFactory {
222 public: 223 public:
223 virtual ~SafeBrowsingBlockingPageFactory() { } 224 virtual ~SafeBrowsingBlockingPageFactory() { }
224 225
225 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( 226 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage(
226 SafeBrowsingUIManager* ui_manager, 227 SafeBrowsingUIManager* ui_manager,
227 content::WebContents* web_contents, 228 content::WebContents* web_contents,
228 const GURL& main_frame_url, 229 const GURL& main_frame_url,
229 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; 230 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0;
230 }; 231 };
231 232
232 } // namespace safe_browsing 233 } // namespace safe_browsing
233 234
234 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ 235 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/permissions/permission_uma_util.cc ('k') | chrome/browser/safe_browsing/safe_browsing_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698