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

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

Issue 10950015: Shift "commit point" for when a download will no longer accept cancels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to LKGR. Created 8 years, 3 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 28 matching lines...) Expand all
39 base::Value* ItemRenamedCallback(const FilePath* old_filename, 39 base::Value* ItemRenamedCallback(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* ItemInterruptedCallback(content::DownloadInterruptReason reason, 44 base::Value* ItemInterruptedCallback(content::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 completing.
50 base::Value* ItemCompletingCallback(int64 bytes_so_far,
51 const std::string* final_hash,
52 net::NetLog::LogLevel log_level);
53
49 // Returns NetLog parameters when a DownloadItem is finished. 54 // Returns NetLog parameters when a DownloadItem is finished.
50 base::Value* ItemFinishedCallback(int64 bytes_so_far, 55 base::Value* ItemFinishedCallback(bool auto_opened,
51 const std::string* final_hash,
52 net::NetLog::LogLevel log_level); 56 net::NetLog::LogLevel log_level);
53 57
54 // Returns NetLog parameters when a DownloadItem is canceled. 58 // Returns NetLog parameters when a DownloadItem is canceled.
55 base::Value* ItemCanceledCallback(int64 bytes_so_far, 59 base::Value* ItemCanceledCallback(int64 bytes_so_far,
56 const std::string* hash_state, 60 const std::string* hash_state,
57 net::NetLog::LogLevel log_level); 61 net::NetLog::LogLevel log_level);
58 62
59 // Returns NetLog parameters when a DownloadFile is opened. 63 // Returns NetLog parameters when a DownloadFile is opened.
60 base::Value* FileOpenedCallback(const FilePath* file_name, 64 base::Value* FileOpenedCallback(const FilePath* file_name,
61 int64 start_offset, 65 int64 start_offset,
(...skipping 10 matching lines...) Expand all
72 net::NetLog::LogLevel log_level); 76 net::NetLog::LogLevel log_level);
73 77
74 // Returns NetLog parameters when a File has an error. 78 // Returns NetLog parameters when a File has an error.
75 base::Value* FileErrorCallback(const char* operation, 79 base::Value* FileErrorCallback(const char* operation,
76 net::Error net_error, 80 net::Error net_error,
77 net::NetLog::LogLevel log_level); 81 net::NetLog::LogLevel log_level);
78 82
79 } // namespace download_net_logs 83 } // namespace download_net_logs
80 84
81 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ 85 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_item_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