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

Side by Side Diff: content/browser/download/drag_download_file.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h"
9 #include "base/file_path.h" 10 #include "base/file_path.h"
10 #include "base/memory/linked_ptr.h" 11 #include "base/memory/linked_ptr.h"
11 #include "content/browser/download/download_file.h" 12 #include "content/browser/download/download_file.h"
12 #include "content/browser/download/download_item.h" 13 #include "content/browser/download/download_item.h"
13 #include "content/browser/download/download_manager.h" 14 #include "content/browser/download/download_manager.h"
15 #include "content/common/content_export.h"
14 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
15 #include "ui/base/dragdrop/download_file_interface.h" 17 #include "ui/base/dragdrop/download_file_interface.h"
18 #include "ui/base/ui_export.h"
16 19
17 class TabContents; 20 class TabContents;
18 21
19 namespace net { 22 namespace net {
20 class FileStream; 23 class FileStream;
21 } 24 }
22 25
23 class DragDownloadFile : public ui::DownloadFileProvider, 26 class CONTENT_EXPORT DragDownloadFile
24 public DownloadManager::Observer, 27 : public ui::DownloadFileProvider,
25 public DownloadItem::Observer { 28 public DownloadManager::Observer,
29 public DownloadItem::Observer {
26 public: 30 public:
27 // On Windows, we need to download into a temporary file. Two threads are 31 // On Windows, we need to download into a temporary file. Two threads are
28 // involved: background drag-and-drop thread and UI thread. 32 // involved: background drag-and-drop thread and UI thread.
29 // The first parameter file_name_or_path should contain file name while the 33 // The first parameter file_name_or_path should contain file name while the
30 // second parameter file_stream should be NULL. 34 // second parameter file_stream should be NULL.
31 // 35 //
32 // On MacOSX, we need to download into a file stream that has already been 36 // On MacOSX, we need to download into a file stream that has already been
33 // created. Only UI thread is involved. 37 // created. Only UI thread is involved.
34 // The file path and file stream should be provided as the first two 38 // The file path and file stream should be provided as the first two
35 // parameters. 39 // parameters.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 110
107 // Access on UI thread. 111 // Access on UI thread.
108 DownloadManager* download_manager_; 112 DownloadManager* download_manager_;
109 bool download_manager_observer_added_; 113 bool download_manager_observer_added_;
110 DownloadItem* download_item_; 114 DownloadItem* download_item_;
111 115
112 DISALLOW_COPY_AND_ASSIGN(DragDownloadFile); 116 DISALLOW_COPY_AND_ASSIGN(DragDownloadFile);
113 }; 117 };
114 118
115 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ 119 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698