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

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

Issue 9639001: Move download interrupt reasons to content\public (the enum that's used by chrome). The rest keep i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nits Created 8 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 | 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 private: 95 private:
96 const std::string old_filename_; 96 const std::string old_filename_;
97 const std::string new_filename_; 97 const std::string new_filename_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(ItemRenamedParameters); 99 DISALLOW_COPY_AND_ASSIGN(ItemRenamedParameters);
100 }; 100 };
101 101
102 // NetLog parameters when a DownloadItem is interrupted. 102 // NetLog parameters when a DownloadItem is interrupted.
103 class ItemInterruptedParameters : public net::NetLog::EventParameters { 103 class ItemInterruptedParameters : public net::NetLog::EventParameters {
104 public: 104 public:
105 ItemInterruptedParameters(InterruptReason reason, 105 ItemInterruptedParameters(content::DownloadInterruptReason reason,
106 int64 bytes_so_far, 106 int64 bytes_so_far,
107 const std::string& hash_state); 107 const std::string& hash_state);
108 virtual base::Value* ToValue() const OVERRIDE; 108 virtual base::Value* ToValue() const OVERRIDE;
109 109
110 private: 110 private:
111 const InterruptReason reason_; 111 const content::DownloadInterruptReason reason_;
112 const int64 bytes_so_far_; 112 const int64 bytes_so_far_;
113 const std::string hash_state_; 113 const std::string hash_state_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(ItemInterruptedParameters); 115 DISALLOW_COPY_AND_ASSIGN(ItemInterruptedParameters);
116 }; 116 };
117 117
118 // NetLog parameters when a DownloadItem is finished. 118 // NetLog parameters when a DownloadItem is finished.
119 class ItemFinishedParameters : public net::NetLog::EventParameters { 119 class ItemFinishedParameters : public net::NetLog::EventParameters {
120 public: 120 public:
121 ItemFinishedParameters(int64 bytes_so_far, const std::string& final_hash); 121 ItemFinishedParameters(int64 bytes_so_far, const std::string& final_hash);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 private: 178 private:
179 const std::string operation_; 179 const std::string operation_;
180 const net::Error net_error_; 180 const net::Error net_error_;
181 181
182 DISALLOW_COPY_AND_ASSIGN(FileErrorParameters); 182 DISALLOW_COPY_AND_ASSIGN(FileErrorParameters);
183 }; 183 };
184 184
185 } // namespace download_net_logs 185 } // namespace download_net_logs
186 186
187 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ 187 #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