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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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
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 <stddef.h>
9 #include <stdint.h>
10
8 #include <string> 11 #include <string>
9 12
10 #include "content/public/browser/download_item.h" 13 #include "content/public/browser/download_item.h"
11 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
12 #include "net/log/net_log.h" 15 #include "net/log/net_log.h"
13 16
14 class GURL; 17 class GURL;
15 18
16 namespace base { 19 namespace base {
17 class FilePath; 20 class FilePath;
(...skipping 21 matching lines...) Expand all
39 42
40 // Returns NetLog parameters when a DownloadItem is renamed. 43 // Returns NetLog parameters when a DownloadItem is renamed.
41 scoped_ptr<base::Value> ItemRenamedNetLogCallback( 44 scoped_ptr<base::Value> ItemRenamedNetLogCallback(
42 const base::FilePath* old_filename, 45 const base::FilePath* old_filename,
43 const base::FilePath* new_filename, 46 const base::FilePath* new_filename,
44 net::NetLogCaptureMode capture_mode); 47 net::NetLogCaptureMode capture_mode);
45 48
46 // Returns NetLog parameters when a DownloadItem is interrupted. 49 // Returns NetLog parameters when a DownloadItem is interrupted.
47 scoped_ptr<base::Value> ItemInterruptedNetLogCallback( 50 scoped_ptr<base::Value> ItemInterruptedNetLogCallback(
48 DownloadInterruptReason reason, 51 DownloadInterruptReason reason,
49 int64 bytes_so_far, 52 int64_t bytes_so_far,
50 const std::string* hash_state, 53 const std::string* hash_state,
51 net::NetLogCaptureMode capture_mode); 54 net::NetLogCaptureMode capture_mode);
52 55
53 // Returns NetLog parameters when a DownloadItem is resumed. 56 // Returns NetLog parameters when a DownloadItem is resumed.
54 scoped_ptr<base::Value> ItemResumingNetLogCallback( 57 scoped_ptr<base::Value> ItemResumingNetLogCallback(
55 bool user_initiated, 58 bool user_initiated,
56 DownloadInterruptReason reason, 59 DownloadInterruptReason reason,
57 int64 bytes_so_far, 60 int64_t bytes_so_far,
58 const std::string* hash_state, 61 const std::string* hash_state,
59 net::NetLogCaptureMode capture_mode); 62 net::NetLogCaptureMode capture_mode);
60 63
61 // Returns NetLog parameters when a DownloadItem is completing. 64 // Returns NetLog parameters when a DownloadItem is completing.
62 scoped_ptr<base::Value> ItemCompletingNetLogCallback( 65 scoped_ptr<base::Value> ItemCompletingNetLogCallback(
63 int64 bytes_so_far, 66 int64_t bytes_so_far,
64 const std::string* final_hash, 67 const std::string* final_hash,
65 net::NetLogCaptureMode capture_mode); 68 net::NetLogCaptureMode capture_mode);
66 69
67 // Returns NetLog parameters when a DownloadItem is finished. 70 // Returns NetLog parameters when a DownloadItem is finished.
68 scoped_ptr<base::Value> ItemFinishedNetLogCallback( 71 scoped_ptr<base::Value> ItemFinishedNetLogCallback(
69 bool auto_opened, 72 bool auto_opened,
70 net::NetLogCaptureMode capture_mode); 73 net::NetLogCaptureMode capture_mode);
71 74
72 // Returns NetLog parameters when a DownloadItem is canceled. 75 // Returns NetLog parameters when a DownloadItem is canceled.
73 scoped_ptr<base::Value> ItemCanceledNetLogCallback( 76 scoped_ptr<base::Value> ItemCanceledNetLogCallback(
74 int64 bytes_so_far, 77 int64_t bytes_so_far,
75 const std::string* hash_state, 78 const std::string* hash_state,
76 net::NetLogCaptureMode capture_mode); 79 net::NetLogCaptureMode capture_mode);
77 80
78 // Returns NetLog parameters when a DownloadFile is opened. 81 // Returns NetLog parameters when a DownloadFile is opened.
79 scoped_ptr<base::Value> FileOpenedNetLogCallback( 82 scoped_ptr<base::Value> FileOpenedNetLogCallback(
80 const base::FilePath* file_name, 83 const base::FilePath* file_name,
81 int64 start_offset, 84 int64_t start_offset,
82 net::NetLogCaptureMode capture_mode); 85 net::NetLogCaptureMode capture_mode);
83 86
84 // Returns NetLog parameters when a DownloadFile is opened. 87 // Returns NetLog parameters when a DownloadFile is opened.
85 scoped_ptr<base::Value> FileStreamDrainedNetLogCallback( 88 scoped_ptr<base::Value> FileStreamDrainedNetLogCallback(
86 size_t stream_size, 89 size_t stream_size,
87 size_t num_buffers, 90 size_t num_buffers,
88 net::NetLogCaptureMode capture_mode); 91 net::NetLogCaptureMode capture_mode);
89 92
90 // Returns NetLog parameters when a DownloadFile is renamed. 93 // Returns NetLog parameters when a DownloadFile is renamed.
91 scoped_ptr<base::Value> FileRenamedNetLogCallback( 94 scoped_ptr<base::Value> FileRenamedNetLogCallback(
(...skipping 10 matching lines...) Expand all
102 // Returns NetLog parameters for a download interruption. 105 // Returns NetLog parameters for a download interruption.
103 scoped_ptr<base::Value> FileInterruptedNetLogCallback( 106 scoped_ptr<base::Value> FileInterruptedNetLogCallback(
104 const char* operation, 107 const char* operation,
105 int os_error, 108 int os_error,
106 DownloadInterruptReason reason, 109 DownloadInterruptReason reason,
107 net::NetLogCaptureMode capture_mode); 110 net::NetLogCaptureMode capture_mode);
108 111
109 } // namespace content 112 } // namespace content
110 113
111 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ 114 #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