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 "chrome/browser/net/load_time_stats.h" | 5 #include "chrome/browser/net/load_time_stats.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/timer.h" | 11 #include "base/timer/timer.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/io_thread.h" | 13 #include "chrome/browser/io_thread.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/render_process_host.h" | 16 #include "content/public/browser/render_process_host.h" |
17 #include "content/public/browser/render_view_host.h" | 17 #include "content/public/browser/render_view_host.h" |
18 #include "content/public/browser/resource_request_info.h" | 18 #include "content/public/browser/resource_request_info.h" |
19 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
20 #include "net/url_request/url_request.h" | 20 #include "net/url_request/url_request.h" |
21 | 21 |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 if (type == ChromeURLRequestContext::CONTEXT_TYPE_MAIN) | 550 if (type == ChromeURLRequestContext::CONTEXT_TYPE_MAIN) |
551 main_request_contexts_.insert(context); | 551 main_request_contexts_.insert(context); |
552 } | 552 } |
553 | 553 |
554 void LoadTimeStats::UnregisterURLRequestContext( | 554 void LoadTimeStats::UnregisterURLRequestContext( |
555 const net::URLRequestContext* context) { | 555 const net::URLRequestContext* context) { |
556 main_request_contexts_.erase(context); | 556 main_request_contexts_.erase(context); |
557 } | 557 } |
558 | 558 |
559 } // namespace chrome_browser_net | 559 } // namespace chrome_browser_net |
OLD | NEW |