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

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

Issue 2789623005: Add UMA metric to track parallel download requests stats. (Closed)
Patch Set: Work on feedback. Created 3 years, 8 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
« no previous file with comments | « no previous file | content/browser/download/download_request_core.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CREATE_INFO_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // The size of the response body. If content-length response header is not 63 // The size of the response body. If content-length response header is not
64 // presented or can't be parse, set to 0. 64 // presented or can't be parse, set to 0.
65 int64_t total_bytes; 65 int64_t total_bytes;
66 66
67 // The starting position of the initial request. 67 // The starting position of the initial request.
68 // This value matches the offset in DownloadSaveInfo. 68 // This value matches the offset in DownloadSaveInfo.
69 // TODO(xingliu): Refactor to remove |offset| and |length|. 69 // TODO(xingliu): Refactor to remove |offset| and |length|.
70 int64_t offset; 70 int64_t offset;
71 71
72 // The length of the initial request.
73 // This value matches the length in DownloadSaveInfo.
74 int64_t length;
75
76 // True if the download was initiated by user action. 72 // True if the download was initiated by user action.
77 bool has_user_gesture; 73 bool has_user_gesture;
78 74
79 base::Optional<ui::PageTransition> transition_type; 75 base::Optional<ui::PageTransition> transition_type;
80 76
81 // The remote IP address where the download was fetched from. Copied from 77 // The remote IP address where the download was fetched from. Copied from
82 // UrlRequest::GetSocketAddress(). 78 // UrlRequest::GetSocketAddress().
83 std::string remote_address; 79 std::string remote_address;
84 80
85 // If the download is initially created in an interrupted state (because the 81 // If the download is initially created in an interrupted state (because the
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // The HTTP connection type. 123 // The HTTP connection type.
128 net::HttpResponseInfo::ConnectionInfo connection_info; 124 net::HttpResponseInfo::ConnectionInfo connection_info;
129 125
130 private: 126 private:
131 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); 127 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo);
132 }; 128 };
133 129
134 } // namespace content 130 } // namespace content
135 131
136 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 132 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/download/download_request_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698