Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: chrome/browser/net/passive_log_collector.cc

Issue 5676004: Cleanup: Remove unneeded browser_thread.h usage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix deps Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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" 10 #include "base/lock.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/format_macros.h" 12 #include "base/format_macros.h"
13 #include "chrome/browser/browser_thread.h"
14 #include "net/url_request/url_request_netlog_params.h" 13 #include "net/url_request/url_request_netlog_params.h"
15 14
16 namespace { 15 namespace {
17 16
18 // TODO(eroman): Do something with the truncation count. 17 // TODO(eroman): Do something with the truncation count.
19 18
20 const size_t kMaxNumEntriesPerLog = 30; 19 const size_t kMaxNumEntriesPerLog = 30;
21 20
22 void AddEntryToSourceInfo(const ChromeNetLog::Entry& entry, 21 void AddEntryToSourceInfo(const ChromeNetLog::Entry& entry,
23 PassiveLogCollector::SourceInfo* out_info) { 22 PassiveLogCollector::SourceInfo* out_info) {
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 PassiveLogCollector::DNSJobTracker::DoAddEntry(const ChromeNetLog::Entry& entry, 553 PassiveLogCollector::DNSJobTracker::DoAddEntry(const ChromeNetLog::Entry& entry,
555 SourceInfo* out_info) { 554 SourceInfo* out_info) {
556 AddEntryToSourceInfo(entry, out_info); 555 AddEntryToSourceInfo(entry, out_info);
557 if (entry.type == net::NetLog::TYPE_HOST_RESOLVER_IMPL_JOB && 556 if (entry.type == net::NetLog::TYPE_HOST_RESOLVER_IMPL_JOB &&
558 entry.phase == net::NetLog::PHASE_END) { 557 entry.phase == net::NetLog::PHASE_END) {
559 return ACTION_MOVE_TO_GRAVEYARD; 558 return ACTION_MOVE_TO_GRAVEYARD;
560 } else { 559 } else {
561 return ACTION_NONE; 560 return ACTION_NONE;
562 } 561 }
563 } 562 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698