OLD | NEW |
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> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "content/public/browser/download_item.h" | 13 #include "content/public/browser/download_item.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 #include "net/log/net_log.h" | |
16 | 15 |
17 class GURL; | 16 class GURL; |
18 | 17 |
19 namespace base { | 18 namespace base { |
20 class FilePath; | 19 class FilePath; |
| 20 class Value; |
| 21 } |
| 22 |
| 23 namespace net { |
| 24 class NetLogCaptureMode; |
21 } | 25 } |
22 | 26 |
23 namespace content { | 27 namespace content { |
24 | 28 |
25 enum DownloadType { | 29 enum DownloadType { |
26 SRC_ACTIVE_DOWNLOAD, | 30 SRC_ACTIVE_DOWNLOAD, |
27 SRC_HISTORY_IMPORT, | 31 SRC_HISTORY_IMPORT, |
28 SRC_SAVE_PAGE_AS | 32 SRC_SAVE_PAGE_AS |
29 }; | 33 }; |
30 | 34 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // Returns NetLog parameters for a download interruption. | 106 // Returns NetLog parameters for a download interruption. |
103 std::unique_ptr<base::Value> FileInterruptedNetLogCallback( | 107 std::unique_ptr<base::Value> FileInterruptedNetLogCallback( |
104 const char* operation, | 108 const char* operation, |
105 int os_error, | 109 int os_error, |
106 DownloadInterruptReason reason, | 110 DownloadInterruptReason reason, |
107 net::NetLogCaptureMode capture_mode); | 111 net::NetLogCaptureMode capture_mode); |
108 | 112 |
109 } // namespace content | 113 } // namespace content |
110 | 114 |
111 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ | 115 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_NET_LOG_PARAMETERS_H_ |
OLD | NEW |