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

Unified Diff: chrome/browser/download/download_danger_prompt.h

Issue 16924017: A few minor changes to the chrome.downloads extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r214130 Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/download/download_danger_prompt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_danger_prompt.h
diff --git a/chrome/browser/download/download_danger_prompt.h b/chrome/browser/download/download_danger_prompt.h
index 2ab5bb05e8655b8ab274ae1f91a0a8349056a5d9..8c2407f17a8edca121fd93af440c3278c82ae970 100644
--- a/chrome/browser/download/download_danger_prompt.h
+++ b/chrome/browser/download/download_danger_prompt.h
@@ -24,8 +24,10 @@ class DownloadDangerPrompt {
// Actions resulting from showing the danger prompt.
enum Action {
ACCEPT,
- CANCEL
+ CANCEL,
+ DISMISS,
};
+ typedef base::Callback<void(Action)> OnDone;
// Return a new self-deleting DownloadDangerPrompt. |accepted| or |canceled|
// will be run when the the respective action is invoked. |canceled| may also
@@ -39,8 +41,7 @@ class DownloadDangerPrompt {
content::DownloadItem* item,
content::WebContents* web_contents,
bool show_context,
- const base::Closure& accepted,
- const base::Closure& canceled);
+ const OnDone& done);
protected:
friend class DownloadDangerPromptTest;
« no previous file with comments | « no previous file | chrome/browser/download/download_danger_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698