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 CHROME_BROWSER_NET_LOAD_TIMING_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_NET_LOAD_TIMING_OBSERVER_H_ |
6 #define CHROME_BROWSER_NET_LOAD_TIMING_OBSERVER_H_ | 6 #define CHROME_BROWSER_NET_LOAD_TIMING_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "net/base/net_log.h" | 12 #include "net/base/net_log.h" |
13 #include "webkit/glue/resource_loader_bridge.h" | 13 #include "webkit/glue/resource_loader_bridge.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 struct ResourceResponse; | 16 class ResourceResponse; |
17 } | 17 } |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 class URLRequest; | 20 class URLRequest; |
21 } // namespace net | 21 } // namespace net |
22 | 22 |
23 // LoadTimingObserver watches the NetLog event stream and collects the network | 23 // LoadTimingObserver watches the NetLog event stream and collects the network |
24 // timing information. | 24 // timing information. |
25 // | 25 // |
26 // LoadTimingObserver lives completely on the IOThread and ignores events from | 26 // LoadTimingObserver lives completely on the IOThread and ignores events from |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 HTTPStreamJobToRecordMap http_stream_job_to_record_; | 122 HTTPStreamJobToRecordMap http_stream_job_to_record_; |
123 ConnectJobToRecordMap connect_job_to_record_; | 123 ConnectJobToRecordMap connect_job_to_record_; |
124 SocketToRecordMap socket_to_record_; | 124 SocketToRecordMap socket_to_record_; |
125 uint32 last_connect_job_id_; | 125 uint32 last_connect_job_id_; |
126 ConnectJobRecord last_connect_job_record_; | 126 ConnectJobRecord last_connect_job_record_; |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(LoadTimingObserver); | 128 DISALLOW_COPY_AND_ASSIGN(LoadTimingObserver); |
129 }; | 129 }; |
130 | 130 |
131 #endif // CHROME_BROWSER_NET_LOAD_TIMING_OBSERVER_H_ | 131 #endif // CHROME_BROWSER_NET_LOAD_TIMING_OBSERVER_H_ |
OLD | NEW |