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

Side by Side Diff: chrome/browser/download/download_danger_prompt.h

Issue 2630243003: MacViews: Enable views based Download recovery dialog behind secondary-ui-md flag. (Closed)
Patch Set: Address review Created 3 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
« no previous file with comments | « no previous file | chrome/browser/download/download_danger_prompt_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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(
72 content::DownloadItem* item,
73 content::WebContents* web_contents,
74 bool show_context,
75 const OnDone& done);
sky 2017/01/25 04:45:44 Document what done is.
karandeepb 2017/01/25 05:57:18 Have documented it near DownloadDangerPrompt::Crea
68 }; 76 };
69 77
70 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_ 78 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/download_danger_prompt_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698