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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 protected: | 174 protected: |
175 virtual ~FileOpenedParameters(); | 175 virtual ~FileOpenedParameters(); |
176 | 176 |
177 private: | 177 private: |
178 const std::string file_name_; | 178 const std::string file_name_; |
179 const int64 start_offset_; | 179 const int64 start_offset_; |
180 | 180 |
181 DISALLOW_COPY_AND_ASSIGN(FileOpenedParameters); | 181 DISALLOW_COPY_AND_ASSIGN(FileOpenedParameters); |
182 }; | 182 }; |
183 | 183 |
| 184 // NetLog parameters when a DownloadFile is opened. |
| 185 class FileStreamDrainedParameters : public net::NetLog::EventParameters { |
| 186 public: |
| 187 FileStreamDrainedParameters(size_t stream_size, |
| 188 size_t num_buffers); |
| 189 virtual base::Value* ToValue() const OVERRIDE; |
| 190 |
| 191 protected: |
| 192 virtual ~FileStreamDrainedParameters(); |
| 193 |
| 194 private: |
| 195 const size_t stream_size_; |
| 196 const size_t num_buffers_; |
| 197 |
| 198 DISALLOW_COPY_AND_ASSIGN(FileStreamDrainedParameters); |
| 199 }; |
| 200 |
184 // NetLog parameters when a DownloadFile is renamed. | 201 // NetLog parameters when a DownloadFile is renamed. |
185 class FileRenamedParameters : public net::NetLog::EventParameters { | 202 class FileRenamedParameters : public net::NetLog::EventParameters { |
186 public: | 203 public: |
187 FileRenamedParameters( | 204 FileRenamedParameters( |
188 const std::string& old_filename, const std::string& new_filename); | 205 const std::string& old_filename, const std::string& new_filename); |
189 virtual base::Value* ToValue() const OVERRIDE; | 206 virtual base::Value* ToValue() const OVERRIDE; |
190 | 207 |
191 protected: | 208 protected: |
192 virtual ~FileRenamedParameters(); | 209 virtual ~FileRenamedParameters(); |
193 | 210 |
(...skipping 16 matching lines...) Expand all Loading... |
210 private: | 227 private: |
211 const std::string operation_; | 228 const std::string operation_; |
212 const net::Error net_error_; | 229 const net::Error net_error_; |
213 | 230 |
214 DISALLOW_COPY_AND_ASSIGN(FileErrorParameters); | 231 DISALLOW_COPY_AND_ASSIGN(FileErrorParameters); |
215 }; | 232 }; |
216 | 233 |
217 } // namespace download_net_logs | 234 } // namespace download_net_logs |
218 | 235 |
219 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ | 236 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ |
OLD | NEW |