| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/leak_tracker.h" | 8 #include "base/leak_tracker.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| 11 #include "base/string_split.h" |
| 11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 13 #include "chrome/browser/chrome_thread.h" | 14 #include "chrome/browser/chrome_thread.h" |
| 14 #include "chrome/browser/gpu_process_host.h" | 15 #include "chrome/browser/gpu_process_host.h" |
| 15 #include "chrome/browser/net/chrome_net_log.h" | 16 #include "chrome/browser/net/chrome_net_log.h" |
| 16 #include "chrome/browser/net/predictor_api.h" | 17 #include "chrome/browser/net/predictor_api.h" |
| 17 #include "chrome/browser/net/passive_log_collector.h" | 18 #include "chrome/browser/net/passive_log_collector.h" |
| 18 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
| 19 #include "chrome/common/net/url_fetcher.h" | 20 #include "chrome/common/net/url_fetcher.h" |
| 20 #include "net/base/mapped_host_resolver.h" | 21 #include "net/base/mapped_host_resolver.h" |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 net::HostCache* host_cache = | 306 net::HostCache* host_cache = |
| 306 globals_->host_resolver.get()->GetAsHostResolverImpl()->cache(); | 307 globals_->host_resolver.get()->GetAsHostResolverImpl()->cache(); |
| 307 if (host_cache) | 308 if (host_cache) |
| 308 host_cache->clear(); | 309 host_cache->clear(); |
| 309 } | 310 } |
| 310 // Clear all of the passively logged data. | 311 // Clear all of the passively logged data. |
| 311 // TODO(eroman): this is a bit heavy handed, really all we need to do is | 312 // TODO(eroman): this is a bit heavy handed, really all we need to do is |
| 312 // clear the data pertaining to off the record context. | 313 // clear the data pertaining to off the record context. |
| 313 globals_->net_log->passive_collector()->Clear(); | 314 globals_->net_log->passive_collector()->Clear(); |
| 314 } | 315 } |
| OLD | NEW |