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

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

Issue 11238044: Refactor BaseFile methods to return a DownloadInterruptReason instead of a net::Error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Returns NetLog parameters when a DownloadFile is renamed. 73 // Returns NetLog parameters when a DownloadFile is renamed.
74 base::Value* FileRenamedCallback(const FilePath* old_filename, 74 base::Value* FileRenamedCallback(const FilePath* old_filename,
75 const FilePath* new_filename, 75 const FilePath* new_filename,
76 net::NetLog::LogLevel log_level); 76 net::NetLog::LogLevel log_level);
77 77
78 // Returns NetLog parameters when a File has an error. 78 // Returns NetLog parameters when a File has an error.
79 base::Value* FileErrorCallback(const char* operation, 79 base::Value* FileErrorCallback(const char* operation,
80 net::Error net_error, 80 net::Error net_error,
81 net::NetLog::LogLevel log_level); 81 net::NetLog::LogLevel log_level);
82 82
83 base::Value* FileInterruptedCallback(const char* operation,
84 int os_error,
85 content::DownloadInterruptReason reason,
86 net::NetLog::LogLevel log_level);
87
83 } // namespace download_net_logs 88 } // namespace download_net_logs
84 89
85 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ 90 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698