| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/public/browser/download_item.h" | 10 #include "content/public/browser/download_item.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 base::Value* ItemRenamedNetLogCallback(const FilePath* old_filename, | 39 base::Value* ItemRenamedNetLogCallback(const FilePath* old_filename, |
| 40 const FilePath* new_filename, | 40 const FilePath* new_filename, |
| 41 net::NetLog::LogLevel log_level); | 41 net::NetLog::LogLevel log_level); |
| 42 | 42 |
| 43 // Returns NetLog parameters when a DownloadItem is interrupted. | 43 // Returns NetLog parameters when a DownloadItem is interrupted. |
| 44 base::Value* ItemInterruptedNetLogCallback(DownloadInterruptReason reason, | 44 base::Value* ItemInterruptedNetLogCallback(DownloadInterruptReason reason, |
| 45 int64 bytes_so_far, | 45 int64 bytes_so_far, |
| 46 const std::string* hash_state, | 46 const std::string* hash_state, |
| 47 net::NetLog::LogLevel log_level); | 47 net::NetLog::LogLevel log_level); |
| 48 | 48 |
| 49 // Returns NetLog parameters when a DownloadItem is resumed. |
| 50 base::Value* ItemResumingNetLogCallback(bool user_initiated, |
| 51 DownloadInterruptReason reason, |
| 52 int64 bytes_so_far, |
| 53 const std::string* hash_state, |
| 54 net::NetLog::LogLevel log_level); |
| 55 |
| 56 // Returns NetLog parameters when a DownloadItem is resumed after an |
| 57 // interruption. |
| 58 base::Value* ItemResumingCallback(bool user_initiated, |
| 59 content::DownloadInterruptReason reason, |
| 60 int64 bytes_so_far, |
| 61 const std::string* hash_state, |
| 62 net::NetLog::LogLevel log_level); |
| 63 |
| 49 // Returns NetLog parameters when a DownloadItem is completing. | 64 // Returns NetLog parameters when a DownloadItem is completing. |
| 50 base::Value* ItemCompletingNetLogCallback(int64 bytes_so_far, | 65 base::Value* ItemCompletingNetLogCallback(int64 bytes_so_far, |
| 51 const std::string* final_hash, | 66 const std::string* final_hash, |
| 52 net::NetLog::LogLevel log_level); | 67 net::NetLog::LogLevel log_level); |
| 53 | 68 |
| 54 // Returns NetLog parameters when a DownloadItem is finished. | 69 // Returns NetLog parameters when a DownloadItem is finished. |
| 55 base::Value* ItemFinishedNetLogCallback(bool auto_opened, | 70 base::Value* ItemFinishedNetLogCallback(bool auto_opened, |
| 56 net::NetLog::LogLevel log_level); | 71 net::NetLog::LogLevel log_level); |
| 57 | 72 |
| 58 // Returns NetLog parameters when a DownloadItem is canceled. | 73 // Returns NetLog parameters when a DownloadItem is canceled. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 82 | 97 |
| 83 // Returns NetLog parameters for a download interruption. | 98 // Returns NetLog parameters for a download interruption. |
| 84 base::Value* FileInterruptedNetLogCallback(const char* operation, | 99 base::Value* FileInterruptedNetLogCallback(const char* operation, |
| 85 int os_error, | 100 int os_error, |
| 86 DownloadInterruptReason reason, | 101 DownloadInterruptReason reason, |
| 87 net::NetLog::LogLevel log_level); | 102 net::NetLog::LogLevel log_level); |
| 88 | 103 |
| 89 } // namespace content | 104 } // namespace content |
| 90 | 105 |
| 91 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ | 106 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ |
| OLD | NEW |