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/passive_log_collector.h" | 5 #include "chrome/browser/net/passive_log_collector.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/lock.h" | |
11 #include "base/string_util.h" | 10 #include "base/string_util.h" |
12 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
13 #include "net/url_request/url_request_netlog_params.h" | 12 #include "net/url_request/url_request_netlog_params.h" |
14 | 13 |
15 namespace { | 14 namespace { |
16 | 15 |
17 // TODO(eroman): Do something with the truncation count. | 16 // TODO(eroman): Do something with the truncation count. |
18 | 17 |
19 const size_t kMaxNumEntriesPerLog = 30; | 18 const size_t kMaxNumEntriesPerLog = 30; |
20 | 19 |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 AddEntryToSourceInfo(entry, out_info); | 578 AddEntryToSourceInfo(entry, out_info); |
580 | 579 |
581 // If the request has ended, move it to the graveyard. | 580 // If the request has ended, move it to the graveyard. |
582 if (entry.type == net::NetLog::TYPE_DISK_CACHE_ENTRY && | 581 if (entry.type == net::NetLog::TYPE_DISK_CACHE_ENTRY && |
583 entry.phase == net::NetLog::PHASE_END) { | 582 entry.phase == net::NetLog::PHASE_END) { |
584 return ACTION_MOVE_TO_GRAVEYARD; | 583 return ACTION_MOVE_TO_GRAVEYARD; |
585 } | 584 } |
586 | 585 |
587 return ACTION_NONE; | 586 return ACTION_NONE; |
588 } | 587 } |
OLD | NEW |