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