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

Unified Diff: chrome/browser/net/passive_log_collector.h

Issue 9101011: [net/dns] Refactoring of job dispatch in HostResolverImpl in preparation for DnsTransactionFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed license header for the presubmit check.' Created 8 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/connection_tester.cc ('k') | chrome/browser/net/passive_log_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/passive_log_collector.h
diff --git a/chrome/browser/net/passive_log_collector.h b/chrome/browser/net/passive_log_collector.h
index b1a079a532455edb3915f834832f4a6be612410f..2cb9ab4819d4d0f994384dabf1274c697446219f 100644
--- a/chrome/browser/net/passive_log_collector.h
+++ b/chrome/browser/net/passive_log_collector.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -268,33 +268,49 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserverImpl {
};
// Tracks the log entries for the last seen SOURCE_HOST_RESOLVER_IMPL_REQUEST.
- class DNSRequestTracker : public SourceTracker {
+ class HostResolverRequestTracker : public SourceTracker {
public:
static const size_t kMaxNumSources;
static const size_t kMaxGraveyardSize;
- DNSRequestTracker();
+ HostResolverRequestTracker();
private:
virtual Action DoAddEntry(const ChromeNetLog::Entry& entry,
SourceInfo* out_info) OVERRIDE;
- DISALLOW_COPY_AND_ASSIGN(DNSRequestTracker);
+ DISALLOW_COPY_AND_ASSIGN(HostResolverRequestTracker);
};
// Tracks the log entries for the last seen SOURCE_HOST_RESOLVER_IMPL_JOB.
- class DNSJobTracker : public SourceTracker {
+ class HostResolverJobTracker : public SourceTracker {
public:
static const size_t kMaxNumSources;
static const size_t kMaxGraveyardSize;
- DNSJobTracker();
+ HostResolverJobTracker();
private:
virtual Action DoAddEntry(const ChromeNetLog::Entry& entry,
SourceInfo* out_info) OVERRIDE;
- DISALLOW_COPY_AND_ASSIGN(DNSJobTracker);
+ DISALLOW_COPY_AND_ASSIGN(HostResolverJobTracker);
+ };
+
+ // Tracks the log entries for the last seen
+ // SOURCE_HOST_RESOLVER_IMPL_PROC_TASK.
+ class HostResolverProcTaskTracker : public SourceTracker {
+ public:
+ static const size_t kMaxNumSources;
+ static const size_t kMaxGraveyardSize;
+
+ HostResolverProcTaskTracker();
+
+ private:
+ virtual Action DoAddEntry(const ChromeNetLog::Entry& entry,
+ SourceInfo* out_info) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(HostResolverProcTaskTracker);
};
// Tracks the log entries for the last seen SOURCE_DISK_CACHE_ENTRY.
@@ -464,8 +480,9 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserverImpl {
RequestTracker socket_stream_tracker_;
ProxyScriptDeciderTracker proxy_script_decider_tracker_;
SpdySessionTracker spdy_session_tracker_;
- DNSRequestTracker dns_request_tracker_;
- DNSJobTracker dns_job_tracker_;
+ HostResolverRequestTracker dns_request_tracker_;
+ HostResolverJobTracker dns_job_tracker_;
+ HostResolverProcTaskTracker dns_proc_task_tracker_;
DiskCacheEntryTracker disk_cache_entry_tracker_;
MemCacheEntryTracker mem_cache_entry_tracker_;
HttpStreamJobTracker http_stream_job_tracker_;
« no previous file with comments | « chrome/browser/net/connection_tester.cc ('k') | chrome/browser/net/passive_log_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698