| 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 #include "content/browser/devtools/devtools_netlog_observer.h" | 5 #include "content/browser/devtools/devtools_netlog_observer.h" |
| 6 | 6 |
| 7 #include "base/string_tokenizer.h" | |
| 8 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 9 #include "base/values.h" | 8 #include "base/values.h" |
| 10 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 11 #include "content/public/browser/content_browser_client.h" | 10 #include "content/public/browser/content_browser_client.h" |
| 12 #include "content/public/common/resource_response.h" | 11 #include "content/public/common/resource_response.h" |
| 13 #include "net/base/load_flags.h" | 12 #include "net/base/load_flags.h" |
| 14 #include "net/http/http_response_headers.h" | 13 #include "net/http/http_response_headers.h" |
| 15 #include "net/http/http_util.h" | 14 #include "net/http/http_util.h" |
| 16 #include "net/spdy/spdy_header_block.h" | 15 #include "net/spdy/spdy_header_block.h" |
| 17 #include "net/url_request/url_request.h" | 16 #include "net/url_request/url_request.h" |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 dev_tools_net_log_observer->request_to_encoded_data_length_.find( | 319 dev_tools_net_log_observer->request_to_encoded_data_length_.find( |
| 321 source_id); | 320 source_id); |
| 322 if (it == dev_tools_net_log_observer->request_to_encoded_data_length_.end()) | 321 if (it == dev_tools_net_log_observer->request_to_encoded_data_length_.end()) |
| 323 return -1; | 322 return -1; |
| 324 int encoded_data_length = it->second; | 323 int encoded_data_length = it->second; |
| 325 it->second = 0; | 324 it->second = 0; |
| 326 return encoded_data_length; | 325 return encoded_data_length; |
| 327 } | 326 } |
| 328 | 327 |
| 329 } // namespace content | 328 } // namespace content |
| OLD | NEW |