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

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

Issue 1751603002: [Downloads] Rework how hashes are calculated for download files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of https://codereview.chromium.org/1781983002 since that's going in first. Created 4 years, 9 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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Returns NetLog parameters when a DownloadItem is renamed. 43 // Returns NetLog parameters when a DownloadItem is renamed.
44 scoped_ptr<base::Value> ItemRenamedNetLogCallback( 44 scoped_ptr<base::Value> ItemRenamedNetLogCallback(
45 const base::FilePath* old_filename, 45 const base::FilePath* old_filename,
46 const base::FilePath* new_filename, 46 const base::FilePath* new_filename,
47 net::NetLogCaptureMode capture_mode); 47 net::NetLogCaptureMode capture_mode);
48 48
49 // Returns NetLog parameters when a DownloadItem is interrupted. 49 // Returns NetLog parameters when a DownloadItem is interrupted.
50 scoped_ptr<base::Value> ItemInterruptedNetLogCallback( 50 scoped_ptr<base::Value> ItemInterruptedNetLogCallback(
51 DownloadInterruptReason reason, 51 DownloadInterruptReason reason,
52 int64_t bytes_so_far, 52 int64_t bytes_so_far,
53 const std::string* hash_state,
54 net::NetLogCaptureMode capture_mode); 53 net::NetLogCaptureMode capture_mode);
55 54
56 // Returns NetLog parameters when a DownloadItem is resumed. 55 // Returns NetLog parameters when a DownloadItem is resumed.
57 scoped_ptr<base::Value> ItemResumingNetLogCallback( 56 scoped_ptr<base::Value> ItemResumingNetLogCallback(
58 bool user_initiated, 57 bool user_initiated,
59 DownloadInterruptReason reason, 58 DownloadInterruptReason reason,
60 int64_t bytes_so_far, 59 int64_t bytes_so_far,
61 const std::string* hash_state,
62 net::NetLogCaptureMode capture_mode); 60 net::NetLogCaptureMode capture_mode);
63 61
64 // Returns NetLog parameters when a DownloadItem is completing. 62 // Returns NetLog parameters when a DownloadItem is completing.
65 scoped_ptr<base::Value> ItemCompletingNetLogCallback( 63 scoped_ptr<base::Value> ItemCompletingNetLogCallback(
66 int64_t bytes_so_far, 64 int64_t bytes_so_far,
67 const std::string* final_hash, 65 const std::string* final_hash,
68 net::NetLogCaptureMode capture_mode); 66 net::NetLogCaptureMode capture_mode);
69 67
70 // Returns NetLog parameters when a DownloadItem is finished. 68 // Returns NetLog parameters when a DownloadItem is finished.
71 scoped_ptr<base::Value> ItemFinishedNetLogCallback( 69 scoped_ptr<base::Value> ItemFinishedNetLogCallback(
72 bool auto_opened, 70 bool auto_opened,
73 net::NetLogCaptureMode capture_mode); 71 net::NetLogCaptureMode capture_mode);
74 72
75 // Returns NetLog parameters when a DownloadItem is canceled. 73 // Returns NetLog parameters when a DownloadItem is canceled.
76 scoped_ptr<base::Value> ItemCanceledNetLogCallback( 74 scoped_ptr<base::Value> ItemCanceledNetLogCallback(
77 int64_t bytes_so_far, 75 int64_t bytes_so_far,
78 const std::string* hash_state,
79 net::NetLogCaptureMode capture_mode); 76 net::NetLogCaptureMode capture_mode);
80 77
81 // Returns NetLog parameters when a DownloadFile is opened. 78 // Returns NetLog parameters when a DownloadFile is opened.
82 scoped_ptr<base::Value> FileOpenedNetLogCallback( 79 scoped_ptr<base::Value> FileOpenedNetLogCallback(
83 const base::FilePath* file_name, 80 const base::FilePath* file_name,
84 int64_t start_offset, 81 int64_t start_offset,
85 net::NetLogCaptureMode capture_mode); 82 net::NetLogCaptureMode capture_mode);
86 83
87 // Returns NetLog parameters when a DownloadFile is opened. 84 // Returns NetLog parameters when a DownloadFile is opened.
88 scoped_ptr<base::Value> FileStreamDrainedNetLogCallback( 85 scoped_ptr<base::Value> FileStreamDrainedNetLogCallback(
(...skipping 16 matching lines...) Expand all
105 // Returns NetLog parameters for a download interruption. 102 // Returns NetLog parameters for a download interruption.
106 scoped_ptr<base::Value> FileInterruptedNetLogCallback( 103 scoped_ptr<base::Value> FileInterruptedNetLogCallback(
107 const char* operation, 104 const char* operation,
108 int os_error, 105 int os_error,
109 DownloadInterruptReason reason, 106 DownloadInterruptReason reason,
110 net::NetLogCaptureMode capture_mode); 107 net::NetLogCaptureMode capture_mode);
111 108
112 } // namespace content 109 } // namespace content
113 110
114 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ 111 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/browser/download/download_net_log_parameters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698