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

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

Issue 10074001: Initial implementation of the ByteStream refactor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Checkpoint and merge to LKGR. Created 8 years, 8 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 int64 start_offset); 148 int64 start_offset);
149 virtual base::Value* ToValue() const OVERRIDE; 149 virtual base::Value* ToValue() const OVERRIDE;
150 150
151 private: 151 private:
152 const std::string file_name_; 152 const std::string file_name_;
153 const int64 start_offset_; 153 const int64 start_offset_;
154 154
155 DISALLOW_COPY_AND_ASSIGN(FileOpenedParameters); 155 DISALLOW_COPY_AND_ASSIGN(FileOpenedParameters);
156 }; 156 };
157 157
158 // NetLog parameters when a DownloadFile is opened.
159 class FilePipeDrainedParameters : public net::NetLog::EventParameters {
160 public:
161 FilePipeDrainedParameters(size_t pipe_size,
162 size_t num_buffers);
163 virtual base::Value* ToValue() const OVERRIDE;
164
165 private:
166 const size_t pipe_size_;
167 const size_t num_buffers_;
168
169 DISALLOW_COPY_AND_ASSIGN(FilePipeDrainedParameters);
170 };
171
158 // NetLog parameters when a DownloadFile is renamed. 172 // NetLog parameters when a DownloadFile is renamed.
159 class FileRenamedParameters : public net::NetLog::EventParameters { 173 class FileRenamedParameters : public net::NetLog::EventParameters {
160 public: 174 public:
161 FileRenamedParameters( 175 FileRenamedParameters(
162 const std::string& old_filename, const std::string& new_filename); 176 const std::string& old_filename, const std::string& new_filename);
163 virtual base::Value* ToValue() const OVERRIDE; 177 virtual base::Value* ToValue() const OVERRIDE;
164 178
165 private: 179 private:
166 const std::string old_filename_; 180 const std::string old_filename_;
167 const std::string new_filename_; 181 const std::string new_filename_;
(...skipping 10 matching lines...) Expand all
178 private: 192 private:
179 const std::string operation_; 193 const std::string operation_;
180 const net::Error net_error_; 194 const net::Error net_error_;
181 195
182 DISALLOW_COPY_AND_ASSIGN(FileErrorParameters); 196 DISALLOW_COPY_AND_ASSIGN(FileErrorParameters);
183 }; 197 };
184 198
185 } // namespace download_net_logs 199 } // namespace download_net_logs
186 200
187 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ 201 #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