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 "components/safe_browsing/csd.pb.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 class DownloadItem; | 12 class DownloadItem; |
13 class WebContents; | 13 class WebContents; |
14 } | 14 } |
15 | 15 |
16 // Prompts the user for whether to Keep a dangerous DownloadItem using native | 16 // Prompts the user for whether to Keep a dangerous DownloadItem using native |
17 // UI. This prompt is invoked by the DownloadsDOMHandler when the user wants to | 17 // UI. This prompt is invoked by the DownloadsDOMHandler when the user wants to |
18 // accept a dangerous download. Having a native dialog intervene during the this | 18 // accept a dangerous download. Having a native dialog intervene during the this |
19 // workflow means that the chrome://downloads page no longer has the privilege | 19 // workflow means that the chrome://downloads page no longer has the privilege |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 private: | 69 private: |
70 // Returns a toolkit-views based download danger prompt. | 70 // Returns a toolkit-views based download danger prompt. |
71 static DownloadDangerPrompt* CreateDownloadDangerPromptViews( | 71 static DownloadDangerPrompt* CreateDownloadDangerPromptViews( |
72 content::DownloadItem* item, | 72 content::DownloadItem* item, |
73 content::WebContents* web_contents, | 73 content::WebContents* web_contents, |
74 bool show_context, | 74 bool show_context, |
75 const OnDone& done); | 75 const OnDone& done); |
76 }; | 76 }; |
77 | 77 |
78 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_ | 78 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_ |
OLD | NEW |