OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // The DownloadItemFactory is used to produce different DownloadItems. | 5 // The DownloadItemFactory is used to produce different DownloadItems. |
6 // It is separate from the DownloadManager to allow download manager | 6 // It is separate from the DownloadManager to allow download manager |
7 // unit tests to control the items produced. | 7 // unit tests to control the items produced. |
8 | 8 |
9 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ | 9 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ |
10 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ | 10 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ |
11 #pragma once | |
12 | 11 |
13 #include <string> | 12 #include <string> |
14 | 13 |
15 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
16 #include "content/browser/download/download_item_impl.h" | 15 #include "content/browser/download/download_item_impl.h" |
17 | 16 |
18 struct DownloadCreateInfo; | 17 struct DownloadCreateInfo; |
19 class DownloadRequestHandleInterface; | 18 class DownloadRequestHandleInterface; |
20 class FilePath; | 19 class FilePath; |
21 class GURL; | 20 class GURL; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 const GURL& url, | 54 const GURL& url, |
56 bool is_otr, | 55 bool is_otr, |
57 content::DownloadId download_id, | 56 content::DownloadId download_id, |
58 const std::string& mime_type, | 57 const std::string& mime_type, |
59 const net::BoundNetLog& bound_net_log) = 0; | 58 const net::BoundNetLog& bound_net_log) = 0; |
60 }; | 59 }; |
61 | 60 |
62 } // namespace content | 61 } // namespace content |
63 | 62 |
64 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ | 63 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ |
OLD | NEW |