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/io_thread.h" | 5 #include "chrome/browser/io_thread.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/leak_tracker.h" | 10 #include "base/debug/leak_tracker.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
13 #include "base/stl_util-inl.h" | 13 #include "base/stl_util-inl.h" |
14 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
15 #include "base/string_split.h" | 15 #include "base/string_split.h" |
16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
17 #include "base/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
18 #include "chrome/browser/browser_thread.h" | 18 #include "chrome/browser/browser_thread.h" |
19 #include "chrome/browser/gpu_process_host.h" | 19 #include "chrome/browser/gpu_process_host.h" |
20 #include "chrome/browser/net/chrome_net_log.h" | 20 #include "chrome/browser/net/chrome_net_log.h" |
21 #include "chrome/browser/net/chrome_url_request_context.h" | 21 #include "chrome/browser/net/chrome_url_request_context.h" |
22 #include "chrome/browser/net/connect_interceptor.h" | 22 #include "chrome/browser/net/connect_interceptor.h" |
23 #include "chrome/browser/net/passive_log_collector.h" | 23 #include "chrome/browser/net/passive_log_collector.h" |
24 #include "chrome/browser/net/predictor_api.h" | 24 #include "chrome/browser/net/predictor_api.h" |
25 #include "chrome/browser/prefs/pref_service.h" | 25 #include "chrome/browser/prefs/pref_service.h" |
26 #include "chrome/browser/prerender/prerender_interceptor.h" | 26 #include "chrome/browser/prerender/prerender_interceptor.h" |
27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 net::HostCache* host_cache = | 514 net::HostCache* host_cache = |
515 globals_->host_resolver.get()->GetAsHostResolverImpl()->cache(); | 515 globals_->host_resolver.get()->GetAsHostResolverImpl()->cache(); |
516 if (host_cache) | 516 if (host_cache) |
517 host_cache->clear(); | 517 host_cache->clear(); |
518 } | 518 } |
519 // Clear all of the passively logged data. | 519 // Clear all of the passively logged data. |
520 // TODO(eroman): this is a bit heavy handed, really all we need to do is | 520 // TODO(eroman): this is a bit heavy handed, really all we need to do is |
521 // clear the data pertaining to off the record context. | 521 // clear the data pertaining to off the record context. |
522 net_log_->ClearAllPassivelyCapturedEvents(); | 522 net_log_->ClearAllPassivelyCapturedEvents(); |
523 } | 523 } |
OLD | NEW |