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

Unified Diff: chrome/browser/download/download_types.h

Issue 7618048: Move the core download files to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_types.h
===================================================================
--- chrome/browser/download/download_types.h (revision 96793)
+++ chrome/browser/download/download_types.h (working copy)
@@ -1,47 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TYPES_H_
-#define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TYPES_H_
-#pragma once
-
-#include <vector>
-
-#include "base/file_path.h"
-#include "base/memory/linked_ptr.h"
-#include "base/synchronization/lock.h"
-#include "net/base/file_stream.h"
-
-namespace net {
-class IOBuffer;
-}
-
-// DownloadBuffer is created and populated on the IO thread, and passed to the
-// file thread for writing. In order to avoid flooding the file thread with too
-// many small write messages, each write is appended to the DownloadBuffer while
-// 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 {
- DownloadBuffer();
- ~DownloadBuffer();
-
- base::Lock lock;
- typedef std::pair<net::IOBuffer*, int> Contents;
- std::vector<Contents> contents;
-};
-
-// Holds the information about how to save a download file.
-struct DownloadSaveInfo {
- DownloadSaveInfo();
- DownloadSaveInfo(const DownloadSaveInfo& info);
- ~DownloadSaveInfo();
- DownloadSaveInfo& operator=(const DownloadSaveInfo& info);
-
- FilePath file_path;
- linked_ptr<net::FileStream> file_stream;
- string16 suggested_name;
-};
-
-#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698