| 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 #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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |