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

Side by Side Diff: net/url_request/url_request_job_metrics.h

Issue 6085013: Start reordering the methods in headers in net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Records IO statistics associated with a net::URLRequestJob. 5 // Records IO statistics associated with a net::URLRequestJob.
6 // See description in navigation_profiler.h for an overview of perf profiling. 6 // See description in navigation_profiler.h for an overview of perf profiling.
7 7
8 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_METRICS_H_ 8 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_METRICS_H_
9 #define NET_URL_REQUEST_URL_REQUEST_JOB_METRICS_H_ 9 #define NET_URL_REQUEST_URL_REQUEST_JOB_METRICS_H_
10 #pragma once 10 #pragma once
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/scoped_ptr.h" 15 #include "base/scoped_ptr.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 18
19 namespace net { 19 namespace net {
20 20
21 class URLRequestJobMetrics { 21 class URLRequestJobMetrics {
22 public: 22 public:
23 URLRequestJobMetrics(); 23 URLRequestJobMetrics();
24 ~URLRequestJobMetrics(); 24 ~URLRequestJobMetrics();
25 25
26 // Append the text report of the frame loading to the input string.
27 void AppendText(std::wstring* text);
28
26 // The original url the job has been created for. 29 // The original url the job has been created for.
27 scoped_ptr<GURL> original_url_; 30 scoped_ptr<GURL> original_url_;
28 31
29 // The actual url the job connects to. If the actual url is same as the 32 // The actual url the job connects to. If the actual url is same as the
30 // original url, url_ is empty. 33 // original url, url_ is empty.
31 scoped_ptr<GURL> url_; 34 scoped_ptr<GURL> url_;
32 35
33 // Time when the job starts. 36 // Time when the job starts.
34 base::TimeTicks start_time_; 37 base::TimeTicks start_time_;
35 38
36 // Time when the job is done. 39 // Time when the job is done.
37 base::TimeTicks end_time_; 40 base::TimeTicks end_time_;
38 41
39 // Total number of bytes the job reads from underline IO. 42 // Total number of bytes the job reads from underline IO.
40 int64 total_bytes_read_; 43 int64 total_bytes_read_;
41 44
42 // Number of IO read operations the job issues. 45 // Number of IO read operations the job issues.
43 int number_of_read_IO_; 46 int number_of_read_IO_;
44 47
45 // Final status of the job. 48 // Final status of the job.
46 bool success_; 49 bool success_;
47
48 // Append the text report of the frame loading to the input string.
49 void AppendText(std::wstring* text);
50 }; 50 };
51 51
52 } // namespace net 52 } // namespace net
53 53
54 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_METRICS_H_ 54 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698