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

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

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 10 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 | Annotate | Revision Log
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 9
10 namespace content { 10 namespace content {
(...skipping 27 matching lines...) Expand all
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698