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

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

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 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
OLDNEW
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 11
12 #include <stdint.h> 12 #include <stdint.h>
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "content/public/browser/download_item.h" 18 #include "content/public/browser/download_item.h"
19 19
20 class GURL; 20 class GURL;
21 21
22 namespace base { 22 namespace base {
23 class FilePath; 23 class FilePath;
24 } 24 }
25 25
26 namespace net { 26 namespace net {
27 class BoundNetLog; 27 class NetLogWithSource;
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 31
32 class DownloadItem; 32 class DownloadItem;
33 class DownloadItemImpl; 33 class DownloadItemImpl;
34 class DownloadItemImplDelegate; 34 class DownloadItemImplDelegate;
35 class DownloadRequestHandleInterface; 35 class DownloadRequestHandleInterface;
36 struct DownloadCreateInfo; 36 struct DownloadCreateInfo;
37 37
(...skipping 18 matching lines...) Expand all
56 const base::Time& end_time, 56 const base::Time& end_time,
57 const std::string& etag, 57 const std::string& etag,
58 const std::string& last_modified, 58 const std::string& last_modified,
59 int64_t received_bytes, 59 int64_t received_bytes,
60 int64_t total_bytes, 60 int64_t total_bytes,
61 const std::string& hash, 61 const std::string& hash,
62 DownloadItem::DownloadState state, 62 DownloadItem::DownloadState state,
63 DownloadDangerType danger_type, 63 DownloadDangerType danger_type,
64 DownloadInterruptReason interrupt_reason, 64 DownloadInterruptReason interrupt_reason,
65 bool opened, 65 bool opened,
66 const net::BoundNetLog& bound_net_log) = 0; 66 const net::NetLogWithSource& net_log) = 0;
67 67
68 virtual DownloadItemImpl* CreateActiveItem( 68 virtual DownloadItemImpl* CreateActiveItem(
69 DownloadItemImplDelegate* delegate, 69 DownloadItemImplDelegate* delegate,
70 uint32_t download_id, 70 uint32_t download_id,
71 const DownloadCreateInfo& info, 71 const DownloadCreateInfo& info,
72 const net::BoundNetLog& bound_net_log) = 0; 72 const net::NetLogWithSource& net_log) = 0;
73 73
74 virtual DownloadItemImpl* CreateSavePageItem( 74 virtual DownloadItemImpl* CreateSavePageItem(
75 DownloadItemImplDelegate* delegate, 75 DownloadItemImplDelegate* delegate,
76 uint32_t download_id, 76 uint32_t download_id,
77 const base::FilePath& path, 77 const base::FilePath& path,
78 const GURL& url, 78 const GURL& url,
79 const std::string& mime_type, 79 const std::string& mime_type,
80 std::unique_ptr<DownloadRequestHandleInterface> request_handle, 80 std::unique_ptr<DownloadRequestHandleInterface> request_handle,
81 const net::BoundNetLog& bound_net_log) = 0; 81 const net::NetLogWithSource& net_log) = 0;
82 }; 82 };
83 83
84 } // namespace content 84 } // namespace content
85 85
86 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ 86 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698