summaryrefslogtreecommitdiffstats
path: root/content/browser/download
diff options
context:
space:
mode:
authordpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 23:47:49 +0000
committerdpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 23:47:49 +0000
commitf3112a530100f9361f98c81aea8d9483a133a980 (patch)
treea6766b321c65636cfe96621ff54163e6fc1199f0 /content/browser/download
parent08202909defd4f7890548dc73f1ec4e58fd0aec7 (diff)
downloadchromium_src-f3112a530100f9361f98c81aea8d9483a133a980.zip
chromium_src-f3112a530100f9361f98c81aea8d9483a133a980.tar.gz
chromium_src-f3112a530100f9361f98c81aea8d9483a133a980.tar.bz2
more content exports needed for unit_tests and browser_tests.
R=jam@chromium.org BUG=90442 TEST= Review URL: http://codereview.chromium.org/8082019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103584 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download')
-rw-r--r--content/browser/download/download_file_manager.h4
-rw-r--r--content/browser/download/download_item.h5
-rw-r--r--content/browser/download/download_types.h2
3 files changed, 4 insertions, 7 deletions
diff --git a/content/browser/download/download_file_manager.h b/content/browser/download/download_file_manager.h
index 0838e40..20a2b6a 100644
--- a/content/browser/download/download_file_manager.h
+++ b/content/browser/download/download_file_manager.h
@@ -68,13 +68,13 @@ class URLRequestContextGetter;
}
// Manages all in progress downloads.
-class DownloadFileManager
+class CONTENT_EXPORT DownloadFileManager
: public base::RefCountedThreadSafe<DownloadFileManager> {
public:
explicit DownloadFileManager(ResourceDispatcherHost* rdh);
// Called on shutdown on the UI thread.
- CONTENT_EXPORT void Shutdown();
+ void Shutdown();
// Called on UI thread to make DownloadFileManager start the download.
void StartDownload(DownloadCreateInfo* info);
diff --git a/content/browser/download/download_item.h b/content/browser/download/download_item.h
index 2a9b8b9..c3d78ac 100644
--- a/content/browser/download/download_item.h
+++ b/content/browser/download/download_item.h
@@ -338,10 +338,7 @@ class CONTENT_EXPORT DownloadItem {
std::string DebugString(bool verbose) const;
-#ifdef UNIT_TEST
- // Mock opening downloads (for testing only).
- void TestMockDownloadOpen() { open_enabled_ = false; }
-#endif
+ void MockDownloadOpenForTesting() { open_enabled_ = false; }
private:
// Construction common to all constructors. |active| should be true for new
diff --git a/content/browser/download/download_types.h b/content/browser/download/download_types.h
index 952b195..7ee8043 100644
--- a/content/browser/download/download_types.h
+++ b/content/browser/download/download_types.h
@@ -24,7 +24,7 @@ class IOBuffer;
// waiting for the task to run on the file thread. Access to the write buffers
// is synchronized via the lock. Each entry in 'contents' represents one data
// buffer and its size in bytes.
-struct DownloadBuffer {
+struct CONTENT_EXPORT DownloadBuffer {
DownloadBuffer();
~DownloadBuffer();