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_DEBUGGER_DEVTOOLS_NETLOG_OBSERVER_H_ | 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_NETLOG_OBSERVER_H_ |
6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_NETLOG_OBSERVER_H_ | 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_NETLOG_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "net/base/net_log.h" | 11 #include "net/base/net_log.h" |
12 #include "webkit/glue/resource_loader_bridge.h" | 12 #include "webkit/glue/resource_loader_bridge.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 struct ResourceResponse; | 15 class ResourceResponse; |
16 } | 16 } |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 class URLRequest; | 19 class URLRequest; |
20 } // namespace net | 20 } // namespace net |
21 | 21 |
22 // DevToolsNetLogObserver watches the NetLog event stream and collects the | 22 // DevToolsNetLogObserver watches the NetLog event stream and collects the |
23 // stuff that may be of interest to DevTools. Currently, this only includes | 23 // stuff that may be of interest to DevTools. Currently, this only includes |
24 // actual HTTP/SPDY headers sent and received over the network. | 24 // actual HTTP/SPDY headers sent and received over the network. |
25 // | 25 // |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 typedef base::hash_map<uint32, uint32> SocketToRequestMap; | 79 typedef base::hash_map<uint32, uint32> SocketToRequestMap; |
80 RequestToInfoMap request_to_info_; | 80 RequestToInfoMap request_to_info_; |
81 RequestToEncodedDataLengthMap request_to_encoded_data_length_; | 81 RequestToEncodedDataLengthMap request_to_encoded_data_length_; |
82 HTTPStreamJobToSocketMap http_stream_job_to_socket_; | 82 HTTPStreamJobToSocketMap http_stream_job_to_socket_; |
83 SocketToRequestMap socket_to_request_; | 83 SocketToRequestMap socket_to_request_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(DevToolsNetLogObserver); | 85 DISALLOW_COPY_AND_ASSIGN(DevToolsNetLogObserver); |
86 }; | 86 }; |
87 | 87 |
88 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_NETLOG_OBSERVER_H_ | 88 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_NETLOG_OBSERVER_H_ |
OLD | NEW |