| OLD | NEW |
| 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 #include "chrome/browser/net/load_timing_observer.h" | 5 #include "chrome/browser/net/load_timing_observer.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "chrome/browser/net/chrome_net_log.h" | 8 #include "chrome/browser/net/chrome_net_log.h" |
| 9 #include "chrome/common/resource_response.h" | |
| 10 #include "content/browser/browser_thread.h" | 9 #include "content/browser/browser_thread.h" |
| 10 #include "content/common/resource_response.h" |
| 11 #include "net/base/load_flags.h" | 11 #include "net/base/load_flags.h" |
| 12 #include "net/url_request/url_request.h" | 12 #include "net/url_request/url_request.h" |
| 13 #include "net/url_request/url_request_netlog_params.h" | 13 #include "net/url_request/url_request_netlog_params.h" |
| 14 | 14 |
| 15 using base::Time; | 15 using base::Time; |
| 16 using base::TimeTicks; | 16 using base::TimeTicks; |
| 17 using webkit_glue::ResourceLoaderBridge; | 17 using webkit_glue::ResourceLoaderBridge; |
| 18 using webkit_glue::ResourceLoadTimingInfo; | 18 using webkit_glue::ResourceLoadTimingInfo; |
| 19 | 19 |
| 20 const size_t kMaxNumEntries = 1000; | 20 const size_t kMaxNumEntries = 1000; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 if (it == socket_to_record_.end()) | 295 if (it == socket_to_record_.end()) |
| 296 return; | 296 return; |
| 297 | 297 |
| 298 if (type == net::NetLog::TYPE_SSL_CONNECT) { | 298 if (type == net::NetLog::TYPE_SSL_CONNECT) { |
| 299 if (is_begin) | 299 if (is_begin) |
| 300 it->second.ssl_start = time; | 300 it->second.ssl_start = time; |
| 301 else if (is_end) | 301 else if (is_end) |
| 302 it->second.ssl_end = time; | 302 it->second.ssl_end = time; |
| 303 } | 303 } |
| 304 } | 304 } |
| OLD | NEW |