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

Side by Side Diff: net/http/http_cache_transaction.h

Issue 356953003: Adding DiskBasedCertCache to HttpCache (+UMA). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@current
Patch Set: Created 6 years, 5 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
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 // This file declares HttpCache::Transaction, a private class of HttpCache so 5 // This file declares HttpCache::Transaction, a private class of HttpCache so
6 // it should only be included by http_cache.cc 6 // it should only be included by http_cache.cc
7 7
8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_
9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_
10 10
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 bool bypass_lock_for_test_; // A test is exercising the cache lock. 425 bool bypass_lock_for_test_; // A test is exercising the cache lock.
426 scoped_refptr<IOBuffer> read_buf_; 426 scoped_refptr<IOBuffer> read_buf_;
427 int io_buf_len_; 427 int io_buf_len_;
428 int read_offset_; 428 int read_offset_;
429 int effective_load_flags_; 429 int effective_load_flags_;
430 int write_len_; 430 int write_len_;
431 scoped_ptr<PartialData> partial_; // We are dealing with range requests. 431 scoped_ptr<PartialData> partial_; // We are dealing with range requests.
432 UploadProgress final_upload_progress_; 432 UploadProgress final_upload_progress_;
433 base::WeakPtrFactory<Transaction> weak_factory_; 433 base::WeakPtrFactory<Transaction> weak_factory_;
434 CompletionCallback io_callback_; 434 CompletionCallback io_callback_;
435 DiskBasedCertCache::GetCallback cert_read_io_callback_;
436 DiskBasedCertCache::SetCallback cert_write_io_callback_;
Ryan Sleevi 2014/06/26 19:56:02 You don't need to store these callbacks as member
435 437
436 // Members used to track data for histograms. 438 // Members used to track data for histograms.
437 TransactionPattern transaction_pattern_; 439 TransactionPattern transaction_pattern_;
438 base::TimeTicks entry_lock_waiting_since_; 440 base::TimeTicks entry_lock_waiting_since_;
439 base::TimeTicks first_cache_access_since_; 441 base::TimeTicks first_cache_access_since_;
440 base::TimeTicks send_request_since_; 442 base::TimeTicks send_request_since_;
441 443
442 int64 total_received_bytes_; 444 int64 total_received_bytes_;
443 445
444 // Load timing information for the last network request, if any. Set in the 446 // Load timing information for the last network request, if any. Set in the
(...skipping 10 matching lines...) Expand all
455 457
456 BeforeNetworkStartCallback before_network_start_callback_; 458 BeforeNetworkStartCallback before_network_start_callback_;
457 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; 459 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_;
458 460
459 DISALLOW_COPY_AND_ASSIGN(Transaction); 461 DISALLOW_COPY_AND_ASSIGN(Transaction);
460 }; 462 };
461 463
462 } // namespace net 464 } // namespace net
463 465
464 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 466 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698