diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-06 23:31:41 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-06 23:31:41 +0000 |
commit | 7ae7c2cbd38f886f4056fa7434a6c1189d98ffd2 (patch) | |
tree | e606471e20eb79fea7a05c9005869065bf865ca1 /chrome/common/win_util.h | |
parent | cab465ccf2a93d84e0f16987d8754ac2673eb118 (diff) | |
download | chromium_src-7ae7c2cbd38f886f4056fa7434a6c1189d98ffd2.zip chromium_src-7ae7c2cbd38f886f4056fa7434a6c1189d98ffd2.tar.gz chromium_src-7ae7c2cbd38f886f4056fa7434a6c1189d98ffd2.tar.bz2 |
Convert download manager to FilePath.
(Fixed up version of issue 17032. Now passes all unit tests.)
Review URL: http://codereview.chromium.org/16533
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7630 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/win_util.h')
-rw-r--r-- | chrome/common/win_util.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/common/win_util.h b/chrome/common/win_util.h index 112f1bd..5487ef3 100644 --- a/chrome/common/win_util.h +++ b/chrome/common/win_util.h @@ -15,6 +15,8 @@ #include "base/scoped_handle.h" #include "chrome/common/gfx/chrome_font.h" +class FilePath; + namespace win_util { // Import ScopedHandle and friends into this namespace for backwards @@ -112,12 +114,12 @@ void ShowItemInFolder(const std::wstring& full_path); // ask the user, via the Windows "Open With" dialog, for an application to use // if 'ask_for_app' is true. // Returns 'true' on successful open, 'false' otherwise. -bool OpenItemViaShell(const std::wstring& full_path, bool ask_for_app); +bool OpenItemViaShell(const FilePath& full_path, bool ask_for_app); // The download manager now writes the alternate data stream with the // zone on all downloads. This function is equivalent to OpenItemViaShell // without showing the zone warning dialog. -bool OpenItemViaShellNoZoneCheck(const std::wstring& full_path, +bool OpenItemViaShellNoZoneCheck(const FilePath& full_path, bool ask_for_app); // Ask the user, via the Windows "Open With" dialog, for an application to use |