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

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

Issue 9223019: Added net logging to BaseFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk Created 8 years, 10 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 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 439
440 HttpPipelinedConnectionTracker(); 440 HttpPipelinedConnectionTracker();
441 441
442 private: 442 private:
443 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, 443 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry,
444 SourceInfo* out_info) OVERRIDE; 444 SourceInfo* out_info) OVERRIDE;
445 445
446 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedConnectionTracker); 446 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedConnectionTracker);
447 }; 447 };
448 448
449 // Tracks the log entries for the last seen SOURCE_DOWNLOAD.
450 class DownloadTracker : public SourceTracker {
451 public:
452 static const size_t kMaxNumSources;
453 static const size_t kMaxGraveyardSize;
454
455 DownloadTracker();
456
457 private:
458 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry,
459 SourceInfo* out_info) OVERRIDE;
460
461 DISALLOW_COPY_AND_ASSIGN(DownloadTracker);
462 };
463
449 // Tracks the log entries for the last seen SOURCE_FILESTREAM. 464 // Tracks the log entries for the last seen SOURCE_FILESTREAM.
450 class FileStreamTracker : public SourceTracker { 465 class FileStreamTracker : public SourceTracker {
451 public: 466 public:
452 static const size_t kMaxNumSources; 467 static const size_t kMaxNumSources;
453 static const size_t kMaxGraveyardSize; 468 static const size_t kMaxGraveyardSize;
454 469
455 FileStreamTracker(); 470 FileStreamTracker();
456 471
457 private: 472 private:
458 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, 473 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 HostResolverProcTaskTracker dns_proc_task_tracker_; 515 HostResolverProcTaskTracker dns_proc_task_tracker_;
501 DiskCacheEntryTracker disk_cache_entry_tracker_; 516 DiskCacheEntryTracker disk_cache_entry_tracker_;
502 MemCacheEntryTracker mem_cache_entry_tracker_; 517 MemCacheEntryTracker mem_cache_entry_tracker_;
503 HttpStreamJobTracker http_stream_job_tracker_; 518 HttpStreamJobTracker http_stream_job_tracker_;
504 ExponentialBackoffThrottlingTracker exponential_backoff_throttling_tracker_; 519 ExponentialBackoffThrottlingTracker exponential_backoff_throttling_tracker_;
505 DnsTransactionTracker dns_transaction_tracker_; 520 DnsTransactionTracker dns_transaction_tracker_;
506 AsyncHostResolverRequestTracker async_host_resolver_request_tracker_; 521 AsyncHostResolverRequestTracker async_host_resolver_request_tracker_;
507 UDPSocketTracker udp_socket_tracker_; 522 UDPSocketTracker udp_socket_tracker_;
508 CertVerifierJobTracker cert_verifier_job_tracker_; 523 CertVerifierJobTracker cert_verifier_job_tracker_;
509 HttpPipelinedConnectionTracker http_pipelined_connection_tracker_; 524 HttpPipelinedConnectionTracker http_pipelined_connection_tracker_;
525 DownloadTracker download_tracker_;
510 FileStreamTracker file_stream_tracker_; 526 FileStreamTracker file_stream_tracker_;
511 527
512 // This array maps each NetLog::SourceType to one of the tracker instances 528 // This array maps each NetLog::SourceType to one of the tracker instances
513 // defined above. Use of this array avoid duplicating the list of trackers 529 // defined above. Use of this array avoid duplicating the list of trackers
514 // elsewhere. 530 // elsewhere.
515 SourceTrackerInterface* trackers_[net::NetLog::SOURCE_COUNT]; 531 SourceTrackerInterface* trackers_[net::NetLog::SOURCE_COUNT];
516 532
517 // The count of how many events have flowed through this log. Used to set the 533 // The count of how many events have flowed through this log. Used to set the
518 // "order" field on captured events. 534 // "order" field on captured events.
519 uint32 num_events_seen_; 535 uint32 num_events_seen_;
520 536
521 DISALLOW_COPY_AND_ASSIGN(PassiveLogCollector); 537 DISALLOW_COPY_AND_ASSIGN(PassiveLogCollector);
522 }; 538 };
523 539
524 #endif // CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ 540 #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