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

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

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: rebase again Created 3 years, 9 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
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 "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
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_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_commands.cc ('k') | chrome/browser/download/download_danger_prompt_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698