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 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 27 matching lines...) Expand all Loading... |
38 static DownloadDangerPrompt* Create( | 38 static DownloadDangerPrompt* Create( |
39 content::DownloadItem* item, | 39 content::DownloadItem* item, |
40 content::WebContents* web_contents, | 40 content::WebContents* web_contents, |
41 bool show_context, | 41 bool show_context, |
42 const base::Closure& accepted, | 42 const base::Closure& accepted, |
43 const base::Closure& canceled); | 43 const base::Closure& canceled); |
44 | 44 |
45 protected: | 45 protected: |
46 friend class DownloadDangerPromptTest; | 46 friend class DownloadDangerPromptTest; |
47 | 47 |
| 48 virtual ~DownloadDangerPrompt() { } |
| 49 |
48 // Only to be used by tests. Subclasses must override to manually call the | 50 // Only to be used by tests. Subclasses must override to manually call the |
49 // respective button click handler. | 51 // respective button click handler. |
50 virtual void InvokeActionForTesting(Action action) = 0; | 52 virtual void InvokeActionForTesting(Action action) = 0; |
51 }; | 53 }; |
52 | 54 |
53 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_ | 55 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_DANGER_PROMPT_H_ |
OLD | NEW |