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

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

Issue 8896019: Refactor: Extract "InitProxyResolver" to "ProxyScriptDecider". (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: do another sync since commitbot failed... Created 9 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
« no previous file with comments | « no previous file | chrome/browser/net/passive_log_collector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ 5 #ifndef CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_
6 #define CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ 6 #define CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 explicit RequestTracker(PassiveLogCollector* parent); 230 explicit RequestTracker(PassiveLogCollector* parent);
231 231
232 private: 232 private:
233 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, 233 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry,
234 SourceInfo* out_info) OVERRIDE; 234 SourceInfo* out_info) OVERRIDE;
235 235
236 DISALLOW_COPY_AND_ASSIGN(RequestTracker); 236 DISALLOW_COPY_AND_ASSIGN(RequestTracker);
237 }; 237 };
238 238
239 // Specialization of SourceTracker for handling 239 // Specialization of SourceTracker for handling
240 // SOURCE_INIT_PROXY_RESOLVER. 240 // SOURCE_PROXY_SCRIPT_DECIDER.
241 class InitProxyResolverTracker : public SourceTracker { 241 class ProxyScriptDeciderTracker : public SourceTracker {
242 public: 242 public:
243 static const size_t kMaxNumSources; 243 static const size_t kMaxNumSources;
244 static const size_t kMaxGraveyardSize; 244 static const size_t kMaxGraveyardSize;
245 245
246 InitProxyResolverTracker(); 246 ProxyScriptDeciderTracker();
247 247
248 private: 248 private:
249 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, 249 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry,
250 SourceInfo* out_info) OVERRIDE; 250 SourceInfo* out_info) OVERRIDE;
251 251
252 DISALLOW_COPY_AND_ASSIGN(InitProxyResolverTracker); 252 DISALLOW_COPY_AND_ASSIGN(ProxyScriptDeciderTracker);
253 }; 253 };
254 254
255 // Tracks the log entries for the last seen SOURCE_SPDY_SESSION. 255 // Tracks the log entries for the last seen SOURCE_SPDY_SESSION.
256 class SpdySessionTracker : public SourceTracker { 256 class SpdySessionTracker : public SourceTracker {
257 public: 257 public:
258 static const size_t kMaxNumSources; 258 static const size_t kMaxNumSources;
259 static const size_t kMaxGraveyardSize; 259 static const size_t kMaxGraveyardSize;
260 260
261 SpdySessionTracker(); 261 SpdySessionTracker();
262 262
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 FRIEND_TEST_ALL_PREFIXES(PassiveLogCollectorTest, 440 FRIEND_TEST_ALL_PREFIXES(PassiveLogCollectorTest,
441 HoldReferenceToDependentSource); 441 HoldReferenceToDependentSource);
442 FRIEND_TEST_ALL_PREFIXES(PassiveLogCollectorTest, 442 FRIEND_TEST_ALL_PREFIXES(PassiveLogCollectorTest,
443 HoldReferenceToDeletedSource); 443 HoldReferenceToDeletedSource);
444 444
445 GlobalSourceTracker global_source_tracker_; 445 GlobalSourceTracker global_source_tracker_;
446 ConnectJobTracker connect_job_tracker_; 446 ConnectJobTracker connect_job_tracker_;
447 SocketTracker socket_tracker_; 447 SocketTracker socket_tracker_;
448 RequestTracker url_request_tracker_; 448 RequestTracker url_request_tracker_;
449 RequestTracker socket_stream_tracker_; 449 RequestTracker socket_stream_tracker_;
450 InitProxyResolverTracker init_proxy_resolver_tracker_; 450 ProxyScriptDeciderTracker proxy_script_decider_tracker_;
451 SpdySessionTracker spdy_session_tracker_; 451 SpdySessionTracker spdy_session_tracker_;
452 DNSRequestTracker dns_request_tracker_; 452 DNSRequestTracker dns_request_tracker_;
453 DNSJobTracker dns_job_tracker_; 453 DNSJobTracker dns_job_tracker_;
454 DiskCacheEntryTracker disk_cache_entry_tracker_; 454 DiskCacheEntryTracker disk_cache_entry_tracker_;
455 MemCacheEntryTracker mem_cache_entry_tracker_; 455 MemCacheEntryTracker mem_cache_entry_tracker_;
456 HttpStreamJobTracker http_stream_job_tracker_; 456 HttpStreamJobTracker http_stream_job_tracker_;
457 ExponentialBackoffThrottlingTracker exponential_backoff_throttling_tracker_; 457 ExponentialBackoffThrottlingTracker exponential_backoff_throttling_tracker_;
458 DnsTransactionTracker dns_transaction_tracker_; 458 DnsTransactionTracker dns_transaction_tracker_;
459 AsyncHostResolverRequestTracker async_host_resolver_request_tracker_; 459 AsyncHostResolverRequestTracker async_host_resolver_request_tracker_;
460 UDPSocketTracker udp_socket_tracker_; 460 UDPSocketTracker udp_socket_tracker_;
461 CertVerifierJobTracker cert_verifier_job_tracker_; 461 CertVerifierJobTracker cert_verifier_job_tracker_;
462 462
463 // This array maps each NetLog::SourceType to one of the tracker instances 463 // This array maps each NetLog::SourceType to one of the tracker instances
464 // defined above. Use of this array avoid duplicating the list of trackers 464 // defined above. Use of this array avoid duplicating the list of trackers
465 // elsewhere. 465 // elsewhere.
466 SourceTrackerInterface* trackers_[net::NetLog::SOURCE_COUNT]; 466 SourceTrackerInterface* trackers_[net::NetLog::SOURCE_COUNT];
467 467
468 // The count of how many events have flowed through this log. Used to set the 468 // The count of how many events have flowed through this log. Used to set the
469 // "order" field on captured events. 469 // "order" field on captured events.
470 uint32 num_events_seen_; 470 uint32 num_events_seen_;
471 471
472 DISALLOW_COPY_AND_ASSIGN(PassiveLogCollector); 472 DISALLOW_COPY_AND_ASSIGN(PassiveLogCollector);
473 }; 473 };
474 474
475 #endif // CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ 475 #endif // CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/passive_log_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698