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

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

Issue 4247: Port some things in browser/{download,history}, minor things in common.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 2 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
« no previous file with comments | « chrome/browser/download/download_exe.cc ('k') | chrome/browser/download/save_file.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 9
10 #include <objidl.h> 10 #include <objidl.h>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "chrome/browser/download/download_exe.h"
14 #include "chrome/browser/views/download_item_view.h" 15 #include "chrome/browser/views/download_item_view.h"
15 #include "chrome/views/event.h" 16 #include "chrome/views/event.h"
16 #include "chrome/views/menu.h" 17 #include "chrome/views/menu.h"
17 #include "chrome/views/view.h" 18 #include "chrome/views/view.h"
18 19
19 class DownloadItem; 20 class DownloadItem;
20 class SkBitmap; 21 class SkBitmap;
21 22
22 namespace download_util { 23 namespace download_util {
23 24
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 int origin_y, 174 int origin_y,
174 double animation_progress, 175 double animation_progress,
175 PaintDownloadProgressSize size); 176 PaintDownloadProgressSize size);
176 177
177 // Drag support ---------------------------------------------------------------- 178 // Drag support ----------------------------------------------------------------
178 179
179 // Helper function for download views to use when acting as a drag source for a 180 // Helper function for download views to use when acting as a drag source for a
180 // DownloadItem. If 'icon' is NULL, no image will be accompany the drag. 181 // DownloadItem. If 'icon' is NULL, no image will be accompany the drag.
181 void DragDownload(const DownloadItem* download, SkBitmap* icon); 182 void DragDownload(const DownloadItem* download, SkBitmap* icon);
182 183
183 // Executable file support -----------------------------------------------------
184
185 // Copy all executable file extensions.
186 void InitializeExeTypes(std::set<std::wstring>* exe_extensions);
187
188 } // namespace download_util 184 } // namespace download_util
189 185
190 186
191 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H__ 187 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H__
192 188
OLDNEW
« no previous file with comments | « chrome/browser/download/download_exe.cc ('k') | chrome/browser/download/save_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698