Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "chrome/common/safe_browsing/csd.pb.h" | 9 #include "chrome/common/safe_browsing/csd.pb.h" |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 // information in this report. | 58 // information in this report. |
| 59 static void SendSafeBrowsingDownloadReport( | 59 static void SendSafeBrowsingDownloadReport( |
| 60 safe_browsing::ClientSafeBrowsingReportRequest::ReportType report_type, | 60 safe_browsing::ClientSafeBrowsingReportRequest::ReportType report_type, |
| 61 bool did_proceed, | 61 bool did_proceed, |
| 62 const content::DownloadItem& download); | 62 const content::DownloadItem& download); |
| 63 | 63 |
| 64 protected: | 64 protected: |
| 65 // Records UMA stats for a download danger prompt event. | 65 // Records UMA stats for a download danger prompt event. |
| 66 static void RecordDownloadDangerPrompt(bool did_proceed, | 66 static void RecordDownloadDangerPrompt(bool did_proceed, |
| 67 const content::DownloadItem& download); | 67 const content::DownloadItem& download); |
| 68 | |
| 69 private: | |
| 70 // Returns a toolkit-views based download danger prompt. | |
| 71 static DownloadDangerPrompt* CreateDownloadDangerPromptViews( | |
|
karandeepb
2017/01/23 06:51:40
Should this be in a #ifdef (TOOLKIT_VIEWS)? This f
| |
| 72 content::DownloadItem* item, | |
| 73 content::WebContents* web_contents, | |
| 74 bool show_context, | |
| 75 const OnDone& done); | |
| 68 }; | 76 }; |
| 69 | 77 |
| 70 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_ | 78 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_ |
| OLD | NEW |