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

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

Issue 3814013: FBTF: Monster ctor patch after changing heuristics in clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: More add file fail Created 10 years, 2 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
« no previous file with comments | « net/url_request/url_request_job_manager.cc ('k') | net/url_request/url_request_job_metrics.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) 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 URLRequestJob. 5 // Records IO statistics associated with a 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 class URLRequestJobMetrics { 19 class URLRequestJobMetrics {
20 public: 20 public:
21 URLRequestJobMetrics() 21 URLRequestJobMetrics();
22 : total_bytes_read_(0), 22 ~URLRequestJobMetrics();
23 number_of_read_IO_(0),
24 success_(false) { }
25 ~URLRequestJobMetrics() { }
26 23
27 // The original url the job has been created for. 24 // The original url the job has been created for.
28 scoped_ptr<GURL> original_url_; 25 scoped_ptr<GURL> original_url_;
29 26
30 // The actual url the job connects to. If the actual url is same as the 27 // The actual url the job connects to. If the actual url is same as the
31 // original url, url_ is empty. 28 // original url, url_ is empty.
32 scoped_ptr<GURL> url_; 29 scoped_ptr<GURL> url_;
33 30
34 // Time when the job starts. 31 // Time when the job starts.
35 base::TimeTicks start_time_; 32 base::TimeTicks start_time_;
36 33
37 // Time when the job is done. 34 // Time when the job is done.
38 base::TimeTicks end_time_; 35 base::TimeTicks end_time_;
39 36
40 // Total number of bytes the job reads from underline IO. 37 // Total number of bytes the job reads from underline IO.
41 int64 total_bytes_read_; 38 int64 total_bytes_read_;
42 39
43 // Number of IO read operations the job issues. 40 // Number of IO read operations the job issues.
44 int number_of_read_IO_; 41 int number_of_read_IO_;
45 42
46 // Final status of the job. 43 // Final status of the job.
47 bool success_; 44 bool success_;
48 45
49 // Append the text report of the frame loading to the input string. 46 // Append the text report of the frame loading to the input string.
50 void AppendText(std::wstring* text); 47 void AppendText(std::wstring* text);
51 }; 48 };
52 49
53 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_METRICS_H_ 50 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_METRICS_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_job_manager.cc ('k') | net/url_request/url_request_job_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698