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 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/leak_tracker.h" | 7 #include "base/leak_tracker.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/string_util.h" |
9 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/chrome_thread.h" | 11 #include "chrome/browser/chrome_thread.h" |
11 #include "chrome/browser/gpu_process_host.h" | 12 #include "chrome/browser/gpu_process_host.h" |
12 #include "chrome/browser/net/chrome_net_log.h" | 13 #include "chrome/browser/net/chrome_net_log.h" |
13 #include "chrome/browser/net/predictor_api.h" | 14 #include "chrome/browser/net/predictor_api.h" |
14 #include "chrome/browser/net/passive_log_collector.h" | 15 #include "chrome/browser/net/passive_log_collector.h" |
15 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/net/url_fetcher.h" | 17 #include "chrome/common/net/url_fetcher.h" |
17 #include "net/base/mapped_host_resolver.h" | 18 #include "net/base/mapped_host_resolver.h" |
18 #include "net/base/host_cache.h" | 19 #include "net/base/host_cache.h" |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 net::HostCache* host_cache = | 367 net::HostCache* host_cache = |
367 globals_->host_resolver.get()->GetAsHostResolverImpl()->cache(); | 368 globals_->host_resolver.get()->GetAsHostResolverImpl()->cache(); |
368 if (host_cache) | 369 if (host_cache) |
369 host_cache->clear(); | 370 host_cache->clear(); |
370 } | 371 } |
371 // Clear all of the passively logged data. | 372 // Clear all of the passively logged data. |
372 // TODO(eroman): this is a bit heavy handed, really all we need to do is | 373 // TODO(eroman): this is a bit heavy handed, really all we need to do is |
373 // clear the data pertaining to off the record context. | 374 // clear the data pertaining to off the record context. |
374 globals_->net_log->passive_collector()->Clear(); | 375 globals_->net_log->passive_collector()->Clear(); |
375 } | 376 } |
OLD | NEW |