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

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

Issue 6324020: Tweak the auto-open algorithm to permit JNLP to auto-open iff the user has... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Download utilities. 5 // Download utilities.
6 6
7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ 7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_
8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ 8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // a number, -1 is returned. 200 // a number, -1 is returned.
201 int GetUniquePathNumberWithCrDownload(const FilePath& path); 201 int GetUniquePathNumberWithCrDownload(const FilePath& path);
202 202
203 // Erases all downloaded files with the specified path and name prefix. 203 // Erases all downloaded files with the specified path and name prefix.
204 // Used by download UI tests to clean up the download directory. 204 // Used by download UI tests to clean up the download directory.
205 void EraseUniqueDownloadFiles(const FilePath& path_prefix); 205 void EraseUniqueDownloadFiles(const FilePath& path_prefix);
206 206
207 // Returns a .crdownload intermediate path for the |suggested_path|. 207 // Returns a .crdownload intermediate path for the |suggested_path|.
208 FilePath GetCrDownloadPath(const FilePath& suggested_path); 208 FilePath GetCrDownloadPath(const FilePath& suggested_path);
209 209
210 // Whether a given download should be considered potentially dangerous. 210 // Whether a given download should be considered potentially dangerous.
Peter Kasting 2011/01/28 23:51:25 Two nits: * It'd be nice to expand the comment he
211 bool IsDangerous(DownloadCreateInfo *info, Profile* profile); 211 bool IsDangerous(DownloadCreateInfo *info, Profile* profile, bool auto_open);
212 212
213 } // namespace download_util 213 } // namespace download_util
214 214
215 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ 215 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698